Connect WooCommerce
Give Duks access to your online shop. This page also shows what the AI can do.
The account at Duks is in Danish. Where this page names a button or a page in the account, the Danish name is in quotes, with what it means after it.
What you get
The AI can look up orders, customers and products in your online shop, change an order's status, register a refund and edit products, prices and stock when the person's role allows it. Paying money back to a customer is done in WooCommerce itself.
WooCommerce in your AI: what you can ask
What you need
- You are an administrator at Duks.
- One person gives access once for the whole company.
- Access must be given by an administrator or a user with the role "Webshop leder" in your WordPress.
- The shop must run on https and have pretty permalinks switched on.
- The shop's address. It must start with https://.
Step by step
You enter the shop's address under "Tilføj system" (Add system) at Duks, log in to WordPress and give Duks access there. The shop makes the keys itself and sends them straight to us, so nobody has to copy them. We test them with the shop before we save them, and at Duks they are never shown again.
- Enter the shop's addressChoose WooCommerce under "Tilføj system" (Add system) at Duks, enter the address of your online shop, and choose "Fortsæt til WooCommerce" (Continue to WooCommerce).
- Log in to WordPressThe shop asks you to log in if you are not already logged in. It must be someone who may manage WooCommerce.
- Give Duks accessWooCommerce shows that Duks will be able to read and write in the shop. Press "Approve". You then come back to Duks and choose who may do what.
Can't you give access yourself?
Access must be given by an administrator or a user with the role "Webshop leder" in your WordPress. If it is not you, hand the task over with a link. Your colleague does not need to be on Duks.
- Press "Det er ikke mig" (It's not me)On the page where you connect WooCommerce at Duks, press "Det er ikke mig" (It's not me).
- "Send linket" (Send the link)Write your colleague's email address and, if you like, their name, and press "Send linket" (Send the link). We send the link in one email, and if your colleague replies, the reply goes to you. The link only works for WooCommerce, once, and for 7 days.
- Or send it yourselfPress "Lav kun linket" (Only make the link) and then "Skriv en mail" (Write an email), and the text and the link are ready in your email program. You can also copy the link into a message.
- Choose rolesYour colleague opens the link and gives access. You get an email when WooCommerce is connected, and then choose which role each access group gets.
What each role may do in WooCommerce
Each colleague gets a role in WooCommerce. The AI only sees and changes what the role allows, and every change is in your log. What a role is, is explained under roles.
The roles in WooCommerce, as the account names them:
- "Indblik"
- "Kundeservice"
- "Webshop"
If the shop does not show the page
Some shops do not show the page, because it is switched off or because a security plugin blocks it. Then someone who may manage WooCommerce makes the keys themselves, and you paste them into Duks together with the address. Choose "Lav nøglerne i WooCommerce selv" (Make the keys in WooCommerce yourself) under "Tilføj system". The shop must use https:// in both directions, so the keys cannot be read on the way.
- Find the keysLog in to your WordPress, go to WooCommerce, and choose "Settings", "Advanced" and "REST API".
- Make a key for DuksChoose "Add key", enter Duks under "Description", choose "Read/Write" under "Permissions", and press "Generate API key". The two keys are only shown once, so copy both.
- Paste them into DuksPaste them together with the shop's address under "Tilføj system" (Add system) at Duks.
Refunds
The AI can register a refund on an order when the role allows it. That does not pay the money back. The refund itself is done in WooCommerce.
Delete
With the role "Webshop" (Online shop), the AI can delete a product that has never been sold or ordered, and a discount code that has never been used. The shop checks first, and what is deleted stays in the trash in WordPress until it is emptied. A product that has been sold and a discount code that has been used are not deleted, and neither are notes on orders.
What Duks never does
- Pay money to anyone other than the person who paid for the order
- Delete anything that has been sold or used or is on an order
- Change the shop's settings, users or payment methods, or create and edit discount codes
Remove the access again
Log in to WordPress, find Duks under "REST API" in WooCommerce, and press "Revoke". If you also remove WooCommerce under "Systemer" (Systems) at Duks, access is closed in both places. See stop or remove access.