Home Forums WoodMart support forum Problem with variation swatches display on the single product page in my website

Problem with variation swatches display on the single product page in my website

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #665423

    k.wasacz
    Participant

    Hello,
    I’ve encountered an problem while creating my website related to how variation swatches are displayed in theme.

    On the product archive page, everything works correctly — the swatches appear as images assigned to specific product variations in the product settings.

    However, on the single product page, the swatches don’t behave the same way. Instead of showing the images assigned to the individual product variations, the global images assigned to the attribute variations are being displayed.

    I’m using the same set of variations for each product, but I assign different images to those variations in the product settings. I don’t have separate variation terms created for each product.

    Is there a way to make the single product page display the images assigned to specific product variations, just like it works on the archive page?

    Thank you in advance for your help.
    Best regards,
    Jakub

    Attachments:
    You must be logged in to view attached files.
    #665496

    Hello,

    Enable the “Use images from product variations” in Theme Settings > Shop > Variable products: https://prnt.sc/SLKIoDeCW_F-

    2. Define the image for the variation in the settings of the product – https://prnt.sc/nmOUHmnlVId0

    3. Enable the “Text swatch” for the attributes – https://prnt.sc/-J5sJSTq4C3V

    4. Navigate to Theme Settings > Shop > Variable products > set the as “Grid swatch attribute to display”: https://prnt.sc/YqWQY2EvNQ2j

    When this option is enabled, the swatches will automatically use the images assigned to product variations.

    If the issue remains, share the wp login details so I can further check on your site and give you a possible solution.

    Best Regards,

    #665665

    k.wasacz
    Participant

    It works !

    This point was missing:

    3. Enable the “Text swatch” for the attributes

    But why do I need to enable text swatch if I want image swatch? I have no idea — anyway, thank you very much for your help.

    #665789

    Hello,

    Text swatch” is required to activate swatches for the attribute—after that, the theme will show the image swatches if variation images are set. This is the way it works.

    Best Regards,

Viewing 4 posts - 1 through 4 (of 4 total)