Question about product variants - stock management

FloD
New Member
2 0 0

Hi there,

 

We are developing a new site on shopify +. I have questions about stock management of product variants.
Inventory management becomes complicated and not automated.

 

Today, we sold:
1 pillow = 1 box = 1 stock unit
1 pack pillows (x2) = 2 box inside a huge box = 1 stock unit

But the stock tracking is done per simple pillow (one box) = a single SKU (the first variant)
 
Here is a concrete explanation of our inventory management for now and future:

Capture d’écran 2020-05-19 à 22.09.28.png

Then, this is the UX model below.
Capture d’écran 2020-05-19 à 12.04.46.png


Guys, have you got a solution or trick ?

Thanks a lot for your help 🙏.

Have a nice day,
Florian

 

0 Likes
hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 103 135

Hi @FloD ,

 

There is no native functionality in Shopify that will allow you to accomplish what you are looking for (updating the inventory of one product variant when the other one is sold).

 

You can achieve something like this through using the Shopify APIs and Webhooks:

  1. Use Shopify Webhooks to get notifications from Shopify every time a sale occurs on your store and the inventory of a product decreases (https://shopify.dev/docs/admin-api/rest/reference/events/webhook?api[version]=2020-04 - subscribe to the topics of product/update or inventory_item/update)
  2. Whenever this happens, use the Shopify Admin API to adjust the inventory of the corresponding pillow to also decrement in stock accordingly. You can do this through REST (https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel?api[version]=2020-04) or through GraphQL (https://shopify.dev/docs/admin-api/graphql/reference/mutation/inventoryadjustquantity?api[version]=2...)

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

FloD
New Member
2 0 0

Hi Hassain,

Thank you so much for your advices! 

 

Best,

Florian

 


@hassain wrote:

Hi @FloD ,

 

There is no native functionality in Shopify that will allow you to accomplish what you are looking for (updating the inventory of one product variant when the other one is sold).

 

You can achieve something like this through using the Shopify APIs and Webhooks:

  1. Use Shopify Webhooks to get notifications from Shopify every time a sale occurs on your store and the inventory of a product decreases (https://shopify.dev/docs/admin-api/rest/reference/events/webhook?api[version]=2020-04 - subscribe to the topics of product/update or inventory_item/update)
  2. Whenever this happens, use the Shopify Admin API to adjust the inventory of the corresponding pillow to also decrement in stock accordingly. You can do this through REST (https://shopify.dev/docs/admin-api/rest/reference/inventory/inventorylevel?api[version]=2020-04) or through GraphQL (https://shopify.dev/docs/admin-api/graphql/reference/mutation/inventoryadjustquantity?api[version]=2...)

 


 

0 Likes