Documentation You are here: start » v » 2.0 » multicurrency

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v:2.0:multicurrency [2017/04/26 07:02] – external edit 127.0.0.1v:2.0:multicurrency [2020/04/21 17:30] (current) – [MultiCurrency and Discounts] marija
Line 19: Line 19:
 The currency for a specific product can also be set by appending the 3-character ISO currency code, eg: ''&price=15.99usd'' The currency for a specific product can also be set by appending the 3-character ISO currency code, eg: ''&price=15.99usd''
  
-If a product is added in a currency that does not match the current locale of the cart (for example, with a store that is set to USD, and a product is added to the cart as ''price=50mxn''), the products price will be dynamically converted to the cart currency. If no currency code is appended to a product's price, it will be assumed as the store's default currency, and dynamically converted from that to the current currency of the cart. The rate used in the conversion is requested from [[http://openexchangerates.org|openexchangerates.org]].+If a product is added in a currency that does not match the current locale of the cart (for example, with a store that is set to USD, and a product is added to the cart as ''price=50mxn''), the products price will be dynamically converted to the cart currency. If no currency code is appended to a product's price, it will be assumed as the store's default currency, and dynamically converted from that to the current currency of the cart.  
 + 
 +Dynamic price conversions currently require that a store have at least two different template sets with differing locales be configured. The rate used in the conversion is requested from [[http://openexchangerates.org|openexchangerates.org]].
  
 ==== Product Option Modifiers ==== ==== Product Option Modifiers ====
Line 63: Line 65:
 </code> </code>
  
-This syntax is the same for category discounts and for coupons. This allows setting custom discounts per currency. <wrap tip>If a currency is not included, the discount will not apply.</wrap> This is to prevent discounts from applying that could have significantly wrong values after the conversion math is done.+This syntax is the same for category discounts and for coupons, except you'll put the JSON right in the //coupon// or //discount details// input. This allows setting custom discounts per currency. <wrap tip>If a currency is not included, the discount will not apply.</wrap> This is to prevent discounts from applying that could have significantly wrong values after the conversion math is done.
  
 ==== Some Examples of MultiCurrency Usage ==== ==== Some Examples of MultiCurrency Usage ====

Site Tools