Currency

Key: currency

Currency defaults to the "default.currency" key.

We can override this using the "currency" key. This works the same as general keys where we can set a value, but we can optionally save this value.

[
  {
    "to": "INR",
    "if": "$('#currency_selector') | text,trim == 'INR'",
    "save": true // optional
  },
  {
    "to": "AUD",
    "if": "$('#currency_selector') | text,trim == 'AUD'",
    "save": true // optional
  }
]

Setting the save to "true" will save this as the default currency for the session. If currency is not overwritten again by the "currency" key this new value will be used for both user and order tracking.

results matching ""

    No results matching ""