glenskie16 Posted April 2, 2014 Share Posted April 2, 2014 (edited) My products do not have short descriptions, i wanted to change the product-list.tpl file so that it shows the regular description so i changed it and it works if you are in the categories but not if you search. Edited April 2, 2014 by glenskie16 (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted April 2, 2014 Share Posted April 2, 2014 What version of Presta? Link to comment Share on other sites More sharing options...
glenskie16 Posted April 2, 2014 Author Share Posted April 2, 2014 1.5.4 Link to comment Share on other sites More sharing options...
dioniz Posted April 2, 2014 Share Posted April 2, 2014 (edited) Guess you have custom theme. There was this code for short product description in product-list.tpl: <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> Edited April 2, 2014 by dioniz (see edit history) Link to comment Share on other sites More sharing options...
glenskie16 Posted April 2, 2014 Author Share Posted April 2, 2014 yes and my products do not have a short description so i changed the code to this This only works if you click on a category and view the products in the category , but not if you search for a product it will not show the description <p class="product_desc"><a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description|strip_tags:'UTF-8'|truncate:360:'...'}" >{$product.description|strip_tags:'UTF-8'|truncate:360:'...'}</a></p> Link to comment Share on other sites More sharing options...
dioniz Posted April 2, 2014 Share Posted April 2, 2014 Well it's hard to say how your custom theme is made, but i think it should work in search too. Try to recompile files and clear cache. Link to comment Share on other sites More sharing options...
glenskie16 Posted April 2, 2014 Author Share Posted April 2, 2014 still nothing Link to comment Share on other sites More sharing options...
dioniz Posted April 2, 2014 Share Posted April 2, 2014 Is it possible to see your site? Link to comment Share on other sites More sharing options...
glenskie16 Posted April 2, 2014 Author Share Posted April 2, 2014 http://swaimandsons.iescentral.com/ thank you Link to comment Share on other sites More sharing options...
glenskie16 Posted April 2, 2014 Author Share Posted April 2, 2014 can i also ask you a question about something else ? but it has to do with the product images on the product list page ? Link to comment Share on other sites More sharing options...
dioniz Posted April 2, 2014 Share Posted April 2, 2014 This is weird. It looks to me as it didn't recompiled. Have you turned on Force compilation? Link to comment Share on other sites More sharing options...
dioniz Posted April 2, 2014 Share Posted April 2, 2014 Oh you must turn off CCC too and then recompile Link to comment Share on other sites More sharing options...
glenskie16 Posted April 2, 2014 Author Share Posted April 2, 2014 i turned off the ccc now how do i recompile ? Link to comment Share on other sites More sharing options...
glenskie16 Posted April 2, 2014 Author Share Posted April 2, 2014 its saying that its an undefined index description ? Link to comment Share on other sites More sharing options...
dioniz Posted April 2, 2014 Share Posted April 2, 2014 In Advanced parameters > Performance turn on Recompile templates if the files have been updated and clear cache there too Link to comment Share on other sites More sharing options...
glenskie16 Posted April 2, 2014 Author Share Posted April 2, 2014 i appreciate your help but i just ran a query to make the discription the same as the short discription and now it is working i really do appreciate it ! if you want you can help me with another problem ? Link to comment Share on other sites More sharing options...
dioniz Posted April 2, 2014 Share Posted April 2, 2014 I'm glad you solve it. It's a bit late here so i will leave soon but let's see if i can help Link to comment Share on other sites More sharing options...
glenskie16 Posted April 2, 2014 Author Share Posted April 2, 2014 i want to make the product images the same as there category image but i dont know how to go about doing this . I was thinking of makeing a query that just copies the category image and sets the product to that image in the database but i cannot find where the category images are being kept ? Link to comment Share on other sites More sharing options...
dioniz Posted April 2, 2014 Share Posted April 2, 2014 You change image size in BO > Preferences > Images. Make sure to regenerate images when you change sizes. Link to comment Share on other sites More sharing options...
dioniz Posted April 2, 2014 Share Posted April 2, 2014 Oh i think i misunderstood. You want to copy those same images? Link to comment Share on other sites More sharing options...
glenskie16 Posted April 2, 2014 Author Share Posted April 2, 2014 yes i want to copy the category image and make it the product image Link to comment Share on other sites More sharing options...
glenskie16 Posted April 2, 2014 Author Share Posted April 2, 2014 (edited) i also have this but it does not work for the search ... <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"> <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'large_default')}" style="width:140px!important;" alt="{$product.legend|escape:'htmlall':'UTF-8'}" /> this makes all of the products the same as the category image but only works if you are looking in the category at the list of products but it wont work if you search ? Edited April 2, 2014 by glenskie16 (see edit history) Link to comment Share on other sites More sharing options...
dioniz Posted April 2, 2014 Share Posted April 2, 2014 It looks you have them in yourdomain/c folder which seems strange to me because they are usually in yourdomain/img/c folder Link to comment Share on other sites More sharing options...
glenskie16 Posted April 2, 2014 Author Share Posted April 2, 2014 i also have this but it does not work for the search ... <a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}"> <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'large_default')}" style="width:140px!important;" alt="{$product.legend|escape:'htmlall':'UTF-8'}" /> this makes all of the products the same as the category image but only works if you are looking in the category at the list of products but it wont work if you search ? Link to comment Share on other sites More sharing options...
glenskie16 Posted April 3, 2014 Author Share Posted April 3, 2014 ? Link to comment Share on other sites More sharing options...
Recommended Posts