Back to Documentation
Dropshipping Module

How to Apply Suggested Selling Prices

Learn how IHASHOP suggested selling prices are approved, recalculated and applied while preserving other sales safeguards.

What are suggested selling prices?

IHASHOP Dropshipping 1.0.0 suggested selling prices are calculated from stored source costs for existing linked shop products. Synchronization does not automatically change selling prices. Suggestions and actual prices are separate. This guide follows the reviewed source version.

Apply a price in admin

Open Marketplace > Dropshipping Product Publishing (/secure/dropshipping/product-publishing). Select the supplier and linked product. Review current and suggested prices. Apply suggested price appears only when a non-null suggestion differs from the current price. Confirmation reads: The store sale price will be replaced with the suggested price. Continue? The button is disabled while loading. Success displays old and new prices.

Entitlement, Seller role and settings.edit write permission are required.

Calculation and transaction safety

SatisFiyatiServisi::uygula starts a transaction, identifies the supplier through the active product link and obtains a row lock. It reads the non-deleted shop product and locks its products row FOR UPDATE. FiyatKarari uses the highest calculable VAT-inclusive variant cost. The suggestion is the greater of default markup price and minimum floor, rounded half-up to cents. The action sends only the link ID.

The server rereads stored costs and markup without a new supplier network request. The earlier displayed amount is not guaranteed. Not all cost and settings rows are separately locked. Approval is not bound to a specific price version.

Price writing scope

MagazaFiyatYaziciUygulama updates only price through the Product model. Variant prices remain unchanged. Model observers can run; marketplace pending updates, search and cache effects depend on the installation observers. If suggestion equals current price, writing the price is skipped but sales state is still evaluated. Price and link updates share one database transaction.

Exceptions roll back the transaction; no general atomicity guarantee is made for external side effects. This is not product activation or inventory sync.

What if no suggestion exists?

ONERI_YOK can occur when default markup is missing, no cost is calculable, known non-TRY cost is present or exclusive VAT lacks a rate. The standard snapshot writer does not populate tax_rate. Automatic FX conversion is absent. Missing active link or non-deleted product yields BAG_YOK. Closed entitlement rejects the action. Correct missing data and review again. Do not force a price application.

Sales blocks and inventory

After a suitable price decision only active links blocked for margin_violation or price_unverifiable may reopen. Other reasons such as vat_unverified, store_trashed and stock_conflict remain. Product and variant links are updated separately; this does not remove all safeguards. Inventory is not immediately written. For a manually corrected catalog price, Open sales is a separate administrator action.

Its price check also accepts maliyet_yok; verify cost before reopening. Synchronization never reopens links automatically.

GiyimDepom and Luxstoree examples

Illustrative GiyimDepom cost 120 TRY, old price 100 TRY, default markup 25%, minimum 0% yields suggestion 150 TRY. Luxstoree cost 150 TRY, old price 160 TRY, default 20%, minimum 30% yields 195 TRY because the floor dominates. Verified VAT inclusion is assumed. Built-in GiyimDepom JSON may lack cost and currency; saved mapping can use Price and @TRY. Luxstoree reads price and currency. USD costs yield no suggestion.

These are not live prices.

GiyimDepomLuxstoree120 TRY × 1.25150 TRY × 1.30100 → 150 TRY160 → 195 TRY

Tests and final checks

SatisFiyatiTest covers blocking price 100 at cost 120, no sync price writing, applying 150 and reopening two price-blocked links. Minimum markup 150% at cost 50 yields 125. The USD case rejects with ONERI_YOK and preserves price 100. The Turkish UI test verifies the 100.00 → 150.00 success message and disappearance of the apply button. Existing test expectations were reviewed.

After applying, separately check price, block reasons, shop inventory and marketplace updates if applicable.

Related guides

Frequently asked questions

Are suggestions applied automatically?

No; administrator approval is required.

Can the displayed amount change?

Yes; the server recalculates from current stored data.

Does price change without a suggestion?

No; ONERI_YOK rejects the action.

Are variant prices changed?

No; only product price is written.

Are all sales blocks removed?

No; only eligible price-related blocks reopen.

How to Manage Supplier Cost Changes

Frequently asked about this

No; administrator approval is required.