i have problem with smarty templating on Prestashop.
I want to echo product description with html tags (wysiwyg) but it gives me string with striped html tag or nothing.
{$product.description_short|unescape|strip_tags:false}
unescape
and strip_tags:false
not change anything. String is still striped. Using only {$product.description_short}
display nothing.
i try to use {php} {/php}
but then everything i get is 500 error.
This is on listing .tpl
On single product view description works fine with that code {$product->description_short}
如果我了解您想要什么,您是否尝试过以下方法:
{$product.description_short|escape:'htmlall':'UTF-8'}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.