Jump to content

Edit History

niekoarchimedes

niekoarchimedes

On 2/18/2010 at 5:42 PM, uddhava said:

How do i get a random product image as the subcategory when there was no subcategory image used?

I was looking around in the category.tpl file. It has to do with this code:



{if $subcategory.id_image}
getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" />
                   {else}

                   {/if}
 



How to get a random product pic, md restoration services or even only the first product pic in this category?

I also looked in the product.tpl and found this code:



img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}"
 



How to get the 2 mixed so we see a product image instead of the category image when none is defined?

It would take time for me to come up with a solution. To do that you want, you would have to pass not only the products of the current category, but also the products of the subcategories into product-list.tpl.

niekoarchimedes

niekoarchimedes

On 2/18/2010 at 5:42 PM, uddhava said:

How do i get a random product image as the subcategory when there was no subcategory image used?

I was looking around in the category.tpl file. It has to do with this code:


{if $subcategory.id_image}
getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" />
                   {else}

                   {/if}
 



How to get a random product pic, or even only the first product pic in this category?

I also looked in the product.tpl and found this code:


img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}"
 



How to get the 2 mixed so we see a product image instead of the category image when none is defined?

It would take time for me to come up with a solution. To do that you want, you would have to pass not only the products of the current category, but also the products of the subcategories into product-list.tpl.

×
×
  • Create New...