• Resolved greencode

    (@greencode)


    Hi. When you go to the product page, everything looks great but when you then select the “Amount”, the thumbnail for that variation is incorrect. It seems to using the WordPress thumbnail (which is 300×300 and has crop enabled) and not the WooCommerce thumbnail which doesn’t have crop enabled and so instead of appearing at the correct size of 240×300, it appears as 300×300 and looks odd once selected.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author NikHiL Gadhiya

    (@nikhilgadhiya)

    Hello @greencode,
    We will check it out and let you know.

    Thread Starter greencode

    (@greencode)

    Thanks for the quick response @nikhilgadhiya. Looking forward to your reply.

    Plugin Author NikHiL Gadhiya

    (@nikhilgadhiya)

    Hello,
    Please add the following code in functions.php file of your active theme.

    add_filter( 'woocommerce_gallery_thumbnail_size', function( $size ) {
    	return array(240,300);
    } );
    Thread Starter greencode

    (@greencode)

    @nikhilgadhiya I’m sorry I didn’t respond earlier. I didn’t receive any notifications that you had replied. I’ve added your code and that appears to be working perfectly. Thanks once again for swift help and producing a fantastic plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Variation Thumbnail Incorrect version’ is closed to new replies.