Shopee stock
How the shop, the till, and Shopee share one stock count.
Shopee sells the same bottles as the website and the till. There is one stock count, and it lives in the admin. Shopee is told a smaller number, so a sale on Shopee and a sale at the till in the same minute cannot both take the last bottle.
Prices on Shopee, and the words and photos on the Shopee listing, stay on Shopee. This page does not change them.
Before the first connection
Someone at Shopee has to give Glemor a partner id and a partner key, and the shop owner has to approve the link. Victor does that on the Shopee Open Platform. The app is not live until those exist. The values go in the Medusa server settings, not in this guide.
The four names are:
SHOPEE_PARTNER_IDSHOPEE_PARTNER_KEYSHOPEE_REDIRECT_URL, the address Shopee sends the browser back toSHOPEE_PUSH_URL, the address Shopee calls when an order changes
Until those are set, the Shopee page in the admin says what is missing and sends nothing.
Connect the shop
Open Shopee in the admin. Press Connect Shopee. Shopee asks the shop owner to allow the link. That page expires after a few minutes, so it is created when you press the button. Stay signed in to the admin while you do it.
When you come back, the page shows the shop id and when the access will need renewing. A job renews it on its own. If Shopee ever says the shop must be approved again, press Reconnect.
Set the location and the buffer
Choose the Medusa stock location that holds the bottles Shopee sells. That is the George Town pile, unless you have been told otherwise.
The Shopee warehouse box is the location id from Shopee. Leave it blank when the shop has a single warehouse.
The safety buffer is how many bottles we do not show on Shopee. If the admin has 10 and the buffer is 2, Shopee is told 8. Those 2 stay available for the website and the till while a Shopee order is still on its way into the admin.
A buffer of 0 is allowed. The page warns you, because the last bottle can then be sold twice in the same moment.
Press Save.
Match each scent
Press Match by SKU. The page links each Medusa variant to the Shopee listing that uses the same SKU. Capitals do not matter. A SKU that is on two listings is not linked. It is named on the page so you can choose.
Anything still unmatched is listed under Variants with no Shopee listing or Shopee listings with no variant.
To force a link, fill in the variant id, the Shopee item id, and the model id, then press Save manual link. Use model id 0 when the listing has no variant. A manual link replaces the SKU match for that variant. Clear removes it.
What changes the number on Shopee
The number Shopee shows is the available stock at the location you chose, minus the buffer. Available means on hand, not already set aside for another order.
- A till sale lowers it.
- A refund puts bottles back, and Shopee is told the higher number.
- A transfer out of that location lowers it. A transfer at a different location does not.
- A Shopee order lowers the admin count by the number of bottles in the order. Shopee is then told the new number.
A Shopee order notice can arrive twice. The bottles are taken once. A cancelled Shopee order puts them back, also once. The same order is checked again every 15 minutes, in case a notice was missed.
The log and the drift list
Sync log is the recent pushes, order updates, and token renewals. A failed row says what stopped.
Check drift compares Shopee with the number we would push. It does not change Shopee. When a row disagrees, Push stock now sets Shopee to the Medusa number.
What you do not do here
Do not type a Shopee price on this page. Do not create a listing here. Do those on Shopee, and keep the SKU the same as the variant in the admin so the next match finds it.