Home Forums WoodMart support forum Product swatch – catalog and product page

Product swatch – catalog and product page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #629229

    edgarskairans
    Participant

    Hello.

    Please help me solve the problem:

    1) If a variation of a product has a designated image, it displays correctly in the catalog. However, on the product page, the color set in the attribute settings is displayed instead. I would like the image to take precedence if it exists, and only if there is no image, should the color (or the image from the attribute settings) be used.

    2) Another problem is that if no color or image is assigned in the attribute settings, a text swatch is used instead.

    If this issue cannot be resolved, could you please tell me where the code responsible for “image swatch” and “color swatch” is located?

    I want to write functionality so that when an attribute is created, a default image or color is automatically set.

    Thanks
    Best Regards

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

    Luke Nielsen
    Keymaster

    Hello,

    1. Edit that color and set the “Text swatch” option, clear the cache and check how it works on the product page. https://prnt.sc/vLePJh5ChPvu

    2. The code is situated here – woocommerce/single-product/add-to-cart/variable.php

    Kind Regards

    #629667

    edgarskairans
    Participant

    Hello,

    1) Nothing has changed; everything remains the same.

    2) Thanks

    Best Regards

    #629725

    Luke Nielsen
    Keymaster

    1. Send me the URL link to that product and send access to the admin panel so I can check the settings.

    Kind Regards

    #629737

    edgarskairans
    Participant

    + info

    Best Regards

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