Home Forums WoodMart support forum variant color images of products swatches (not color names or color swatches)

variant color images of products swatches (not color names or color swatches)

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

    stuart.invest
    Participant

    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
    Participant

    Please see private content

    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
    Participant

    Please see additional private content

    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
    Participant

    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
    Participant

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

    #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
    Participant

    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
    Participant

    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
    Participant

    Getting an error when using this code.

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

    Artem Temos
    Keymaster

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

    #108379

    stuart.invest
    Participant

    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

    Artem Temos
    Keymaster

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

    #108408

    stuart.invest
    Participant

    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

    Artem Temos
    Keymaster

    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)