Cyrillic fonts at VM cart pop-up

GK User
Sun Mar 03, 2013 11:18 am
Hi guys,
I'm using Cyrillic fonts on my site, and when I'm adding some products to the VM cart, at the pop-up window appears unreadable symbols instead of the product name (see picture). What could be the problem?
Joomla 2.5.9, VM 2.0.18a, latest version of Boutique
User avatar
Fresh Boarder

GK User
Sun Mar 03, 2013 1:16 pm
Please try this fix, it help other users and this problem is probably related with VirtueMart not our template http://forum.virtuemart.net/index.php?PHPSESSID=b1e6031cb4dfae5a235b3c89f178c67f&topic=111359.msg374103#msg374103
User avatar
Platinum Boarder

GK User
Sun Mar 03, 2013 5:48 pm
bkrztuk wrote:Please try this fix, it help other users and this problem is probably related with VirtueMart not our template http://forum.virtuemart.net/index.php?PHPSESSID=b1e6031cb4dfae5a235b3c89f178c67f&topic=111359.msg374103#msg374103


Thanks for the quick response bkrztuk, but with default template Beez20 everything is ok, problem only appears at the boutique template...
User avatar
Fresh Boarder

GK User
Sun Mar 03, 2013 6:52 pm
I figured out,
the problem was in: templates\gk_boutique\html\com_virtuemart\productdetails\ default.php at line 349. To fix this, code below should be replaced from:

<input type="hidden" class="pname" value="<?php echo htmlentities($this->product->product_name) ?>" />

to

<input type="hidden" class="pname" value="<?php echo htmlentities($this->product->product_name, ENT_QUOTES, 'utf-8') ?>" />

thanks for the tip bkrztuk ;)
User avatar
Fresh Boarder

GK User
Sun Mar 03, 2013 7:11 pm
this fix, also resolve another problem of summing products in pop-up cart
User avatar
Fresh Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.