Back to Documentation
Dropshipping Module

How to Manage Supplier Cost Changes

Understand IHASHOP cost changes, synchronization thresholds, price snapshot history and administrator-approved selling prices.

What are supplier cost changes?

IHASHOP Dropshipping 1.0.0 manages supplier cost changes separately from shop selling prices. Increases and decreases are tracked per source variant. Synchronization does not automatically change selling prices. This guide follows the reviewed source code.

Change ratio and threshold

SenkronFarki compares valid variants with both previous and incoming non-null cost. Differences at four decimal places count; increases and decreases have equal weight. Ratio = changed variants / comparable variants × 100. Strict excess over the default 15% threshold stops with ESIK_FIYAT. Fifteen changes among 100 pass; sixteen stop. Empty baseline or no comparable variants gives zero.

This is not a single product price increase percentage. Price change threshold (%) in Dropshipping Suppliers accepts 0–100 per supplier. Setting 100 effectively disables this safeguard; do not raise it without verification.

Updating source costs

KaynakKalicilikServisi writes changed non-null costs to last_cost and last_cost_at during Apply. Time is run started_at. Products and variants use short per-product transactions; earlier committed products can remain after later failure. Archived records are preserved. Preview does not persist source costs. Its price audit reads existing records, not simulated future applied costs. Threshold excess stops before catalog writes.

Price snapshot history

EloquentSnapshotYazici appends cost, currency, tax_included, variant, run and observed_at to ds_price_snapshots. A row is created on first observation or change in cost, currency or VAT inclusion compared with the last snapshot. Null-to-known VAT or the reverse also counts. Adapter VAT declaration takes precedence over connection setting. Duplicate run and variant writes are skipped. Snapshots share the product transaction.

SnapshotOkumaSiniri reads at most 30 records within 90 days; it does not delete old rows. This reader does not establish that a dedicated price-chart screen exists.

Missing cost and currency risk

A null incoming cost preserves last_cost. A new cost with missing currency can update last_cost while skipping a price snapshot and counting fiyat_snapshot_atlanan. DbFiyatOkuyucu reads last_cost but currency and VAT from the highest-ID snapshot. New cost can therefore be evaluated with older metadata. This is a source-derived risk, not a measured live incident.

Standard writing does not populate tax_rate; exclusive VAT without a rate prevents suggestions. Known non-TRY cost is unsupported; no FX conversion exists. Verify missing data before approving.

Sales safety and approval

After Apply, SatisFiyatiServisi checks linked products using the highest calculable VAT-inclusive variant cost. A price below minimum markup may block with margin_violation; unverifiable cost may block with price_unverifiable. maliyet_yok alone does not create a price block. Sync neither writes prices nor reopens links, even after costs decrease. Preview only counts the existing database price audit.

Audit failure can return FIYAT_HATASI statistics; inspect sub-results alongside run status. Applying the suggested price in Product Publishing requires separate approval. Real stock mode may calculate zero target for blocked links; actual writing depends on other gates.

GiyimDepom and Luxstoree examples

Illustrative GiyimDepom: 10 of 100 comparable variants change (10%). One cost rises from 100 to 120 TRY; current price 110 TRY and minimum markup 10% give a new floor of 132 TRY and violation. Default 25% suggests 150 TRY. Luxstoree: 32 of 200 change (16%); even if one cost falls from 150 to 130 TRY, the whole run exceeds the default threshold and writes nothing to the catalog.

In another safe run with 20/200 changes (10%), the same decrease yields a 162.50 TRY suggestion at 25%; the current price does not automatically decrease. GiyimDepom saved mapping may use Price and @TRY; built-in cost can be unknown. Luxstoree reads price and currency. Verified VAT inclusion is assumed. These are not live prices.

GiyimDepomLuxstoree10 / 100 = 10%32 / 200 = 16%100 → 120 TRY150 → 130 TRY150 TRYESIK_FIYAT

Tests and operational checks

SenkronFarkiTest covers comparable-cost ratios and empty baselines. SnapshotYazimTest covers cost-only changes, currency change with same cost, VAT change, missing currency and no writes on dry_run or threshold abort. Snapshot failure rolls back the relevant product transaction; earlier products can remain. SatisFiyatiTest blocks price 100 at cost 120 and allows administrator application of 150.

Inspect fiyat_degisen, fiyat_oran, snapshot_fiyat, fiyat_snapshot_atlanan and price sub-results in sync history. Review cost, current price and suggestion in Product Publishing. Existing tests were not rerun.

Related guides

Frequently asked questions

Does a cost decrease count?

Yes; increases and decreases count equally.

Is 15% a single product increase?

No; it is the ratio of changed comparable variants.

Is old cost erased when incoming cost is missing?

No; last_cost remains.

Is history written on every run?

No; on first observation and relevant changes.

Does selling price change automatically?

No; administrators apply it separately.

How to Manage VAT and Currency in Dropshipping Pricing

Frequently asked about this

Yes; increases and decreases count equally.