Jump to content

[SOLVED] Product list formatting problem


Recommended Posts

  • 2 weeks later...

The problem is that you have added a

to the product description of the "Emerson Fittipaldi No. 6 JPS Leather Holdall" product and it isn't being stripped properly. I think it's because the
tag is being truncated before the tags are stripped. Try changing line 9 of themes/prestashop/product-list.tpl from:


<a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:360:'...'|escape:'htmlall':'UTF-8'|strip_tags:'UTF-8'}">{$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'}



to:


<a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'}">{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}



This should hopefully strip the div before truncating instead of after.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...