Difference between revisions of "Liquid Template Variables - exchange rate"

From Spiffy Stores Knowledge Base

m
m
 
Line 6: Line 6:
  
 
If no custom display currency is active, then the ''exchange_rate'' will be equal to 1.
 
If no custom display currency is active, then the ''exchange_rate'' will be equal to 1.
 +
 +
== Further Reference ==
 +
 +
* [[Liquid Basics]]
 +
* [[Liquid Tag Reference]]
 +
* [[Liquid Filter Reference]]
 +
* [[Liquid Variable Reference]]
 +
* [[Liquid Paginate Tag|Pagination ]]

Latest revision as of 13:19, 25 June 2018

If your theme has enabled currency support, then the user may choose to display all prices in their local currency, rather than in the store's local currency.

This currency support is enabled if a cookie spiffy_currency is created in the user's browser containing the 3-character currency code that the user wants to use.

If this cookie is detected, then a Liquid variable, exchange_rate is available which contains the current exchange rate between the user's display currency and the store's local currency.

If no custom display currency is active, then the exchange_rate will be equal to 1.

Further Reference