Jump to content

[SOLVED] Need to remove the "?" at the Product List Summary with "..."


Recommended Posts

Hi, I need help to remove the funny question mark at the product listings. The summary was ok and showing "...", but after I changed the number to text to be shown, from 400 to 200, it is not showing correctly anymore.

 

Here's the coding:

<p class="product_desc"><a class="product_descr" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:20:'...'|escape:'htmlall':'UTF-8'}">{$product.description_short|truncate:200:'...'}</a></p>

 

Any help is appreciated. Thanks!!

post-372665-0-59141300-1345692096_thumb.png

Edited by linster (see edit history)
Link to comment
Share on other sites

I see some issues it appears that you have pasted some code into the wrong places take a look at the code below the first set of strings is yours the second is from mine. (the code in red might be the issue)

Also the first truncate says 20 not 200

(strip_tags is missing or did you remove))

 

 

 

<p class="product_desc"><a class="product_descr" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:20:'...'|escape:'htmlall':'UTF-8'}">

{$product.description_short|truncate:200:'...'}</a></p>

 

 

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

 

Copy and paste this corrected code and see if it works:

 

<p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:200:'...'|escape:'htmlall':'UTF-8'}">{$product.description_short|truncate:200:'...'}</a></p>

Edited by tdr170 (see edit history)
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...