Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleShipping cost (weight) example
// if products weight is higher than 100 then increase shipping cost by 10, else export base shipping cost
[[{{weight}} > 100) ? {{shipping_cost}} : {{shipping_cost}} + 10]]

Price rounding - Math.round()

Code Block
titlePrice rounding
// increase price by 20% and round the result to the nearest integer
[[Math.round({{price_final_include_tax}} * 1.2)]]

...