News:

Support the VirtueMart project and become a member

Main Menu

Remove Images from categories, subcatogeries and products

Started by davdbert, November 25, 2012, 22:09:38 PM

Previous topic - Next topic

davdbert

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  ::)


bytelord

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
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

davdbert

A list of products without images is exactly what I need! Ill give it a try, thanks for the info.

faldera

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.

bytelord

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Gerry22

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).



jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum