VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: pritmadlani on August 02, 2018, 19:38:47 PM

Title: Change product image according to custom fields
Post by: pritmadlani on August 02, 2018, 19:38:47 PM
Hello,

Quick question - not sure if it is possible or not.

I have one product available in two options (so I use custom fields).
The basic cost is 50
The second option is the basic plus 25 (75 total).

If someone is on my website and through the custom fields created, they select the second option, is it possible for the displayed image to be changed accordingly i.e. customer goes to the product and sees the basic image.  Using the drop down (created by custom fields), they select the second option, is it possible for the second image to show as the primary?

Thank you,

Prit

Title: Re: Change product image according to custom fields
Post by: GJC Web Design on August 02, 2018, 22:01:41 PM
if it is only a basic custom field u would need to do it in the template by javascript

if u make it a product child then the product actually changes on selection and u can have a different image show for this child
Title: Re: Change product image according to custom fields
Post by: balai on August 07, 2018, 11:13:41 AM
Check here:
https://breakdesigns.net/extensions/joomla/stockable-custom-fields