VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: theodore88 on January 11, 2012, 20:25:03 PM

Title: Plugin to wrap products' images and products' containers
Post by: theodore88 on January 11, 2012, 20:25:03 PM
Hello there, I have installed Virtuemart  2.0 and Joomla 1.5 on a website locally
I want to add some features to my theme through a plugin.
That's because I really don't want to this website work dynamically
My goal is to wrap  each product with a div on the category pages and also each products images with a div
Is it possible to configure that with a plugin using functions or I have to "hack" core files?
Any source code or example in an existing plugin will be great :)
Title: Re: Plugin to wrap products' images and products' containers
Post by: PRO on January 11, 2012, 21:31:24 PM
theodore88, a plugin is way too much work for small thing like that.

http://forum.virtuemart.net/index.php?topic=90935.0

You just need a small template override
Title: Re: Plugin to wrap products' images and products' containers
Post by: theodore88 on January 12, 2012, 03:21:20 AM
Hm, not bad at all. This is a great way to handle my problem
I thought that i could use the VM classes as a common Joomla! plugin Is it possible?
I am trying to accomplish a plugin with ajax in order to put it in the JED so I can't assume that it will be a good approach to override the template.