VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: davdbert on November 25, 2012, 22:09:38 PM

Title: Remove Images from categories, subcatogeries and products
Post by: davdbert on November 25, 2012, 22:09:38 PM
Good evening Ladies and Gents, I just started developing a website using joomla 2.5. and the virtuemart extension 2.0.14. My problem: I don´t want to use images in most of my products (overview and detail view)  but couldnt find a way to remove them. I was hoping to find an option like "show image" or similar so I just need to disable it. But obviously I need to modify some of the php files. Now can someone explain to me what I need to do or give me a link where I can find a tutorial? Thanks!

If this question was already asked and solved and I just overlooked the topic, please don´t hate me but direct me to the right topic  ::)

Title: Re: Remove Images from categories, subcatogeries and products
Post by: bytelord on November 25, 2012, 23:39:40 PM
Hello,

You have to create some template overrides for that. You could find some information regarding a similar posts here (how to create override and some links): http://forum.virtuemart.net/index.php?topic=110322.msg369890#msg369890
and here (how to view products as lists without images): http://forum.virtuemart.net/index.php?topic=110364.msg369871#msg369871
If you try searching on the forum you will tons of information regarding template editing.

Also under Templates & Layouts section you will find a lot of information regarding templates. Keep in mind that vm2 uses the same template system as joomla, so if you are familiar building site and template for joomla you will not have any issues adjust vm2 templates at your needs.

Regards
Title: Re: Remove Images from categories, subcatogeries and products
Post by: davdbert on November 26, 2012, 10:26:57 AM
A list of products without images is exactly what I need! Ill give it a try, thanks for the info.
Title: Re: Remove Images from categories, subcatogeries and products
Post by: faldera on November 27, 2012, 11:11:06 AM
Is t possible to put the complete modified file here? I've pasted te code into the default.php categorie view, but it does not work.
Title: Re: Remove Images from categories, subcatogeries and products
Post by: bytelord on November 27, 2012, 11:17:31 AM
Hello,

There is an example also here: http://forum.virtuemart.net/index.php?topic=104825.0

Regards
Title: Re: Remove Images from categories, subcatogeries and products
Post by: Gerry22 on January 10, 2013, 06:49:16 AM
Okay, I removed it from the product info page, but how can you remove it from the product listing page? Turning off the images, turns of all of the product images which is not what I want.

It's the category image at the top of the page I would like hidden. (However I still want the image on the front page).


Title: Re: Remove Images from categories, subcatogeries and products
Post by: jenkinhill on January 10, 2013, 10:01:39 AM
http://forum.virtuemart.net/index.php?topic=79799.0