Pāriet uz saturu

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.

ReferenceMeaning
{attr:price}Supplier cost
{attr:original_price}Original / list price from the feed
{attr:custom_…}Import attribute
{attr:computed_…}Computed attribute
  • Arithmetic: + - * /
  • Functions: ceil, floor, round, abs, min, max, pow, sqrt

30% cost-plus

{attr:price} * 1.3

25% cost-plus, psychological .99

ceil({attr:price} * 1.25) - 0.01

Never 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 for guards is:

(sell − cost) / sell × 100

Pair 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