Synchronizing stock with variants
Guide to stock syncing products with variants in Shoporama.
When you have products with variants (e.g. size and color), inventory is managed per variant. Here's how inventory synchronization works for variants in Shoporama.
Stock per variant
Each variant has its own stock status. If you have a t-shirt in S, M and L, each size has its own stock count. The product's total stock is the sum of all the variants' stock.
Update stock via CSV
You can update stock on variants via CSV import. Use the following columns:
item_number;variant_1;variant_2;stock TSHIRT-001;S;;10 TSHIRT-001;M;;15 TSHIRT-001;L;;8
Where variant_1 and variant_2 match the variant values of the product.
Update via REST API
Via the REST API you can update stock per variant with:
PUT /REST/product/{id}/variant/{variant_id} { "stock": 10 }
Shared stock
If you have multiple webshops, you can use shared stock to automatically synchronize stock across shops. When a variant is sold in one shop, stock is automatically pulled in all shops.
Tip to remember
Remember that stock is always per variant. If you update stock via CSV without specifying variant columns, only the product master data is updated - not the stock of variants.
Do you need help? Contact us at support@shoporama.dk.
Related articles
Show variants not in stock
Guide to display out-of-stock variants in your theme so customers can see the full range and possibly sign up for stock notifications.
Shared inventory between webshops
Guide to setting up shared inventory so that two Shoporama webshops draw from the same inventory.
Stock notification: Notify your customers when items are back in stock
Learn how to set up email notifications so your customers can be notified when out-of-stock products are restocked in your Shoporama online store.