Back to Documentation
Dropshipping Module

How to Convert Supplier Products into Store Products

Learn how IHASHOP creates store products with category mapping, SKU, variants, images and inactive initial status.

What does creating store products mean?

IHASHOP Dropshipping 1.0.0 creates store products separately from the source catalog. Synchronization prepares source records; it does not automatically publish shop products. An administrator selects an eligible candidate and creates a real catalog product. This guide follows the reviewed source code.

Candidates and category requirements

UrunYayinServisi::adaylar lists non-missing staged, ready and requires_mapping sources without active links. New creation requires staged or ready and approved primary category mapping. A mapping-required candidate can only link to an existing product. Complete mapping and successful Apply to update source status. An already linked source cannot be created again. Mapping does not guarantee the shop category is active.

Create in the admin panel

Open Marketplace > Dropshipping Product Publishing (/secure/dropshipping/product-publishing). Select the supplier and eligible candidate. Review name and price. Choose the inactive store product creation action and confirm. Success reports creation of an inactive shop product. Entitlement, Seller role and admin write permission are required. Name must be nonempty and at most 255 characters.

The source name is used without manual override. Source URL preview may be available, but not guaranteed for every candidate.

Price and SKU rules

Manual price takes priority. It must be positive, have at most two significant decimal places and not exceed 99,999,999.99. Invalid price yields FIYAT_GECERSIZ. Without manual price, FiyatKarari suggestion is used; without either, FIYAT_GEREKLI occurs. New candidate suggestions omit minimum markup. Purchase price is the highest raw variant cost and may differ from gross-cost suggestion.

SKU uses DS-<CODE>-<source ID>, with sequential variant suffixes. Numeric suffixes resolve product or variant SKU collisions. Supplier barcode or SKU is not directly used as shop SKU.

Variants and initial stock

MagazaUrunuOlusturucuUygulama writes name and unique slug in the default shop language. Slug collisions receive numeric suffixes. Missing and archived variants are excluded. Attribute names and values are compared across existing languages using lowercase and compressed whitespace. Matches are reused; new entries use default language. Variant price is null; product and variant stock are zero. status and is_active are false.

Links start open when VAT requirements pass, otherwise vat_unverified. An open link is not an active storefront product.

Images and descriptions

TedarikciUrunIcerigi reads GiyimDepom JSON FullDescription/Pictures, XML Aciklama/Resimler.Resim and Luxstoree XML detail/image1–image8. HTML is sanitized and short description derived with a 155-character limit. After commit, MagazaUrunIcerigi fills empty descriptions in the default language only for an active created-origin link with a non-missing source. Existing descriptions in any language remain.

A nonempty gallery is not supplemented. First eight URLs are considered; HTTPS and allowed source hosts are required. JPEG, PNG and WebP are accepted up to 6000 pixels per side and 16 million pixels total. SHA-256 removes duplicate content. Content errors are logged without rolling back creation. No automatic translation or complete image guarantee exists.

GiyimDepom and Luxstoree examples

Illustrative GiyimDepom internal source ID 101 has two variants costing 80/100 TRY. Verified inclusive costs and 25% default markup suggest 125 TRY, SKU DS-GIYIMDEPOM-101. Built-in JSON may lack cost; saved mapping can use Price and @TRY. Luxstoree source ID 202 costs 150 TRY with manual price 199.90 TRY. SKU DS-LUXSTOREE-202 and manual price 199.90 result. Both products are inactive with zero stock. Category approval is required.

IDs are internal records, not external codes. Images can transfer if valid and gallery empty. These are not live products.

GiyimDepomLuxstoreeDS-GIYIMDEPOM-101DS-LUXSTOREE-202125 TRY199.90 TRYstatus=false; stock=0status=false; stock=0

Transaction safety and tests

UrunYayinServisi locks source row FOR UPDATE. Product, variants, attributes, created links and source active status share a transaction; errors roll back. DS creation lock lasts 60 seconds with default wait 10 seconds; timeout or deadlock yields MESGUL, unique violation YAYIN_CAKISMASI. Normal catalog writers do not share the lock. Content completion is separate after commit.

UrunYayinTest covers inactive product, zero stock, SKU suffixes, attribute reuse, invalid prices, duplicate creation and rollback. UrunYayiniEkraniTest covers admin UI. Existing tests were not rerun. Verify content, price, VAT, category, stock and storefront state separately.

Related guides

Frequently asked questions

Does sync create shop products automatically?

No; administrator creation is required.

Is category mapping required?

Yes for new creation; linking existing products is separate.

Why is initial stock zero?

Products are created inactive; stock safety is separate.

Are images guaranteed to transfer?

No; source, gallery and validation conditions apply.

Does content failure delete the product?

No; content completion runs after commit.

How to Link Supplier Products to Existing Store Products

Frequently asked about this

No; administrator creation is required.