Does anyone know how to put the additional images on the category page ?
and i want to know :D
i try
<div class="additional-images">
<?php
// List all Images
if (count($this->product->images) > 0) {
foreach ($this->product->images as $image) {
echo '<div class="floatleft">' . $image->displayMediaThumb('class="product-image"', true, 'class="modal"', true, true) . '</div>'; //'class="modal"'
}
}
?>
and other ... but lose
up :)
I am also interested in this. I was able to do it in older versions of VirtueMart but it no longer seems to work. Anyone?
The following doesn`t work either
foreach ($product->images as $image1) {
echo '<div class="slide">' . $image1->displayMediaThumb('class="productimage"', true,'class="jqzoom modal"', true, true) . '</div>'; //'class="modal"'
}
Hi everyone.
In order to show the additional images on category page, you just need to modify the "view.html.php" file which is located inside "components/com_virtuemart/views/category" folder by the following code:
$productModel->addImages($products,1);
replace it by:
$productModel->addImages($products);
From now, you can get all the additional images by foreach loop in the "components/com_virtuemart/views/category/tmpl/default.php" as the following example:
foreach($product->images as $imgProduct)
Hope it can help. :)
@gpweb
http://forum.virtuemart.net/index.php?topic=100696.msg358378#msg358378 (http://forum.virtuemart.net/index.php?topic=100696.msg358378#msg358378)
I answered this last week.
Quote from: mdkstn on September 09, 2012, 13:49:08 PM
Hi everyone.
In order to show the additional images on category page, you just need to modify the "view.html.php" file which is located inside "components/com_virtuemart/views/category" folder by the following code:
$productModel->addImages($products,1);
replace it by:
$productModel->addImages($products);
From now, you can get all the additional images by foreach loop in the "components/com_virtuemart/views/category/tmpl/default.php" as the following example:
foreach($product->images as $imgProduct)
Hope it can help. :)
:-* :-* :-* :-* :-* :-*
thank you soooooooooooooo much. .i was too much sick and tired in fining solution for this issue.. i wish i could pay you.. but.. I would only say. thank you from really the depth of my heart ..
:)
This variant already not working properly in version 3.0.6.
Images are displayed, but when clicked they do not open in a popup window.
Has anyone found a solution already? Have any thoughts on this?