News:

Support the VirtueMart project and become a member

Main Menu

Multiple images per product in category view

Started by dzséti, November 03, 2012, 23:54:52 PM

Previous topic - Next topic

dzséti

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?

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

dzséti

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 ...