Emergency

In urgent situations or outages, you can send a text message to our emergency line

Emergency line (text message only)

+45 29 70 15 95

Send a text message with the following information:

  • Your name and webshop
  • A description of the problem

Note: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

Stock synchronization for product variants

How stock synchronization works for products with variants in Shoporama, using CSV import, the REST API, or shared stock across stores.

Reading time: about 3 minutes
Store owner

When you have products with variants (such as sizes), stock is tracked per variant. Here is how stock synchronization works for product variants in Shoporama.

Stock per variant

Each variant has its own stock level. If you sell a T-shirt in S, M, and L, each size has its own stock quantity. The product's total stock is the sum of the stock of all its variants.

Note that a customer input field of the list type is not a variant and therefore has no stock. If, for example, you let the customer choose a color that is printed after the order is placed, stock is still only deducted from the variant. If a color should be able to sell out, it needs to be a real variant. See Let customers fill in fields on a product.

For stock synchronization to update the right variant, each variant needs its own unique SKU (item number) in the product's variant list.

Update stock with a CSV file

You can update the stock of variants with a CSV import. The file must be semicolon-separated and contain three columns: the variant's SKU, the quantity, and an optional location tag.

TSHIRT-001-S;10;
TSHIRT-001-M;15;
TSHIRT-001-L;8;

The third column (tag) is optional and specifies a particular warehouse location. Leave it empty if you only have one location.

Update stock with the REST API

With the REST API, you can update the stock of a variant by specifying the variant's name:

PUT /REST/stock/{product_id}
{ "count": 10, "variant_name": "M" }

If the product has variants and variant_name is not specified, the API returns an error with a list of the available variants.

Shared stock

If you have several stores, you can use shared stock to synchronize stock automatically across stores. When a variant is sold in one store, the stock is automatically deducted in all stores.

The Synchronize stock page with an explanation of shared stock via SKU, a dropdown for choosing the source store, and a checkbox for automatic nightly synchronization.
The Synchronize stock page under the Stock menu. Shared stock links products across stores by SKU, and you can choose the source store and turn on automatic nightly synchronization.

Tip

Make sure each variant has a unique SKU. The SKU is what connects the stock import to the right variant. If two variants use the same SKU, the system cannot tell which one to update.

Need help? Contact us at support@shoporama.dk.