VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: dzséti on November 03, 2012, 23:54:52 PM

Title: Multiple images per product in category view
Post by: dzséti on November 03, 2012, 23:54:52 PM
I am using VM2.0.10 and have successfully modified the front page to show two images for each product (by changing the default_products.php file). I am now trying to do the same for the category view, but only one image is displayed - even though I know that there are two images for the product.

In debugging I have checked the foreach loops in both templates (default_products.php for front page and default.php for category view) to see what $product->images contains: in the front page an array with two images is returned while for the category view only one image shows up in the array - but can't work out why this is.

Can anyone help please?
Title: Re: Multiple images per product in category view
Post by: bytelord on November 04, 2012, 01:38:07 AM
Hello,

Please take a look here: http://forum.virtuemart.net/index.php?topic=99699.0
and here: http://forum.virtuemart.net/index.php?topic=100696.msg358378#msg358378
Title: Re: Multiple images per product in category view
Post by: dzséti on November 04, 2012, 02:43:14 AM
Many thanks - that solved it!!!

I should have known anyway, because I had already made a similar change for the front page, but forgot completely what I had done ... too much screen gazing ...