seog Posted October 2, 2012 Share Posted October 2, 2012 Hey, I would like know how display in short description of product-list (categories) images inserted per producto from backoffice. These works perfect in product page but don´t work in short description of categories Best regards Link to comment Share on other sites More sharing options...
MEG Venture Posted October 3, 2012 Share Posted October 3, 2012 The product list.tpl under theme folder should be edited to do that. Find the code that displays short description and remove the "strip_tags" coding. I don't know your version of PS but see the below example: find below line: <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:'...'|strip_tags:'UTF-8'}</a></p> and change it to: <p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:360:'...'}">{$product.description_short|truncate:360:'...'}</a></p> 1 Link to comment Share on other sites More sharing options...
seog Posted October 4, 2012 Author Share Posted October 4, 2012 thanks very much, it works perfect. I don´t understand why prestateam don´t allow insert images in short description adding unnecessary code "strip_tags". Maybe to improve SEO? best regards Link to comment Share on other sites More sharing options...
adambwtt Posted August 3, 2013 Share Posted August 3, 2013 Does anyone have a solution to the following issue when applying the above script to Prestashop 1.4.11.0. The product listing shows "> before product image?? any support would be appreciated, thanks Link to comment Share on other sites More sharing options...
adambwtt Posted August 3, 2013 Share Posted August 3, 2013 <p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|truncate:360:'...'}">{$product.description_short|truncate:360:'...'}</a></p Solved it needed to delete "> Link to comment Share on other sites More sharing options...
blue17 Posted August 8, 2013 Share Posted August 8, 2013 I don´t understand why prestateam don´t allow insert images in short description adding unnecessary code "strip_tags".Maybe to improve SEO? So that we're not resigned to handcrafting "meta-description" html tag for each individual product page, PS automatically uses the first 255 characters of the product.short_description field to populate the "meta-description" html tag. Link to comment Share on other sites More sharing options...
divamvak Posted March 20, 2017 Share Posted March 20, 2017 Hi , I want to display images in short description in product page. Do i have to delete strip_tags in product.tpl on my theme? Thanx 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