Back to Documentation
Dropshipping Module

How to Add New Supplier Variants to Existing Products

Understand IHASHOP supplier variants, new source records, existing links and safe management limitations.

How are new supplier variants managed?

IHASHOP Dropshipping 1.0.0 updates supplier variants in the source catalog. Reviewed b817b5d9 has no independent DS action to append later variants to an actively linked shop product. A source record, shop variant and active variant link are different records. This guide explains the limitation, not an automatic append feature.

Source synchronization

Successful Apply records new source variants through KaynakKalicilikServisi and EloquentKaynakYazici. New records start staged. Existing ready and active states remain; archived records are untouched. Missing variants are not physically deleted. Returning identity can revive the same record. GiyimDepom JSON uses ProductCombinationId; Luxstoree derives lx: from product code and variant barcode.

Luxstoree identity is provisional; barcode changes can create new identity. Identity conflicts and protection thresholds must pass before source writing. Preview does not persist source variants.

Initial product creation

UrunYayinServisi::olustur works only for eligible source products without active links. Approved primary category mapping is required. yayinVaryantlari excludes missing and archived states but has no additional missing_since filter. Check loss timestamps on other states separately. MagazaUrunuOlusturucuUygulama creates new Product and ProductVariant records together. Product SKU uses DS-SUPPLIER-ID; variants have sequence suffixes.

Collisions receive numeric suffixes. Attributes match existing languages using lowercase and compressed whitespace; new ones use default language. Variant price is null, stock zero, product inactive. These rules apply to initial creation, not later append.

Initial existing-product linking

UrunYayinServisi::bagla maps selected existing variants of an unlinked shop product. Category mapping is unnecessary. Partial mapping is allowed; at least one mapping is required if source variants exist. Product and variant links use origin=matched; creation uses origin=created. Shop prices, inventory and content remain. Each mapped variant's VAT snapshot and producing connection's vat_verified_at determine its sales state.

Initial linking does not append later variants. Both actions reject an already linked source with ZATEN_BAGLI.

Effects of later variants

DbStokOkuyucu calculates stock only through active ds_variant_links. A new unlinked source variant receives no core stock write. Manually creating a catalog variant does not create its DS link. However DbFiyatOkuyucu reads all source variants except missing/archived states without requiring an active variant link. A new unlinked expensive variant may influence existing product price suggestions or margin blocks.

CopTarayici also evaluates unknown VAT snapshots at product level. Check existing sales safeguards even though the new variant is not directly sold.

Difference from stock takeover

Take over stock in Product Publishing (/secure/dropshipping/product-publishing) calls StokYazimServisi::devral. It clears an existing active variant link's stock trace. stock_conflict becomes stock_takeover; no new variant or link is created. Next real sync establishes zero target and trace. Administrator Open sales removes eligible block; a later fresh sync may write positive stock. This does not adopt an unlinked variant.

No separate append action was verified in the panel.

GiyimDepom and Luxstoree examples

Illustrative GiyimDepom product is linked with sizes M and L. New XL with a distinct ProductCombinationId may be recorded staged. The two shop variants and links remain; XL is not automatically offered. Luxstoree product has linked M and new S with a unique barcode, creating a new lx: identity.

If S costs 160 TRY, M costs 100 TRY and sale price is 125 TRY, with minimum markup 0%, the new cost may trigger a price violation for the existing product. Verified inclusive costs are assumed. These are not live products.

GiyimDepomLuxstoreeM, L → XL (ProductCombinationId)M → S (lx:)staged160 TRYds_variant_links: +0ds_variant_links: +0

Safe operation and tests

Verify the source identity is genuinely new. Review sync and existing links. Do not assume unlinked variants are under automatic stock control. Do not delete active links, force recreation or insert links directly via SQL. Request a supported extension workflow. Initial creation uses source row lock, cache lock and transaction; initial linking uses source lock and active source/target uniqueness.

UrunYayinTest covers inactive zero stock, SKU suffixes, attributes and rollback. MevcutUruneBaglaTest covers partial mapping and ZATEN_BAGLI. KaynakKalicilikTest covers source persistence, loss and state preservation; StokDefteriTest covers takeover. No independent append acceptance test was found. Existing tests were not rerun.

Related guides

Frequently asked questions

Are new variants automatically added?

No; the reviewed release can create source records only.

Can I link the same product again?

An active source link causes ZATEN_BAGLI.

Does takeover add a variant?

No; it restores stock management of an existing variant link.

Can an unlinked variant affect price?

Yes; price audit also reads unlinked source variants.

Is manual catalog creation sufficient?

No; a DS link is needed and independent append is absent here.

How to Manage Dropshipping Product Links

Frequently asked about this

No; the reviewed release can create source records only.