Author Topic: Change product image according to custom fields  (Read 716 times)

pritmadlani

  • Beginner
  • *
  • Posts: 8
  • A beginner
Change product image according to custom fields
« 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


GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9490
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Change product image according to custom fields
« Reply #1 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1398