Back to Documentation
Dropshipping Module

How Do Minimum Profit Margin and Loss Protection Work?

Understand IHASHOP minimum profit margin, price floors, sales blocks and safe price approval.

What is the minimum profit margin?

IHASHOP Dropshipping 1.0.0 minimum profit margin is a minimum markup on supplier cost. The default 0% detects prices below calculated cost only. This is not a net profit guarantee; shipping, commission and other expenses must be assessed separately.

Configure the admin setting

Open Marketplace > Dropshipping Product Publishing (/secure/dropshipping/product-publishing), select the supplier, enter Minimum profit margin (%) and save. Entitlement, Seller role and settings.edit are required. asgari_marj_yuzde is supplier-specific. Values 0–1000 with up to two significant decimals are accepted. Blank removes the setting and defaults to 0%. Tests reject -1, 1000.01, 1.234 and abc.

A transaction and row lock preserve other settings. Saving does not directly change existing prices or sales links.

Calculate the price floor

FiyatKarari uses the highest calculable VAT-inclusive variant cost. Floor = cost × (1 + minimum markup / 100). Tutar uses integer arithmetic and half-up rounding to cents. At 50 TRY cost and 10% minimum, the floor is 55 TRY. 54.99 violates it; 55 passes. With 25% default and 50% minimum, linked product suggestion is 75 TRY. Blank default markup means no suggestion, but floor checks continue.

Understand sales blocks

SatisFiyatiServisi only counts during Preview. Apply blocks open active product and variant links with margin_violation or price_unverifiable. Previously blocked reasons remain. Known non-TRY costs or exclusive VAT with missing rate are unverifiable. No automatic FX conversion exists. Standard price snapshots do not populate tax_rate. maliyet_yok alone creates no new price block.

The manual Open sales check also accepts maliyet_yok; missing cost is therefore a protection limitation. Do not remove blocks before verifying cost. Synchronization neither writes prices nor reopens links.

Stock safety

StokKarari calculates zero target sale stock for blocked links. Shadow mode only reports. Real stock mode requires core stock and ledger comparison checks; conflicts can prevent writing. Moving from zero to positive stock requires fresh source data. Removing a block does not immediately write stock or automatically activate the product. Verify sales links and actual shop inventory separately.

New versus linked products

UrunYayinServisi::oneri passes null minimum markup for new candidates and creation. At 100 TRY cost, 25% default and 50% minimum, a candidate suggests 125 TRY, a linked product 150 TRY. Valid manual pricing takes priority at creation; the minimum is not enforced by this calculation. New products are inactive. Later price checks are separate. Verify the floor manually before creation.

GiyimDepom and Luxstoree examples

Illustrative GiyimDepom cost 100 TRY, current price 105 TRY and minimum 10% yield floor 110 TRY and violation. Luxstoree cost 150 TRY, price 165 TRY and minimum 10% yield floor 165 TRY and equality passes. Verified VAT-inclusive costs are assumed. Luxstoree USD cost is unverifiable. Built-in GiyimDepom JSON leaves cost and currency unknown; saved mapping can use Price and @TRY. Luxstoree reads price and currency.

These are not live prices.

GiyimDepomLuxstoree100 TRY + 10% = 110 TRY150 TRY + 10% = 165 TRY105 TRY165 TRYmargin_violationuygun

Administrator approval and tests

Apply suggested price locks the active link and shop product, recalculates from current cost and writes through the model in a transaction. No suggestion yields ONERI_YOK. Only price-related blocks reopen on a suitable decision; VAT, trash and stock-conflict reasons remain. If the catalog price is corrected manually, Open sales checks current conditions again.

SatisFiyatiTest covers 49.99/50 and 54.99/55 boundaries, blocking 100 TRY price at 120 TRY cost, applying 150 TRY, USD rejection and invalid markup. StokDefteriTest and GolgeModTest cover stock gates and conflicts. Existing test expectations were reviewed.

Related guides

Frequently asked questions

What if minimum markup is blank?

It defaults to 0%.

Does equality violate the floor?

No; only a price below it violates.

Does sync correct prices automatically?

No; administrator price application is separate.

Does missing cost block sales?

This decision alone does not create a price block.

Do new candidates respect the minimum?

Not in the reviewed creation flow; linked product suggestions do.

How to Apply Suggested Selling Prices

Frequently asked about this

It defaults to 0%.