Currency formatting false in shopping cart overlay/popup

Solved
Highlighted
New Member
5 0 0

 

Hello guys!

I'm new to Shopify .

I have following problem:

We are using this currency formatting in our webshop
{{amount_no_decimals}} SEK

It works very well but there is one exception. When you add a certain product to the shopping cart then a small overlay pops up (in the right upper corner) with a summary of the whole order and the checkout button. In this overlay the currency formatting is false and with dollars instead of SEK. When you click further to the shopping cart page (=checkout) then the prices and currency are back up to normal.

https://gyazo.com/a276b88d247b6a6a4ed973580a51510d

It would be great if anybody has some tips for me. Thanks a lot!


Webshop: https://dindress.se

Password: Blaoma

Theme: Booster
Cheers
ZIzou

0 Likes
Shopify Partner
532 110 150

@Zizou

 

I think you are working on preview theme because I checked your url and there is no currency switcher on line theme so, can you please send your preview theme link? so I can check and assist you better.

 

Thank you,

Tejas

Shopify Expert | skype: tejas.nadpara
- Feel free to contact me on support@hexaecommerce.com regarding any help
- Like and Mark as an Accepted Solution if reply helpful
0 Likes
New Member
5 0 0

can you check now the url is www.dindress.se

0 Likes
Shopify Partner
532 110 150

@Zizou 

 

I can't able to see your site because your store is not live yet. Please share theme password or preview link so I can check it.

 

Thank you,

Tejas

Shopify Expert | skype: tejas.nadpara
- Feel free to contact me on support@hexaecommerce.com regarding any help
- Like and Mark as an Accepted Solution if reply helpful
0 Likes
New Member
5 0 0

Ohh sorry the password is Blaoma

0 Likes

Success.

Shopify Partner
532 110 150

@Zizou 

 

Go to your theme.js file and search for "renderHoverCart" function. It would be like following:

function renderHoverCart(cart) {
  var source = $("#cartTemplate").html();
  var template = Handlebars.compile(source);
  var items = [];
  $.each(cart.items, function(i,o){
    items.push({
      id: o.id,
      title: o.title,
      url: o.url,
      price: Shopify.api.formatMoney(o.price),
      image: o.image.replace(/\.jpg/,"_small.jpg")
    });
  });
  $("#crt").html( template({items: items}) );
}

here, you can see price line code in this function:

price: Shopify.api.formatMoney(o.price),

now, replace it with following code:

price: Shopify.api.formatMoney(o.price, "{{amount_no_decimals}} kr"),

Let me know still if it not work for you.

 

Cheers,

Tejas

Shopify Expert | skype: tejas.nadpara
- Feel free to contact me on support@hexaecommerce.com regarding any help
- Like and Mark as an Accepted Solution if reply helpful
0 Likes
New Member
5 0 0

Ohh thanks, I just saw it!

 

Now it works.

 

Can you solve this for me too maybe?

 

On the last page of checkout the text is vertical like on this picture

https://gyazo.com/ae9b8bb61ad1b1dc85b80c13290fc84d

 

can I somehow make it horizontol like the 2 earlier pages?

https://gyazo.com/ae9b8bb61ad1b1dc85b80c13290fc84d

0 Likes