The product name ends with a question mark when the product name contains Chinese characters. http://i.share.pho.to/6b59d724_o.png
9 answers
Hi Oliver Yuan,
You can provide me the FTP credential of your site. I need to have a closer look to debug the issue.
Thank you
Mall
Hi Oliver Yuan,
I have created a backup and edited the template file at app/desgin/frontend/default/jm_megamall/template/joomlart/jmproductsslider/verticallist.phtml
Let’s clean the Magento cache in back-end of your site & have a look.
And contact me if you need further help.
Regards,
Mall
Hi Mall,
It seems that there’s no effect, the issue is still there. I guess the issue is inside
<?php
if (strlen($_product->getName()) > 18) :
echo substr($_product->getName(),0, 16).'...';
else :
echo $_product->getName();
endif;
?>
After googling, here’s the fix
<?php
if (strlen($_product->getName()) > 18) :
echo mb_substr($_product->getName(),0, 16,'utf-8').'...';
else :
echo $_product->getName();
endif;
?>
use mb_substr to replace substr
Hi Oliver Yuan,
Yeah, that’s my fixed code in your site. Did you see it in this template file?
/quickstart/app/desgin/frontend/default/jm_megamall/template/joomlart/jmproductsslider/verticallist.phtml
Anyway, glad it work now, let me know if you need further helps.
Hi Oliver Yuan,
I have created a backup and edited the template file line 189 at app/design/frontend/default/jm_megamall/template/catalog/product/list.phtml
Let’s clean the Magento cache in back-end of your site & have a look.
And contact me if you need further help.
Regards,
Kan Lee