How can I link stock inventory between two products?

Solved

How can I link stock inventory between two products?

SPV23
Visitor
1 0 0

Hi all,

 

How do I allow for stock inventory from a Product A to link to Product B (which is Product A x 3)?

 

When Product A is in stock, Product B should also be in stock.

 

When the Product A is out of stock, the Product B should also be out of stock.

 

Thank you.

Accepted Solution (1)

NomtechSolution
Astronaut
1245 113 159

This is an accepted solution.

  1. Identify the variants: Determine the relationship between the variants of Product A and Product B. If Product A has multiple variants, each variant should correspond to a specific quantity of Product B.

  2. Update inventory levels: When the inventory level of Product A changes, you need to update the inventory level of the associated variants of Product B. This can be done using Shopify's API or through custom code.

  3. Implement inventory synchronization: Create a mechanism to synchronize the inventory levels of Product A and Product B. This can be achieved by listening to inventory level changes for Product A and propagating those changes to the corresponding variants of Product B.

View solution in original post

Reply 1 (1)

NomtechSolution
Astronaut
1245 113 159

This is an accepted solution.

  1. Identify the variants: Determine the relationship between the variants of Product A and Product B. If Product A has multiple variants, each variant should correspond to a specific quantity of Product B.

  2. Update inventory levels: When the inventory level of Product A changes, you need to update the inventory level of the associated variants of Product B. This can be done using Shopify's API or through custom code.

  3. Implement inventory synchronization: Create a mechanism to synchronize the inventory levels of Product A and Product B. This can be achieved by listening to inventory level changes for Product A and propagating those changes to the corresponding variants of Product B.