Jump to content
Dettrich

Block Cart - Ajax popup character encoding error

Recommended Posts

Hi there. I have an issue.

 

I'm using Prestashop 1.4.5.1 with Block cart, ajax cart enabled.

When I try to add more items to the cart, than available on stock, an error message pops up (a modal window).

 

In this error message the character encoding is wrong, displaying accented characters in ISO format. Like this:

Nem rendelhetsz többet, mint ami készleten van!

 

It should appear like this:

Nem rendelhetsz többet, mint ami készleten van!

 

In the ../translations/hu/errors.php it's fine, written like UTF-8.

In the admin area, at translations, it also displays properly.

 

Where could be the error?

 

Site: http://ongyjto.net

Share this post


Link to post
Share on other sites

Hi

 

Has anybody found the answer to this, as I have exactly the same problem (using 1.4.7.3) with the Swedish letters "öäåÖÄÅ" ?

 

Thanks in advance

David C

Share this post


Link to post
Share on other sites

I fixed it by editing blockcart-json.tpl in modules/blockcart in PS 1.5.2:

 

Change line 38 to this:

"name":		  "{$product.name|truncate:15:'...'|escape:html:'UTF-8'}",

Edited by goatee2905 (see edit history)
  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More