Formulas
Šis saturs vēl nav pieejams jūsu valodā.
Pricing rules use formulas — not preset “cost plus percent” action types. You write the expression that becomes the sell (or special) price.
Attribute references
Section titled “Attribute references”| Reference | Meaning |
|---|---|
{attr:price} | Supplier cost |
{attr:original_price} | Original / list price from the feed |
{attr:custom_…} | Import attribute |
{attr:computed_…} | Computed attribute |
Operators & functions
Section titled “Operators & functions”- Arithmetic:
+ - * / - Functions:
ceil,floor,round,abs,min,max,pow,sqrt
Examples
Section titled “Examples”30% cost-plus
{attr:price} * 1.325% cost-plus, psychological .99
ceil({attr:price} * 1.25) - 0.01Never below 90% of original price
max({attr:price} * 1.2, {attr:original_price} * 0.9)Fixed promotional special price from a custom attribute
Special price formula:
{attr:custom_promo_price}(Keep the main price formula for the regular sell price.)
Margin guard
Section titled “Margin guard”Margin for guards is:
(sell − cost) / sell × 100Pair aggressive formulas with a minimum margin % guard on the export profile.
- Preview every rule with a realistic sample cost
- Prefer fewer high-priority rules over long chains — only the first match applies
- Put a low-priority “default” catch-all so unmatched products still get a sell price