Recently Viewed Items - Wrong Currency Format

New Member
10 0 0

Hi,

I implemented the customisation as described in the link below

http://docs.shopify.com/manual/configuration/store-customization/advanced-navigation/recently-viewed...

Its working good, except for the currency of the product. Its shows $ as the currency instead of my store currency.

Please help. 

 

Regards

0 Likes
Shopify Partner
115 0 3

Did you do this ->

http://docs.shopify.com/manual/configuration/store-customization/advanced-navigation/recently-viewed...

Specialized in setting up/customizing Shopify, coupon/discount code management, CSS, XHTML, JavaScript, Ajax, jQuery and SEO. Contact me @ mlkhui@gmail.com
0 Likes
New Member
10 0 0

Thanks. I did a code change and it worked 

  window.myprice = "{{ shop.money_with_currency_format }}";

 

      <span class="price">{{if price_varies}}From {{/if}}${Shopify.formatMoney(price, window.myprice)}</span>

 

 

0 Likes
Shopify Partner
3 0 0

Hi,

I have installed the 'recently viewed items' code however also getting a $ sign instead of my default currency (£).

Can you tell me how you managed to resolve?

Thanks

Stuart

0 Likes
New Member
10 0 0

You can put this code

 

window.myprice = "{{ shop.money_with_currency_format }}";

 

      <span class="price">{{if price_varies}}From {{/if}}${Shopify.formatMoney(price, window.myprice)}</span>

0 Likes
Shopify Partner
3 0 0

Many thanks. Where did you put the below code?

window.myprice = "{{ shop.money_with_currency_format }}";

0 Likes
Shopify Partner
3 0 0

Hi Kart,

Could you let me know where you added the code. would be greatly appreciated as doesnt seem to work for me?

Cheers

S

0 Likes
Highlighted
Shopify Expert
3 0 0

You can put it above
Shopify.Products.showRecentlyViewed( { howManyToShow:3 } );

<script>

Shopify.Products.showRecentlyViewed( { howManyToShow:3 } );

</script>

Finaly you got 

<script>
window.myprice = "{{ shop.money_with_currency_format }}";

Shopify.Products.showRecentlyViewed( { howManyToShow:3 } );

</script>

0 Likes