Pther extensions
- Details
- Written by: Administrator
- Category: Pther extensions
- Hits: 9
Installation
- Install the plugin with the HikaShop or Joomla installer, then publish it in the plugin manager (Hikashop - Coupon Conditions).
- Create your coupons in HikaShop, Discounts, as usual: the plugin adds rules on top of them.
- Open the settings of the plugin and add one block to the "Conditions" list for each rule.
The rules are checked when a customer applies a coupon. The usual restrictions of the coupon (products, categories, dates, quota) still apply as well.
Configuration

The Conditions list has one block per rule, its settings one below the other. Use the plus button to add a rule, the minus button to remove it and the arrows to move it. The settings of a rule are:
- Coupon Codes: the coupons the rule applies to (select one or several). Empty, the rule applies to every coupon.
- Condition: a formula that must be true for the coupon to be accepted, for instance {cart.price} > 100. Empty, there is no condition.
- Value formula: an optional formula that gives the amount of the discount, for instance min({cart.cart_product_quantity}, 4) * {product.unit_price}. When it is set, it replaces the percentage or flat value of the coupon with the calculated amount, which must be a price without tax (add :tax to a price tag if you need the tax included). Empty, the coupon keeps its own value.
- Error Message: the message shown to the customer when the condition is not met. Empty, the message is "Coupon condition not met".
- Products Logic Operator: only for conditions that use product tags. AND (default): all the products of the cart must match. OR: at least one product must match.
A rule where both the condition and the value formula are empty does nothing. A condition and a value formula can be used in the same rule or separately.
The formulas can use these tags: {cart.price} (total of the cart, without tax unless you write {cart.price:tax}), {cart.cart_product_quantity} (quantity of all the products), {product.unit_price}, {product.price}, {product.cart_product_quantity}, any product field with {product.field}, any user field with {user.field}, any order or cart custom field with {order.field}, and any address field with {billing_address.field} or {shipping_address.field}. The functions min(), max(), abs(), round(), ceil() and floor() are available. When a value formula uses product tags, it is calculated for each product of the cart and the results are added.
Troubleshooting
- "Coupon condition not met": the condition is false for the cart, and the rule has no error message of its own. Check the formula against the cart, or type your own message in the Error Message field of the rule.
- "The tag ... is invalid in formula: ...": the formula uses a tag that does not exist or has no value for this cart (for instance an address field when the customer has no address yet). Correct the name of the tag.
- A rule seems ignored: check that the coupon is selected in the Coupon Codes field of that rule (or that the field is empty), and that the rule has a condition or a value formula.
- Details
- Written by: Administrator
- Category: Pther extensions
- Hits: 32
Installation
- 1) Download the plugin on our website via the download link provided to you after the purchase.
- 2) Install it on your Joomla website via the extension manager, and enable the plugin "HikaShop - Product location" in System > Plugins.
- 3) Open the settings of the plugin and choose where the address suggestions come from (see Configuration). Nothing else is needed: no account and no key.
- 4) Give your products their location: in HikaShop, open a product, and in its Location block type its address and pick it among the suggestions, or click the map; drag the pin to adjust it, then save the product.
- 5) For the distance search (HikaShop Business): in Display > Filters, click New, give the filter a name (for example "Distance"), choose the type "Distance", set its radiuses, and publish it. It is shown by the HikaShop filters module of your listings, with the other filters (see the documentation of the filters module to place the module).
- 6) With HikaMarket: in the ACL of your vendors, the entry "productlocation" of the product's plugins lets a vendor set the location of its own products in its vendor area. A product with no location takes its vendor's location (the vendor's map in the vendor area or in the HikaMarket back end).

Configuration
The settings of the plugin (System > Plugins > HikaShop - Product location)

- Address suggestions: the service your visitors' browsers ask for the addresses as they type, in the Location block and in the Distance filter. "Photon (OpenStreetMap, worldwide)" is free and covers every country, and is the default. "Géoplateforme IGN (France)" is the free service of the French IGN (the former API Adresse of the BAN): for a shop whose products are in France, its suggestions of streets and postcodes are the best. "Your own Photon server" is for a shop that runs its own Photon. The shop's server never calls these services: the visitor's browser does, and only with what the visitor types.
- Address of your Photon server: with "Your own Photon server" only, the address of its search, for example https://photon.example.com/api/.
- Countries: the codes of the countries the suggestions are taken from, separated by commas, for example FR,BE. Leave it empty for every country. The Géoplateforme only knows France.
- Map on the product page: Yes shows the address and a map of the place on the product page, after the description. No shows nothing; the location is still used by the Distance filter.
- Vendor's location: with HikaMarket, Yes makes a product with no location of its own take the location of its vendor, in the distance searches and on the product page.
- Map tiles address: leave it empty for the OpenStreetMap maps. To use another tile provider, enter the address of its tiles with {z}, {x} and {y}.
- Tiles attribution: the credit the tile provider asks you to show under the map. Empty for OpenStreetMap's.
The Distance filter (Display > Filters)

- Type: "Distance".
- Radiuses offered: the radiuses the visitor can choose, separated by commas, for example 5,10,25,50,100.
- Default radius: the radius chosen when the visitor has not chosen one; it must be one of the radiuses offered.
- Unit: kilometres or miles, for the radiuses and the distances shown.
- Sort by distance: checked, the listing shows the nearest products first while a distance search is on; unchecked, it keeps its own order.
- Around me button: checked, the filter offers a button that searches around the visitor's position, when their browser gives it.
- Submit on click (a setting of every filter): Yes refreshes the listing as soon as an address or a radius is chosen; No waits for the Filter button of the module.
The Location block (the product form)
- Address: the address shown on the product page. Pick it among the suggestions to put the pin at its place. An address typed and left without picking a suggestion is looked up once when you leave the field.
- The map: click it to put the pin, drag the pin to move it. The distance searches use the pin, not the text of the address.
- Clear the location: removes the address and the pin; the product is then left out of the distance searches (or found at its vendor's location, with HikaMarket).
Troubleshooting
- "The address of the product was not found on the map": the product was saved with an address but no pin. Pick the address among the suggestions or click the map, and save again.
- No suggestions appear: type at least three letters. The suggestions come from the service of the plugin's settings: check that the visitor's browser can reach it (a content security policy of your site must allow photon.komoot.io or data.geopf.fr in connect-src, and tile.openstreetmap.org in img-src). With the Géoplateforme, type whole words (a town, a street with its town).
- The Distance filter is not in the list of filter types: the plugin is not enabled, or the shop is not on the Business edition.
- A product is never found by the distance search: it has no pin (open it and check its Location block), or it is not in the categories the filter module shows.
- "Around me" does nothing: the visitor refused to share their position, or the site is not served over HTTPS (browsers give the position to secure sites only).
- The map is grey: the tile provider of the settings does not answer; empty the "Map tiles address" setting to go back to OpenStreetMap.
- Details
- Written by: Administrator
- Category: Pther extensions
- Hits: 64
The ERPNext plugin keeps your shop in step with ERPNext, which stays the master of your data. Customers, prices and stock come from ERPNext; orders go to ERPNext as Sales Orders and their status comes back. Everything is set on the ERPNext page of the HikaShop backend (System menu), which also shows what each synchronisation did. ERPNext 15 and 16 are supported, self-hosted or on Frappe Cloud.
Installation
- In ERPNext, create a user for the shop, for instance "
This email address is being protected from spambots. You need JavaScript enabled to view it. ", of type System User, with the roles Sales User, Sales Master Manager (the only role that can read the Item Prices), Stock User and Accounts User (for the invoices and payments of the paid orders). Then open the user, Settings tab, API Access, and click Generate Keys: ERPNext shows the API key and, once only, the API secret. - Download the plugin from our website via the download link given after the purchase, and install it with the extension manager of Joomla, or in HikaShop > Plugins on WordPress. Enable it.
- Open HikaShop > System > ERPNext, enter the address of your ERPNext, the API key and the API secret, and click Save. The top of the page then shows the version of ERPNext and the user the shop is connected as, and the settings offer the companies, customer groups, price lists, warehouses, items, tax templates and modes of payment of your ERPNext. After a change in ERPNext, click Read ERPNext's settings again to see it in the lists.
- Create the reference field (Orders section): the plugin keeps the shop's reference of each order in a custom field of the Sales Order,
hikashop_ref, so an order is never created twice. The Create the field button does it when the API user has the System Manager role. Otherwise, in ERPNext, open Customize Form, choose Sales Order, and add a field of type Data namedhikashop_ref, read only. Until the field exists, the orders wait in the shop. - Make sure your products have, as their code in HikaShop, their item code in ERPNext: that is how the plugin matches them.
- Set up the HikaShop cron (System > Configuration > Advanced), ideally every 5 to 15 minutes: it runs the synchronisation. The "Run now" button does a run at once, handy for the first import.
- In System > Order statuses, tick in the ERPNext column the statuses that send an order to ERPNext (confirmed and shipped by default).
The ERPNext page

The top of the page shows the connection to ERPNext, how many customers and products are linked, and how many orders are in ERPNext. Below, the Synchronisation table gives, for each job, when it last ran and what it did. "Run now" runs a job at once; "Read everything again" makes the next runs read every customer or product again. The orders that could not be sent are listed with their error and a button to try them all again.
Connection

- ERPNext address: the address of your ERPNext site, as you open it in your browser.
- API key and API secret: those of the user of step 1. Leave the fields empty to keep the saved ones.
- Company: the ERPNext company the orders are made for, when your ERPNext has several.
- Debug mode: writes every call to ERPNext to the HikaShop log (System > Logs).
- Alert after (hours) and Alert email: an email is sent when a synchronisation has not succeeded for this long (ERPNext unreachable, key revoked, cron stopped), at most once a day.
Customers

- Import the customers: creates and updates a HikaShop customer for each enabled ERPNext customer with an email, the email of its primary contact (or its first contact with an email). The customer gets a shop account when they register with that email: the account is linked to the ERPNext customer at once, with its groups.
- Only these customer groups: imports only the customers of the ticked groups.
- Import the address: keeps the customer's billing address (their primary address, else a billing one) and shipping address (a shipping address of ERPNext, else the billing one) in step with ERPNext. The names come from the contact.
- Customer groups: puts the customers of an ERPNext customer group in a user group, for a discount, a payment method or a shipping method of their own.
- Price lists: puts each customer in the user group of their price list (the customer's own, else their customer group's), and the products get the prices of that list for the group. HikaShop gives each customer the lowest price they are entitled to. This needs HikaShop Business.
- Customers not in ERPNext: when someone who is not in ERPNext orders, the plugin can create them in ERPNext (customer, contact with the email, addresses, in the group and territory you choose), put the order on one ERPNext customer of your choice (its name in ERPNext customer for the others), or not send the order.
- Other customer fields: one line per field,
erpnext_field=hikashop_column, to copy more information from the Customer, custom fields included, onto a customer custom field you created.
Products, prices and stock
- Update the products: updates the HikaShop products whose code is an ERPNext item code. Variants are matched the same way, on their own code. Only this item group limits it to one item group.
- Create the missing products: creates the ERPNext sales items that are not in the shop, unpublished, in the category chosen in Category of the new products, so you add pictures and a description before publishing them.
- Fields ERPNext updates: what ERPNext overwrites. Leave the name and the description off to write them in HikaShop. "Published" unpublishes a product when its item is disabled or no longer a sales item.
- Item tax templates: the HikaShop tax category of the products, from the item tax template of their item.
- Other product fields: one line per field,
erpnext_field=hikashop_column, for instancelead_time_days=product_delay. - Import the prices and Price list for everyone: the selling Item Prices of this list are the shop's prices for everyone; those of the lists mapped to a group (Customers section) are the prices of that group. Prices in another currency than the shop's main one, or in another unit than the stock unit, are left out. Validity dates are kept. Pricing rules are not read: the shop shows the Item Prices.
- Customer prices: an Item Price set for one customer becomes a price for that customer. It needs HikaShop Business.
- Import the stock, Warehouses and Minus the reserved stock: the stock of the shop is the sum of the warehouses you tick, or of all of them, minus what open sales orders reserve if you want. Items without stock follow-up stay unlimited in the shop.
A change in ERPNext is seen at the next run: the plugin reads the records modified since the last one. An item deleted in ERPNext is unpublished in the shop, never deleted.
Orders

- Send the orders: a Sales Order is created in ERPNext when the order reaches one of the statuses ticked in the ERPNext column of System > Order statuses. Its customer purchase order number is the order number of the shop. The shop's prices are sent as they are (pricing rules are ignored on these orders).
- Reference field: see step 4 of the installation.
- Submit them: submits the Sales Order. Off, it stays a draft for you to check.
- Check the total: ERPNext computes the taxes again. When its total differs from the shop's by more than a cent, the order is left as a draft and the difference is shown on the order page, for you to fix the tax set-up.
- Warehouse and Delivery in (days): the warehouse the items are delivered from, and the delivery date ERPNext needs on every order.
- Send the addresses: the billing and shipping addresses of the order become Addresses of the customer in ERPNext; an identical existing one is reused.
- Item for the shipping and Item for the payment fees: non-stock items carrying these lines and their income account. They are needed as soon as orders have shipping or fees.
- Sales taxes template and Tax rates: the order gets the Sales Taxes and Charges Template, which must hold the tax account of every rate, and each line gets the item tax template of its rate. ERPNext keeps a line's template only when the item lists it in its Taxes table; otherwise it applies the item's own one, and the totals differ.
- Payment methods and Invoice the paid orders: creates and submits the Sales Invoice of the paid orders, and its Payment Entry with the mode of payment of the order's payment method. The mode of payment needs a default account for the company in ERPNext.
- Other order fields: one line per field,
hikashop_column=erpnext_field, for instanceorder_customer_comment=remarks. - Follow the status in ERPNext, Statuses and Notify the customer: the HikaShop status an order gets when its Sales Order is to deliver, to bill, completed, closed or cancelled, and whether the customer gets the status email.
The order page of the backend shows its Sales Order, with a link to it in ERPNext. When it could not be sent, the error is shown with a "Send to ERPNext" button. An order is never sent twice: an order created in ERPNext just before a time-out is found again through its reference field.

Customer account
Show the ERPNext documents adds a "My documents" page to the account of the customers known in ERPNext: their submitted sales orders, quotations, delivery notes or invoices (as chosen in Documents shown), including those made outside the shop, with their PDF in the Print format of each type. A customer only ever sees their own documents.
Instant updates (webhooks)
The cron is enough. To see changes made in ERPNext at once, enable Accept ERPNext webhooks and save: the page shows the webhook address and secret. Click Set up the webhooks in ERPNext: the plugin creates them, signed with the secret, when the API user has the System Manager role. Otherwise create them by hand in ERPNext (Webhook list, New): for each of Customer, Contact, Address, Item and Item Price on "on_update", Item and Item Price on "on_trash", Stock Ledger Entry on "after_insert", Sales Order on "on_update_after_submit" and "on_cancel", Delivery Note and Sales Invoice on "on_submit" and "on_cancel": the webhook address as Request URL, method POST, request structure JSON, "Enable Security" ticked with the webhook secret, and this JSON body:
{"doctype": {{ doc.doctype | tojson }}, "name": {{ doc.name | tojson }}, "item_code": {{ (doc.item_code or "") | tojson }}, "sales_order": {{ ((doc["items"][0].against_sales_order or doc["items"][0].sales_order or "") if doc.doctype in ["Delivery Note", "Sales Invoice"] and doc["items"] else "") | tojson }}}
The shop refuses a call without the right signature. Click Make a new address if the address or secret leaked, then set up the webhooks again.
For developers
An add-on plugin of the hikashop group can change what is imported and sent with these events: onErpnextBeforeCustomerSave($customer, &$data, &$extra, &$do), onErpnextAfterCustomerSave($customer, $userId, $new), onErpnextBeforeProductSave($item, &$columns, &$prices, &$do), onErpnextBeforeCustomerCreate($order, &$customer), onErpnextOrderPayload($order, &$payload, &$do), onErpnextAfterOrderPush($order, $salesOrderName) and onErpnextOrderStatus($salesOrder, $orderId, &$status, &$do).
Troubleshooting
- "Connection failed": check the address, the key and the secret. An answer 401 means the key or secret is wrong; 403 means the user lacks a role (often Sales Master Manager for the prices).
- A product is not updated: its code in HikaShop must be its item code in ERPNext. The Synchronisation table counts the items "not in the shop".
- A customer is not imported: they must be enabled and have a contact with an email.
- An order was not sent: its error is on its page and in the list of the ERPNext page. Fix the cause (often an item, a tax template or a delivery date setting in ERPNext) and click "Send to ERPNext".
- An order stayed a draft: ERPNext's total differed from the shop's; the order page shows both. Check the tax rates mapping and the Taxes table of the items.
- The PDFs do not download: ERPNext must be able to print the document itself (Print Settings, PDF generator).
- With Debug mode on, every call to ERPNext is written to System > Logs.
- Details
- Written by: Administrator
- Category: Pther extensions
- Hits: 68
The Billbee plugin connects your shop to Billbee as a custom webshop: Billbee calls your site to fetch the new orders, and tells it when an order is paid, shipped or canceled in Billbee. Everything is set on the Billbee page of the HikaShop backend (System menu).
Installation
- Download the plugin from our website via the download link given after the purchase, and install it with the extension manager of Joomla, or in HikaShop > Plugins on WordPress. Enable it.
- Open HikaShop > System > Billbee. Click Generate a new key: the page now shows the Address for Billbee and the Key, each with a Copy button.

- In Billbee, open Einstellungen (Settings), then Kanäle (Channels), and click Shop hinzufügen (Add shop). In the list, under "Sonstige Shops", choose Eigener Webshop (Billbee API) (type "Eigener" in the search field to find it).

- Fill in the form: Name, any name for your shop; URL, the address for Billbee; Schlüssel (key), the key. Leave the two Basic Auth fields empty, unless you set a user name and password on the plugin's page too. Click Speichern (Save). Billbee calls your site at once to check the connection, so your site must be reachable from the internet.

- A new shop connection starts paused in Billbee: open it in Einstellungen > Kanäle and click Aktivieren (Activate) under "Abruf neuer Bestellungen". Billbee imports the orders placed from that moment on; the refresh button of its Bestellungen (orders) page starts an import at once.
Configuration
Connection to Billbee
- Address for Billbee: the URL to enter in Billbee's shop connection.
- Key: shared with Billbee, which signs every call with it. Generate one, or paste the key already entered in Billbee. Generating a new key stops the connection until you enter it in Billbee too.
- Basic Auth user name and password: optional. When set, Billbee must send the same ones (the Basic Auth fields of its shop connection).
- Orders fetched by Billbee: how many orders Billbee has imported, and when it last did.
Orders sent to Billbee
- Order statuses: Billbee only sees the orders in these statuses, by default confirmed and shipped. Add "created" to have the unpaid bank transfer orders in Billbee too.
- Orders created from: older orders are never sent, so Billbee does not import the past orders of your shop. It is set to the day you first save the page.
- Billbee state of each status: the state the order has in Billbee when it is imported (by default: created and pending as ordered, confirmed as paid, shipped as shipped, cancelled and refunded as canceled).
- Payment methods: the Billbee payment type of each payment method of your shop. The plugin guesses it from the payment plugin (PayPal, Stripe, bank transfer...) until you choose another one.
- Send the item custom fields: the values the customer entered on each product line (item custom fields) become options of the line in Billbee, beside the characteristics of the variant.
- Send the order language: the language of the order (for example de-DE) goes in the order's comment and history in Billbee. Billbee chooses the language of its invoices and emails from the customer's language, which a Billbee automation rule can set.
Changes made in Billbee
- HikaShop status for each Billbee state: when the order reaches this state in Billbee (paid, packed, shipped, closed, canceled), the order of your shop gets this status. An order never goes back: paid after shipped leaves it shipped. Canceled always applies. Each change, with the comment Billbee sends, is written in the history of the order.
- Notify the customer: sends the usual status change email of HikaShop when Billbee changes the status. The tracking number, carrier and tracking link Billbee sends with a shipment are written in the order history.
- Stock from Billbee: lets Billbee set the stock of your products. Leave it off when the shop keeps the stock. In Billbee, tick Abgleich aktiv (and Abgleich bei neuen Artikeln aktiv) on the Bestandsabgleich tab of the shop connection; an article Billbee already had keeps its stock sync off until you untick Bestandsabgleich deaktivieren on its Quellen tab.
- Debug log: writes each call of Billbee in the HikaShop log.
The order page of your backend shows when Billbee imported the order and its last state in Billbee:

Troubleshooting
- Billbee refuses to save the shop connection: Billbee calls your site when you save. Check that your site is reachable from the internet (not a local or password-protected test site), that the address is complete, and that the key in Billbee is the one shown by the plugin, without spaces.
- An order is not in Billbee: check that its status is one of the order statuses of the plugin, and that it was created after the "Orders created from" date. Billbee imports at its own pace; its manual import button fetches the orders at once.
- Paid or shipped in Billbee does not change the order: check the HikaShop status chosen for that Billbee state. An order already further along is left as it is, by design.
- Invoices and emails in the wrong language: Billbee uses the language of the customer in Billbee. Create a Billbee automation rule for imported orders that sets it, for instance from the delivery country.
- Details
- Written by: Administrator
- Category: Pther extensions
- Hits: 72
The Odoo plugin keeps your shop in step with Odoo, which stays the master of your data. Customers, prices and stock come from Odoo; orders go to Odoo as sales orders and their status comes back. Everything is set on the Odoo page of the HikaShop backend (System menu), which also shows what each synchronisation did.
Installation
- Check your Odoo: version 19 or later (Community or Enterprise), on your server, on Odoo.sh, or on Odoo Online with the Custom plan. The One App Free and Standard plans of Odoo Online have no external API.
- In Odoo, create a user for the shop, for instance "HikaShop", with the rights the plugin uses: Sales (to read customers, pricelists and create sales orders), Inventory (to read the stock) and, if the shop is to invoice its paid orders, Invoicing. Log in as that user (or ask an administrator), open Preferences > Account Security > New API Key, give the key a name and a duration, and copy it: Odoo shows it only once. Note its expiry date.
- Odoo keys last 90 days at most. For the plugin to renew its key by itself, an administrator sets the system parameter
base.enable_programmatic_api_keystoTrue(activate the developer mode, then Settings > Technical > System Parameters). An administrator user does not need it. - In Odoo, create three service products for the extra lines of the orders: shipping, payment fees and discounts, with their sales tax.
- Download the plugin from our website via the download link given after the purchase, and install it with the extension manager of Joomla, or in HikaShop > Plugins on WordPress. Enable it.
- Open HikaShop > System > Odoo, enter the address of your Odoo, the API key and its expiry date, and click Save. The top of the page then shows the version of Odoo and the user the shop is connected as, and the settings offer the pricelists, tags, warehouses, taxes, products and journals of your Odoo. After a change in Odoo (a new pricelist, warehouse or tax), click Read Odoo's settings again to see it in the lists.
- Make sure your products have, as their code in HikaShop, their internal reference in Odoo: that is how the plugin matches them. A product variant of Odoo is matched on its own reference.
- Set up the HikaShop cron (System > Configuration > Advanced), ideally every 5 to 15 minutes: it runs the synchronisation. The "Run now" button does a run at once, handy for the first import.
- In System > Order statuses, tick in the Odoo column the statuses that send an order to Odoo (confirmed and shipped by default).
The Odoo page

The top of the page shows the connection to Odoo, how many customers and products are linked, and how many orders are in Odoo. Below, the Synchronisation table gives, for each job, when it last ran and what it did. "Run now" runs a job at once; "Read everything again" makes the next runs read every customer or product again. The orders that could not be sent are listed with their error and a button to try them all again.
Connection

- Odoo address: the address of your Odoo, as you open it in your browser, for instance https://mycompany.odoo.com.
- Database: only when your Odoo server holds several databases, the name of yours. Leave it empty for Odoo Online and most servers.
- API key: the key of the Odoo user of step 2. Leave the field empty to keep the saved key.
- Key valid until: the expiry date of the key, as chosen in Odoo. "Renew the key now" makes a new key at once and revokes the old one.
- Renew the key by itself: 20 days before the expiry date, the plugin makes a new key for 85 days and revokes the old one (step 3 of the installation is needed). Off, you make a new key in Odoo before the date and enter it here.
- Company: only when your Odoo holds several companies, the one of the shop. Empty uses the company of the API user.
- Debug mode: writes every call to Odoo to the HikaShop log (System > Logs).
- Alert after (hours) and Alert email: an email is sent when a synchronisation has not succeeded for this long (Odoo unreachable, key expired or revoked, cron stopped), at most once a day.
Customers
- Import the customers: creates and updates a HikaShop customer for each Odoo customer (a company or an individual, not one of its contacts) that has an email. The customer gets a shop account when they register with that email: the account is linked to the Odoo customer at once.
- Only this tag: imports only the customers with one Odoo tag.
- Import the address: keeps the customer's billing address in step with the customer's address in Odoo. For a company, the names come from its contact with the same email, or its first contact. Odoo has no title nor, for France, a region: when your address form requires them, the customer fills them in once at the checkout and they are kept.
- Pricelists: the user group of each Odoo pricelist. Each customer is put in the group of their pricelist, and the products get the prices of that pricelist for the group. HikaShop gives each customer the lowest price they are entitled to. This needs HikaShop Business.
- Customer tags: puts the customers with an Odoo tag in a user group, to give them a discount, a payment method or a shipping method of their own.
- Customers not in Odoo: when someone who is not in Odoo orders, the plugin can create them in Odoo, put the order on one Odoo customer of your choice (give its id in Catch-all customer), or not send the order.
- Other customer fields: one line per field,
odoo_field=hikashop_column, to copy more information onto the customer, for instanceref=user_erp_ref. The HikaShop column is a customer custom field you created.
Products, prices and stock
- Update the products: updates the HikaShop products whose code is an Odoo internal reference. Variants are matched the same way, on their own code.
- Create the missing products: creates the Odoo products that can be sold and are not in the shop, unpublished, in the category chosen in Category of the new products, so you add pictures and a description before publishing them.
- Fields Odoo updates: what Odoo overwrites. Leave the name and the description off to write them in HikaShop. "Published" unpublishes a product when it is archived or no longer for sale in Odoo.
- VAT rates: the HikaShop tax category of the products, from the rate of their sales tax in Odoo.
- Other product fields: one line per field,
odoo_field=hikashop_column, for instancesale_delay=product_delayfor the customer lead time, or a field added with Odoo Studio. - Import the prices: replaces the prices of the products with those of Odoo, excluding tax, in the main currency of the shop. Odoo computes each price with its own pricelist rules. Turn it off to manage the prices in HikaShop.
- Price for everyone: the pricelist whose price every customer gets, or the sales price of the product.
- Quantity prices: also imports the prices from a minimum quantity that the pricelist rules give.
- Products checked per run: a pricelist rule changed in Odoo does not change the products, so the products are read again in turn, this many at each run.
- Import the stock and Warehouses: the stock of the shop is the on hand quantity of the warehouses you tick, or of all of them. The plugin follows the stock moves of Odoo, so a delivery or a receipt shows in the shop at the next run. Products that Odoo does not track in its inventory get an unlimited stock.
A product archived or deleted in Odoo is unpublished in the shop, never deleted.
Orders

- Send the orders: a sales order is created in Odoo when the order reaches one of the statuses ticked in the Odoo column of System > Order statuses. Its customer reference is the order number of the shop.
- Confirm them: confirms the order in Odoo, which plans its delivery. Off, it stays a quotation for you to check.
- Product for the shipping, for the payment fees, for the discounts: the Odoo service products of these lines. An order with such a line waits until the product is set.
- Payment terms: the Odoo payment terms of the orders paid with each payment method of the shop. Empty: those of the customer in Odoo.
- Delivery address: when the order goes to another address than the billing one, it is added to the customer in Odoo as a delivery address and put on the order.
- Invoice the paid orders and Payment journal: creates and posts the invoice of the paid orders in Odoo and registers their payment in the journal.
- Other order fields: one line per field,
hikashop_column=odoo_field, to send order custom fields, for instance a site reference into a field added with Odoo Studio. - Follow the status in Odoo, Statuses and Notify the customer: the HikaShop status an order gets when its Odoo order is confirmed, invoiced, delivered or canceled, and whether the customer gets the status email.
The lines are sent with the prices and the VAT rates of the shop, so the totals match; Odoo needs a sales tax excluding tax at each rate the shop uses. A difference of total is written in the HikaShop log. The order page of the backend shows its Odoo order, with a link to it.

When it could not be sent, the error is shown with a "Send to Odoo" button. An order is never sent twice: an order created in Odoo just before a time-out is found again rather than created a second time.
Customer account
Show the Odoo documents adds a "My documents" page to the account of the customers known in Odoo: their orders, invoices or quotations (as chosen in Documents shown), including those made outside the shop, with their PDF. A customer only ever sees their own documents.
Instant updates (webhooks)
The cron is enough. To see changes made in Odoo at once, enable Accept Odoo webhooks and save: the page shows the address to give to Odoo. In Odoo, activate the developer mode and open Settings > Technical > Automation Rules. Create one rule for each model you want (Contact, Product Variant, Sales Order, Stock Move), triggered "On save", with the action "Send Webhook Notification" to this address; for Stock Move, add the field Product to the data sent. The address holds a secret key: keep it private, and click Make a new address if it leaked (then give the new address to Odoo). Odoo does not try again a call that failed, so the cron keeps checking everything anyway.
For developers
An add-on plugin of the hikashop group can change what is imported and sent with these events: onOdooBeforeCustomerSave($partner, &$data, &$extra, &$do), onOdooAfterCustomerSave($partner, $userId, $new), onOdooBeforeProductSave($odooProduct, &$columns, &$prices, &$do), onOdooBeforeCustomerCreate($order, &$partner), onOdooOrderPayload($order, &$payload, &$do), onOdooAfterOrderPush($order, $odooOrderId) and onOdooOrderStatus($odooOrder, $orderId, &$status, &$do).
Troubleshooting
- "Connection failed" or "Odoo refused the API key": check the address, and that the key is right and not expired or revoked. On Odoo Online, check the plan is Custom.
- "The API key could not be renewed": set the system parameter of step 3, or make a new key in Odoo and enter it with its date.
- An order waits with "No Odoo product with the code ...": the product has no Odoo product with that internal reference. Fix the code, then click "Send to Odoo".
- "No Odoo sales tax at ... %": create in Odoo a sales tax at that rate, excluding tax, then send the order again.
- "No Odoo product set for the shipping lines" (or fee, discount): choose the service product in the Orders settings.
- A customer is not imported: they need an email, the Customer rank Odoo gives to anyone you sold to, and the tag of the setting if one is chosen.