variation_id
must be placed within the product object.setVariation
method must be passed GBP
. If the customer changes the currency to Euros (EUR), the setVariation
method must be passed EUR
.0.77
is the exchange rate from US Dollars (USD) to British Pounds (GBP) and 0.91
is the exchange rate from US Dollars (USD) to Euros (EUR).valid_until
entry defines the expiration date. When the expiration date is reached, the exchange rates won't be applied anymore and prices will be hidden for all the secondary currencies to prevent displaying outdated prices.Note: Ensure that the Variation ID of the primary currency matches the value sent via thevariation_id
element in the product tagging.