sith77 Posted April 16, 2013 Share Posted April 16, 2013 Hi, I would to add a simple html code in short description (like <br>) that appears in product list. I attach a sample image that I would like to appear. Html code is enabled only in product page, can I have in product list? Thank you all in advance! Link to comment Share on other sites More sharing options...
vekia Posted April 16, 2013 Share Posted April 16, 2013 You want to add the same html code for each product on list? Or you want to use different codes ? Link to comment Share on other sites More sharing options...
sith77 Posted April 17, 2013 Author Share Posted April 17, 2013 Thank you for the reply, I need to use different code Link to comment Share on other sites More sharing options...
sith77 Posted April 18, 2013 Author Share Posted April 18, 2013 in product-list.tpl I have change <p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}" >{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}</a></p> in <p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}" >{$product.description_short|truncate:360:'...'}</a></p> Now I can use different html code.. Link to comment Share on other sites More sharing options...
stevent Posted October 4, 2014 Share Posted October 4, 2014 escape:'htmlall':'UTF-8' don't work on 1.6 Help please !! Link to comment Share on other sites More sharing options...
El Patron Posted October 4, 2014 Share Posted October 4, 2014 tip: be careful modifying the short description. after making changes ensure that the generated sitemap short description is not corrupted. Link to comment Share on other sites More sharing options...
stevent Posted October 4, 2014 Share Posted October 4, 2014 I dont' know what you are talking about Link to comment Share on other sites More sharing options...
El Patron Posted October 4, 2014 Share Posted October 4, 2014 I dont' know what you are talking about sorry, when you run google sitemap module, this creates shop sitemap. After making changes to short desc. run sitemap module and check the product descriptions to ensure that does not contain any html in product description. Link to comment Share on other sites More sharing options...
stevent Posted October 4, 2014 Share Posted October 4, 2014 I don't use site map module for this project. But the probleme si not but i did'nt change product-list.tpl ===>> i don't know what i have to change to fix my problem ! Link to comment Share on other sites More sharing options...
El Patron Posted October 4, 2014 Share Posted October 4, 2014 ..I do 'not' advise making changes to short desc....so I won't advise on how to do so. Link to comment Share on other sites More sharing options...
khantaj Posted December 6, 2015 Share Posted December 6, 2015 just change p to div character <div class="product-desc" itemprop="description"> {$product.description_short|truncate:360:'...'} </div> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now