Jump to content

Recommended Posts

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 by dioniz (see edit history)
Link to comment
Share on other sites

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

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

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 by glenskie16 (see edit history)
Link to comment
Share on other sites

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

×
×
  • Create New...