Connect WooCommerce
What is this connection for?
Section titled “What is this connection for?”WooCommerce allows ELChat to search for products, inform a customer, manage its ELChat basket, prepare an order and follow the aftersales. Administration tools can also view sales and modify certain store data.
What you need
Section titled “What you need”Step 1 — Create the key in WooCommerce
Section titled “Step 1 — Create the key in WooCommerce”- Log in to WordPress administration with an account authorized to manage WooCommerce.
- Open WooCommerce > Settings > Advanced > REST API.
- Click Add Key or Create API Key.
- Enter a recognizable description, for example
ELChat. - Choose a user whose rights match the actions you want to allow.
- Select Read/Writing.
- Generate the key.
- Copy immediately the Consumer Key and Consumer Secret.
The Consumer Secret may no longer be displayed after leaving the screen. Keep it in a secret manager.
WooCommerce also requires readable WordPress permalians: setting Simple can prevent the REST API from working. The official procedure is available in the documentation WooCommerce REST API.
Step 2 — Connect WooCommerce to ELChat
Section titled “Step 2 — Connect WooCommerce to ELChat”- Open Dashboard > your site > AI Actions > Connectors.
- On the WooCommerce map, click Connect.
- Learn about Consumer key.
- Inform Consumer secret.
- Inquire the complete URL of the shop, with
https://and without administration path. - Validate.
Step 3 — Check the connection
Section titled “Step 3 — Check the connection”Check that the card displays Connected, then ask ELChat to search for a published product whose name you know. Compare name, price and availability with WooCommerce. For a second check without modification, ask for a summary of sales over a known period from the admin space.
What can ELChat do with WooCommerce?
Section titled “What can ELChat do with WooCommerce?”read variants, stock, notices and methods of delivery apply/remove a coupon; calculate the baskets of reading and local status ELChat List of Wishes Customer command: Create a real order pending and provide its payment URL; consult the state and history; search by email After sale: Cancel an order with confirmation; register an application for return or refund; execute a refund administrator Shop Administration Summary of sales, bestsellers, stock modification, order status and price, read and write, read and write, read and submit a product review, read and write
Important points
- The basket, applied coupons and wish list are kept by ELChat for conversation; they do not constitute the native basket of the visitor’s WordPress session.
- Generate payment creates a real WooCommerce order waiting, but does not remove the customer.
- A refund application does not move money. The share administrator ** make a repayment** has a real financial impact.
- An invoice or tracking link is returned only if the shop or its extensions provide it.
Reconnect or replace the key
Section titled “Reconnect or replace the key”Create a new WooCommerce key, then disconnect and reconnect the map with the new values. Once the test has been passed, remove the old key in WooCommerce > Settings > Advanced > REST API.
Disconnect
Section titled “Disconnect”Click Disable in ELChat. To completely revoke access, also remove the ELChat key from the list of REST API WooCommerce keys.
Common problems
Section titled “Common problems”Error 401 or invalid signature
Section titled “Error 401 or invalid signature”The key or secret is incomplete, revoked or associated with a user without sufficient rights. Generate a new pair in Read/Writing and copy it without spaces.
Error 404 on the API
Section titled “Error 404 on the API”Check the shop URL and the WordPress permalians. Activate a readable permalink format, then try again.
Products or Orders absent
Section titled “Products or Orders absent”Check that the products are published, that the key user can view them and that you are asking the right store.
Action denied
Section titled “Action denied”Order status, payment extension or shop rules may block cancellation, refund or change of address. Control the order directly in WooCommerce.
Security and limits
Section titled “Security and limits”A Reading/Writing key gives extensive access to the store data. Use a dedicated user, protect both secrets and activate human confirmation for sensitive refunds and changes. The results depend on the data and extensions actually displayed by the WooCommerce API.
Example: WooCommerce test shop
Section titled “Example: WooCommerce test shop”Create an ELChat — Tests key with the integration user, then find out:
- URL:
https://boutique.example.com; - Consumer Key:
ck_xxxxxxxxx; - Consumer Secret:
cs_xxxxxxxxx.
LURL indicates the shop and the two values authenticate the call. First check a published product, price and availability. This reading confirms the perimeter before testing a basket, draft order or a refund action under confirmation.