Home Forums WoodMart – Premium Template variant color images of products swatches (not color names or color swatches)

This topic contains 18 replies, has 3 voices, and was last updated by Artem Temos Artem Temos 2 months ago.

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #106984

    stuart.invest
    Customer

    I’m looking to just use the product variation images as the swatches on the my site? How can I achieve this?

    #106987

    stuart.invest
    Customer

    Please see private content

    Private Content Hidden
    Attachments:
    You must be logged in to view attached files.
    #107003

    Hello,

    Please navigate to Dashboard -> Products -> Attributes -> Color -> Configure iterms, enable swatch as shown http://prntscr.com/jskm29 for all the items

    Navigate to Theme Settings > Shop > Attribute swatches > choose pa_color (your color attribute) and enable “Use images from product variations” if you want variation images to be applied instead of colors

    Make sure each variation in a variable product has an image: http://prntscr.com/kk870w

    Best Regards

    #107530

    stuart.invest
    Customer

    Please see additional private content

    Private Content Hidden
    Attachments:
    You must be logged in to view attached files.
    #107557

    Hello,

    Have a look at the screen Edit-Color-‹-MVP-APPAREL-LEGACY-EMBROIDERY-SCREEN-PRINT-—-WordPress.png
    You need to set the color even though you are going to show the featured images on swatches.

    Best Regards

    #107598

    stuart.invest
    Customer

    Setting the color made no difference. They are still showing the attribute words and not the images swatches.Is there something that I’m missing?

    #107620

    Hello,

    Please deactivate all the plugins not related to the theme and provide your site admin access to the private area.

    Best Regards

    #107687

    stuart.invest
    Customer

    I believe I’ve deactivated all the plugin unrelated to the theme. Login information is below

    Private Content Hidden
    #107707

    Hello,

    Enter each item and set the color https://gyazo.com/43d690ea938d9a3d536fd8a6b913d7e9

    Products > Attribtes > Color > Configure Items > enter each item.

    Best Regards

    #108044

    stuart.invest
    Customer

    Added color swatch to all 450 color attributes. Still having issues with image swatches coming up on some products and color swatches on others. Examples attached. Am I missing a setting somewhere else? All products have attribute color images as well.

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

    Hello,

    Please provide me URL of these two products

    Best Regards

    #108187

    stuart.invest
    Customer

    https://mvplegacy.com/product/augusta-youth-zest-hoodie/ – loading correctly link

    https://mvplegacy.com/product/cycle-dri-gear-2-button-faux-jersey/ – loading incorrectly link

    Can I also turn off the grid on the shop pages? There are items with too many options that overtake the image and it is taking forever to load as well because of that too.
    https://mvplegacy.com/product-category/apparel/t-shirts/mens-t-shirts/ (Screen share of the issue below)

    #108240

    Hello,

    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 before #28

    $available_variations = $product->get_available_variations();

    Best Regards

    #108272

    stuart.invest
    Customer

    Getting an error when using this code.

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

    Seems that you paste a wrong code. Please, send us a screenshot from the file.

    #108379

    stuart.invest
    Customer

    Here is screen shot with line 28 highlighted. Does your code go like:

    $attribute_keys = array_keys( $attributes );

    $available_variations = $product->get_available_variations();

    do_action( ‘woocommerce_before_add_to_cart_form’ ); ?>

    or

    $attribute_keys = array_keys( $attributes );

    $available_variations = $product->get_available_variations();do_action( ‘woocommerce_before_add_to_cart_form’ ); ?>

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

    Try to put the line between these two https://gyazo.com/136fa6b4756f2e841e2e53bb22bf120c

    #108408

    stuart.invest
    Customer

    That’s where it was before and I got the same error message. Please see link below for error message.

    https://mvplegacy.com/product/gildan-softstyle-junior-fit-tank-top/

    Parse error: syntax error, unexpected ‘&’ in /home1/stuartin/public_html/mvplegacy/wp-content/themes/woodmart/woocommerce/single-product/add-to-cart/variable.php on line 28

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

    Your screenshot clearly shows that you didn’t paste the code we gave. You paste some wrong code with the error.

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

You must be logged in to reply to this topic.