Magento - configurable product option images

前端 未结 2 891
迷失自我
迷失自我 2021-02-10 14:14

I\'m currently working on getting images for product options showing up on my first magento build. I have THIS figured out for bundled product, like so:

2条回答
  •  一整个雨季
    2021-02-10 14:52

    I think the ultimate issue you are going to run into here is that Options in an Attribute do not have images associated with them. You may need to install something like GoMage's Advanced Navigation which will add that functionality for you. In base Magento, images are only associated with products which is why you can extract them for Bundled products.

    Once you have options with images you should be able to extract the option images from the added table in Magento on a per-product basis, display the base image for each option on load, then put in a JS swap for the other images on select. My recommendation would be to download the free "images with options" module below and install it. That will add a new helper class to display the images and will probably give you the code you need for the swapping as well.

    The GoMage Module: http://www.gomage.com/extensions/searching-optimization/gomage-advanced-navigation.html/

    Free version of a similar function: http://www.johannreinke.com/en/2012/02/05/magento-add-images-to-product-attribute-options/

提交回复
热议问题