Home Forums WoodMart support forum Use images from product variations

Use images from product variations

Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #43822

    Changyun Son
    Participant

    Hi,there

    I’ve just make a product using import tool.
    But I want our swatch image want to same with uploaded image like Amazon.com
    But our listing option has only color name.
    How can I resolve this situation?

    Attached file is our listing on woodmart theme, and Amazon listing (we want to change)

    Thanks!

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

    Artem Temos
    Keymaster

    Hello,

    You need to enable the option ‘Use images from product variations’ in Theme Settings -> Shop -> Attributes swatches. Then, you need to add images for each variation while editing your product in Dashboard -> Products -> edit product.

    Regards

    #43967

    Changyun Son
    Participant

    Hi,

    I’ve just enable ‘Use images from product variation’. But anything changed.

    Could I select in product attribute ‘Grid swatch attribute to display’?

    And I made the product variation using color attribute and check the visible on the product page, used for variation.

    Please let me know how to change the swatch image from product variation step by step.

    Thanks again.

    #43973

    Artem Temos
    Keymaster

    Yes, you need to select an attribute for Grid swatch attribute to display as well.
    And you just need to upload an image for each variation. Could you please send us a screenshot of your variation list to see if you upload images to them or not?

    #44082

    Changyun Son
    Participant

    Grid swatch attribute to display – pa_color
    Attached file is attribute and variation. and product page.

    Thanks!

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

    Artem Temos
    Keymaster

    Please, provide us your admin access so we can login and check this on your side.

    Thank you in advance.

    #44137

    Changyun Son
    Participant

    Hi,there
    I write below private content

    #44153

    Artem Temos
    Keymaster

    WooCommerce system doesn’t provide frontend with all variations if their number is bigger than 40. And because of that images for some variations are not available in the template file. You can fix it by adding the following line to the file woodmart/woocommerce/single-products/add-to-cart/variable.php between lines #41 and #42

    $available_variations = $product->get_available_variations();

    Regards

    #44233

    Changyun Son
    Participant

    Hi,there

    I changed the variable.php but nothing is changed.
    Is there anything to do?

    Thanks!

    #44252

    Artem Temos
    Keymaster

    Please, provide us your FTP access so we can check it.

    #44271

    Changyun Son
    Participant

    our FTP server and pass

    #44276

    Artem Temos
    Keymaster

    You didn’t select the attribute here https://gyazo.com/f8ca38ea358faa6889b1c933b9b286e0
    And you need to set colors for each attribute term in Products -> Attributes.

    #44304

    Changyun Son
    Participant

    Grid swatch attribute to display?
    It was pa_color and I changed the variable.php file but anything changed.
    So I delete the selection pa_color.

    Now I select the pa_color. But there is no change.

    What’s the problem?

    #44330

    Artem Temos
    Keymaster

    It works well for those colors where you specified swatches values as per our instruction https://gyazo.com/c604d9e1bfa73a223abb4650608228fb

    #44383

    Changyun Son
    Participant

    Thank you for your message. It works.

    But I have last question.
    To applied product swatch image, I manually select the color in color attribute?
    Our product have too many color attribute actually over 100.

    If you have a solution, please let me know

    Thanks!

    #44401

    Artem Temos
    Keymaster

    Yes, you just need to set color for each attribute’s term once to be able to use images from variations.

    #44707

    Changyun Son
    Participant

    hi again.
    One more question.

    I want see the swatch image only in product page, do not want to see the swatch image in product grid page. Is this possible?

    If you hard to understand, please see below picture.

    Thanks!

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

    Artem Temos
    Keymaster

    Hi,

    Try to edit the file woocommerce\content-product-quick.php and remove this code

    <?php 
        echo woodmart_swatches_list();
    ?>
    #44782

    Changyun Son
    Participant

    Thank you very much

    #44816

    Artem Temos
    Keymaster

    You are welcome!

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

The topic ‘Use images from product variations’ is closed to new replies.