VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: hernan on December 02, 2016, 00:58:37 AM

Title: Display different images in "productdetails" according to product category
Post by: hernan on December 02, 2016, 00:58:37 AM
Virtuemart version: 3.0.16

I have multiple categories of products in my webshop.
Some categories are shoes, there are women's shoes, and men's shoes.
I want to show sizes of shoes for mens (using a pop-up image), the same for women's shoes. These two images would be different.

Im a newie at this...maybe using an if inside "store/templates/ja_megastore/html/com_virtuemart/productdetails/default.php" ?:

if($this->product->category_name=='Women shoes'){
    SomePopUpFuntion(PathToWomenShoesSizesImage)
}

Will this work? Any popUp function? Or should i just use JQuery?

Thanks

Title: Re: Display different images in "productdetails" according to product category
Post by: Ghost on December 02, 2016, 07:07:24 AM
Just add another image to your categories and display it on product details page.