VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Peka on November 13, 2013, 11:24:33 AM

Title: Display a reflection effect and custom background to products
Post by: Peka on November 13, 2013, 11:24:33 AM
Hi everyone,

I want to display a reflection effect and a background image to a custom transparant png in my product and category detail page.  I am using  the reflection.js script but I can't find where to put the class="reflect" command.

Thx
Title: Re: Display a reflection effect and custom background to products
Post by: Maxim Pishnyak on November 14, 2013, 16:58:43 PM
Did you look into instructions for mentioned js?
Title: Re: Display a reflection effect and custom background to products
Post by: Peka on November 15, 2013, 10:30:11 AM
Yes I did and it works on every image except the ones which are dynamically created in the VM product and category pages.
Title: Re: Display a reflection effect and custom background to products
Post by: jenkinhill on November 15, 2013, 10:51:23 AM
The default VM template view files containing image display are components/com_virtuemart/views/category/tmpl/default.php and components/com_virtuemart/views/productdetails/tmpl/default_images.php so you can experiment adding your class in those. Use the edited files as overrides.

If you already use template overrides then you will have to edit those files.

You will need to test for JavaScript conflict with VM's fancybox script.