VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: gpweb on March 16, 2012, 16:37:46 PM

Title: additional images on the category page
Post by: gpweb on March 16, 2012, 16:37:46 PM
Does anyone know how to put the additional images on the category page ?
Title: Re: additional images on the category page
Post by: polosat on March 28, 2012, 19:45:28 PM
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"'truetrue) . '</div>'//'class="modal"'
    }
}
?>


and other ... but lose
Title: Re: additional images on the category page
Post by: polosat on May 17, 2012, 13:55:24 PM
up  :)
Title: Re: additional images on the category page
Post by: ceeinbkk on August 06, 2012, 19:29:59 PM
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?
Title: Re: additional images on the category page
Post by: santehn1k on August 30, 2012, 11:02:03 AM
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"'
    }
Title: Re: additional images on the category page
Post by: 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. :)
Title: Re: additional images on the category page
Post by: ivus on September 09, 2012, 15:46:19 PM
@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.
Title: Re: additional images on the category page
Post by: mfarooqi on February 11, 2014, 15:21:23 PM
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 ..
:)
Title: Re: additional images on the category page
Post by: AnSit on February 26, 2015, 12:59:17 PM
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?