News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Display different images in "productdetails" according to product category

Started by hernan, December 02, 2016, 00:58:37 AM

Previous topic - Next topic

hernan

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


Ghost

Just add another image to your categories and display it on product details page.