Okay
  Public Ticket #1794256
Image variations
Closed

Comments

  •  2
    Nicolas2735 started the conversation

    Hello,

    I have a small configuration problem with the images of product variations.

    Indeed when I choose an option in the varations available, this automatically adds a new image in the gallery of the product.
    How can I not see this complementary picture? because my photos are identical for variations, so I do not want this option.
    How to disable it?

    Thanks for your help !

  • [deleted] replied

    Hi Nicolas,

    Can you please add the following code in functions.php (end of file):

    function remove_variation_image_for_aurum( $variation_arr ) {
    $variation_arr['aurum_image'] = array();
    return $variation_arr;
    }

    add_filter( 'woocommerce_available_variation', 'remove_variation_image_for_aurum', 100 );

    This will remove image from variation. Please let me know if this worked for you.

  •  2
    Nicolas2735 replied

    Thanks !!

    Works perfetcly ; )

  • [deleted] replied

    Hi Nicolas,

    I'm glad to hear that

    Have a great week!

    P.S: If you like the theme, it would help us a lot if you could give us a five-star rating on Themeforest from your Downloads tab. A huge thank you from Laborator in advance.