{{{
and }}}
.{#
and #}
.checkExistance
- to be used in JS code; return true or false depending on whether a variable exists or not;getLabel
- outputs option's labelgetSuboptionLabel
- outputs suboption's labelasPrice
- outputs a numeric value formatted as price (two signs after the dot)asNumber
- it has a second argument for precision (the number of signs after the dot); outputs a numeric value formatted according to the precison givenprice
- a nicely formatted calculated product price;raw_price
- price to be used in JS expressions;price_suffix
- a nicely formatted price with taxes;raw_price_tax_rev
- price with taxes to be used in JS expressions;currency
- currency symbol;currency_code
- currency code;raw_price_discounted
- raw price discounted (cart discounts, if any);price_discounted
- price discounted (cart discounts, if any);quantity
- value from WC quantity field OR custom option that is used as the product qty field;total
- a nicely formatted total;total_discounted
- a nicely formatted total that is using price discountedraw_total
- total value to be used in JS expressions;raw_total_tax_rev
- total with taxes to be used in JS expressions;total_suffix
- a nicely formatted total with taxes;{{{ myTotal.toFixed(2) }}}
or {{{ myTotal.toFixed(0) }}}
(this code makes a whole number)