Back to Documentation
Dropshipping Module

How to Map Supplier Product Variants

Map GiyimDepom and Luxstoree variants in IHASHOP and verify color, size, barcode, stock, cost and identity protection.

Supplier product variants are source records for options such as color and size. IHASHOP Dropshipping 1.0.0 maps variant collections separately from product fields. This guide uses source code and existing synthetic tests, not live supplier data.

1. Variant path and required field

Open Map product fields and Read source on the relevant feed under Marketplace > Dropshipping Suppliers. Select the product path and its variant collection. Variant code mapping is required when a variant path is selected. Use dot-separated paths, not XPath. The table shows ready-made suggestions; verify against the actual source.

Suggested variant mappings

  • IHASHOP: Variant path.

    GiyimDepom JSON: ProductCombinations.

    GiyimDepom XML: Varyantlar.Varyant.

    Luxstoree XML: variants.variant.

  • IHASHOP: Variant code.

    GiyimDepom JSON: ProductCombinationId.

    GiyimDepom XML: StokKodu.

    Luxstoree XML: barcode.

  • IHASHOP: SKU.

    GiyimDepom JSON: —.

    GiyimDepom XML: StokKodu.

    Luxstoree XML: —.

  • IHASHOP: Barcode.

    GiyimDepom JSON: Gtin.

    GiyimDepom XML: Barkod.

    Luxstoree XML: barcode.

  • IHASHOP: Color.

    GiyimDepom JSON: @renk.

    GiyimDepom XML: Renk.

    Luxstoree XML: @renk.

  • IHASHOP: Size.

    GiyimDepom JSON: @beden.

    GiyimDepom XML: Beden.

    Luxstoree XML: @beden.

  • IHASHOP: Stock.

    GiyimDepom JSON: StockQuantity.

    GiyimDepom XML: Stok.

    Luxstoree XML: quantity.

  • IHASHOP: Cost.

    GiyimDepom JSON: —.

    GiyimDepom XML: —.

    Luxstoree XML: price.

2. Identity, SKU and barcode

Variant code represents a stable external identity; SKU and barcode are separate. GiyimDepom JSON suggests ProductCombinationId and XML StokKodu. Gtin and Barkod are source barcodes. Saved mapping may fall back to product SKU when variant SKU is missing. External identities are not automatically copied into shop SKU. Preserve identifiers as text, including leading zeros. Identity and SKU limits are 120 characters, barcode 64.

3. Color and size

@renk and @beden are calculated options. Name/Value and name1/value1 through name3/value3 pairs are searched for renk/color/colour and beden/numara/size. In the GiyimDepom test, product Color Ten and variant Name=Numara, Value=S preserve color Ten and size S. In Luxstoree, BEDEN=M and RENK=Siyah are recognized despite attribute order. GiyimDepom XML suggests direct Renk and Beden fields. This does not automatically link shop options.

4. Cost and stock

A present variant cost takes precedence; missing variant cost may fall back to product cost. An existing test with product cost 100 and variant costs 110 and missing yields 110 and 100. Zero stock is valid; blank means unknown. Total product stock is not distributed to variants. Mapping stock to cost is blocked. Negative or invalid stock and invalid cost can cause product-level errors. Examples are not commercial quotations.

5. Luxstoree identity preservation

For Luxstoree XML, mapping id as product code, productCode as SKU and barcode as variant code preserves the built-in product-code-plus-barcode derived key. Preserving order options additionally requires product and variants.variant paths and barcode mapped to barcode. Derived identity does not guarantee source stability; barcode changes may change the key. Missing identities are not invented.

6. Existing catalog transitions

Saved mapping synchronization checks existing non-missing catalog records. Assigning an old SKU to another product ID, losing all common variant IDs for an existing product, or assigning an existing barcode to a different variant ID causes KOK_GECERSIZ. No common product in the existing catalog is also rejected. If a selected variant path returns no variants, an incomplete-key record prevents incorrectly treating previous variants as missing. Duplicate or missing keys can require review. Do not bypass these protections by manually changing identities.

7. Preview and save

Preview up to three products with twelve variants each. Compare IDs, barcodes, colors, sizes, stock and costs. Preview again after changes; Save mapping stores connection-specific settings. Then check the full synchronization preview. Field mapping does not create shop products or automatically link existing shop variants.

Related guides

Frequently asked questions

Is variant code required?

Yes, when a variant path is selected.

Is barcode always the variant identity?

No. GiyimDepom JSON uses a direct ID; Luxstoree preserves a derived key with correct mapping.

What if variant cost is missing?

Product cost may be used.

Is zero stock missing stock?

No. Zero is valid; blank is unknown.

Are existing identities protected?

Incompatible transitions are blocked during sync; inspect synchronization preview first.

How to Manage Supplier SKU, Barcode and Product Identities

Frequently asked about this

Yes, when a variant path is selected.