Jump to content

Product List Short Description Issue


tdr170

Recommended Posts

Both upgrade and fresh install same issue.

 

There seems to be an issue with the short description format, when entering the description I have it like this

 

post-310220-0-85762800-1395246310_thumb.jpg

 

 

But as you can see in the product list view it does not format

 

post-310220-0-08358400-1395246357_thumb.jpg

 

 

In the Product view it is correct

 

post-310220-0-35242700-1395246390_thumb.jpg

 

 

Here is the code

<p class="product-desc" itemprop="description">
{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}
</p>
 
 
 
I have tried using the code from 1.4 that I had to fix this but it does not work
 
Change this
title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}">{$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'}
 
To this
title="{$product.description_short|truncate:360:'...'|strip_tags:'UTF-8'|escape:'htmlall':'UTF-8'}">{$product.description_short|truncate:360:'...'}
 
 
 
If I remember correctly this was not necessary in 1.5 as the short description format was set correctly.
 
Any ideas on how to change the code to work can't seem to figure it out.

 

Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...