VARIATION SWATCHES PRIMARY ATTRIBUTTE NOT WORKING WITH MORE THAT 27 VARIATIONS

This topic has 6 replies, 2 voices, and was last updated 1 years, 10 months ago ago by Olga Barlow

  • Avatar: gabo1187
    gabo1187
    Participant
    May 25, 2022 at 08:02

    I had a problem with variations swatches , I put the settings on the theme panel to the attribute “COLOR” be the primary attribute for the image to change when selected, works fine, until I have more than 27 variations, then the product only change images if the “SIZE” is also selected.

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 26, 2022 at 12:16

    Hello,

    Yes, unfortunately, it’s not possible to apply the primary attribute for the significant number of variation because of the system that the WooCommerce plugin use. And we can do nothing with this.

    Regards

    Regards

    Avatar: gabo1187
    gabo1187
    Participant
    May 26, 2022 at 15:13

    Hi, I found the solutions in an other forum, If anyone have this problem, please reply to post it.

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 26, 2022 at 16:54

    Hello,

    We would be very grateful if you could share your solution here with other users who will find this topic looking for the answer.

    Regards

    Avatar: gabo1187
    gabo1187
    Participant
    May 26, 2022 at 19:55

    I put these codes in my child theme in function.php

    function custom_wc_ajax_variation_threshold( $qty, $product ) {
    	return 100;
    }
    add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 27, 2022 at 10:07

    Hello,

    Thank you for your answer.

    Regards

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.