Requirement: unit cost in Shopify
The margin calculation needs the cost per item. PricePirate reads the variant’s cost per item from Shopify.The calculation
From unit cost, fixed cost, sales tax, and transaction fee, the price floor is determined as:Worked example
Assumptions: unit cost 10.00 €, fixed cost 2.00 €, minimum margin 20%, sales tax 19%, transaction fee 3%, no shipping cost.- netRevenueFactor = 1 ÷ 1.19 − 0.03 = 0.8403 − 0.03 = 0.8103
- Cost base = (10.00 + 2.00) × 1.20 = 14.40 €
- Margin floor = 14.40 ÷ 0.8103 = ≈ 17.77 €
The higher of the calculated margin floor and any other limit always wins. If a configured maximum price is below the margin floor, no valid price can be calculated and no change is created.
Availability
Minimum margin is available as the “with minimum margin” variant of both strategies:Match The Cheapest
“With minimum margin” variant.
Beat The Cheapest
“With minimum margin” variant.