Back to Documentation
Dropshipping Module

How Do Synchronization Protection Thresholds Work?

Understand IHASHOP protection thresholds for invalid products, missing products and changed variant costs before applying synchronization.

What are protection thresholds?

Protection thresholds in IHASHOP Dropshipping 1.0.0 prevent unexpected catalog changes from being written. Preview and Apply use the same threshold checks. Defaults are 20% invalid products, 20% missing products and 15% variants with changed costs. These are configured defaults, not measured optimal supplier rates.

1. Calculate the invalid-product ratio

NormalizasyonKontrolu checks empty or duplicate product IDs, missing or duplicate variant keys, negative stock, invalid costs and field limits. Supplier-wide variant duplicates and category conflicts are added to the error counters. SenkronKosuServisi divides the sum of error counters by the product count after normalization and multiplies by 100.

Two errors among 12 products equal 16.67%; two among ten equal 20%; three among ten equal 30%. The last exceeds the default and triggers ESIK_HATA. The denominator is not the raw XML node count.

2. Calculate missing products

SenkronFarki counts previously known IDs absent from both valid incoming products and skipped IDs. The baseline includes supplier products with missing_since null and state not archived. Divide missing count by baseline count and multiply by 100. Two missing out of ten equal 20% and pass this gate; three equal 30% and trigger ESIK_KAYIP. An empty baseline gives zero. Observed but invalid skipped IDs are not counted as lost.

Zero stock alone does not mean missing.

3. Interpret the price change threshold

This is not a percentage price increase. Valid variants with both previous and current non-null cost are comparable. Previous costs come from last_cost for supplier variants whose missing_since is null. Costs are compared to four decimal places; increases and decreases both count. Divide changed variant count by comparable count and multiply by 100. Three changes out of 20 equal 15% and pass; four equal 20% and trigger ESIK_FIYAT.

No comparable variants gives zero. This is not currency conversion or profitability checking.

4. Understand boundary and order

Invalid-product ratio is checked first. If no writable products remain, URUN_YOK produces failed; an empty normalized list also fails with URUN_YOK. Missing and price thresholds follow. Only strictly greater ratios cause aborted; equality passes. Decisions use unrounded ratios, while statistics display two decimal places. Threshold-aborted runs do not write source catalog or core stock records; operational run records may remain.

Passing thresholds does not guarantee all other gates pass.

5. Configure the price threshold

Authorized administrators use Price change threshold (%) in Marketplace > Dropshipping Suppliers (/secure/dropshipping/tedarikciler). Values from 0 to 100 with up to two decimals are accepted, using comma or dot. Saving blank restores the default 15%. Invalid input preserves the old value. Supplier settings are saved with a transaction and row lock, preserving other settings. The next sync uses the new value.

Zero stops any comparable cost change. Setting 100 effectively disables this price safeguard, not the other gates.

6. Other threshold settings

The engine reads esik_hata_yuzde, esik_kayip_yuzde and esik_fiyat_yuzde in ds_suppliers.settings. Valid numeric values from 0 to 100 are accepted; invalid values fall back to 20, 20 and 15 respectively. The reviewed version has no admin editing controls for missing or invalid thresholds. Contact support rather than manually editing the database to bypass safeguards.

7. Compare GiyimDepom and Luxstoree

Table figures are illustrative, not live supplier measurements. GiyimDepom JSON ProductId identifies products: 21 missing out of 100 previous products yields 21%. Luxstoree uses a variant key derived from product code and barcode: 32 changed costs among 200 comparable variants yields 16%. Both exceed defaults. Built-in GiyimDepom cost may be unknown; saved mapping can use Price and @TRY. Luxstoree reads price and currency.

Missing costs are excluded from the price denominator.

ScenarioNumerator / denominatorRatioResultGiyimDepom — missing21 / 10021%ESIK_KAYIPLuxstoree — changed costs32 / 20016%ESIK_FIYAT

8. Read stopping explanations

In Marketplace > Dropshipping Sync, inspect the error code, measured ratio and limit. DurdurmaAciklamasi maps 14 known codes to Turkish/English explanations. Non-numeric ratios or limits become ?; unknown codes use a safe generic explanation. Raw source, URLs and secrets are not explanation parameters. The service does not change settings or decisions.

Verify the connection, category and field mappings, supplier changes and previous catalog. Run another Preview; do not raise limits without investigation.

9. Existing test scenarios

SenkronFarkiTest covers empty baseline, missing costs and invalid settings. SenkronKosuServisiTest expects equality at 20% missing and 15% cost changes to pass, and excess to stop. KaynakKalicilikTest covers the 20% invalid boundary and 30% excess. FiyatEsigiTest covers settings preservation; DurdurmaAciklamasiTest covers safe explanations and unavailable editing controls. SnapshotYazimTest checks no snapshot writes on threshold abort.

This guide follows the reviewed code and existing test expectations.

Related guides

Frequently asked questions

Does equality stop a run?

No. Only strict excess stops it.

Is price threshold a cost increase percentage?

No. It measures comparable variants whose costs changed.

What is the first-sync missing ratio?

Zero if the previous baseline is empty.

Can missing and invalid limits be edited in admin?

Not in the reviewed version; only the price threshold is editable.

Is a 100% price threshold safe?

It disables the price safeguard and should not be used without verification.

How to Manage Missing Products from Supplier Feeds

Frequently asked about this

No. Only strict excess stops it.