Currency on products with variants don't display default currency

Highlighted
Tourist
6 1 3

Hi,

Hope someone can help. Normally we don't use variants for our products and all the prices display as they should in our base currency (GBP). 
But when we set up a product with a variant the page loads first showing the price in UK pounds, then switches to US Dollars.
Crazy huh? 

Here is an example of a non variant product:
https://letterfest.com/products/cooks-utensils-ochre-journal

Here is a product with a variant:
https://letterfest.com/products/cooks-utensils-ochre-notebook

You should see UK pounds for the first and the second showing UK pounds then switch to US Dollars. They are exactly the same apart from name and one has a variant and the other does not.

This is the liquid in the product.liquid file, maybe help?
<div id="price" class="product-price {% if product.variants.size == 1 and product.compare_at_price_max > product.price %}on-sale{% endif %}">
{% if product.variants.size == 1 and product.compare_at_price_max > product.price %}
<del>{{ product.compare_at_price | money }}</del>
{% endif %}
{{ product.price | money }}
</div>


Any ideas would be gratefully appreciated.

Bob

0 Likes
Highlighted
Explorer
191 2 11

Hi there!

If you have difficulty displaying multiple currencies and product images dynamically  based on visitors' locations, you may consider using IP geolocation tools. It can detect your visitors' locations by IP and provide geo targeting services. 

When the currency is changed, it adds a paramour to the URL, for example, exampleshop.com?cur=USD, or exampleshop.com?cur=AUD. For example, use Geo Targetly. With its Geo Redirect, it auto redirects visitors to correct URLs and auto displays local currencies. You can easily set up redirecting rules within a few steps, each has its individual geolocation markets. No code is necessary.

Regarding setting up image variants, you can also use Geo Content tool from Geo Targetly. You can create rule for different location segment; for each different location market, you can set up product image associate with individual markets. Once a visitor matches your location rules, it can auto display the associate image seamlessly.  You can easily set up image content with the built-in HTML editor. It can save you from complicated codes.

Hope it helps!

0 Likes