• Resolved patliya123

    (@patliya123)


    Sir please help me please ??

    I created
    2 attributes more
    One is for select phone model

    And

    One is for select you brand

    With the help of custom code i increased 50 variation limit to 1000
    Then in
    Selct the brand attribute
    There is samsung and vivo

    With samsung i created
    94 variations

    And with vivo 45

    But the problem is

    When in product i select the Samsung from variation it is showing the variation of Samsung as well as vivo

    And if i select vivo it is showing same variation

    Please help how can i fix it

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    What custom coding did you use? Can you share a copy of the code?

    Thread Starter patliya123

    (@patliya123)

    //Increase in the number of variations to 1000
    define( ‘WC_MAX_LINKED_VARIATIONS’, 1000 );

    Thread Starter patliya123

    (@patliya123)

    `//Increase in the number of variations to 1000
    define( ‘WC_MAX_LINKED_VARIATIONS’, 1000 )

    Thread Starter patliya123

    (@patliya123)

    Please Support me

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi @patliya123!

    There is a cut off at pre-loading 30 variations.

    In the front-end, if a variable product has more than 30 variations, the data will be loaded via AJAX rather than handled inline. It is possible to change this quantity using the woocommerce_ajax_variation_threshold filter.

    The default variation threshold in the following code is 100

    add_filter( 'woocommerce_ajax_variation_threshold', 'wc_ninja_ajax_threshold' );
    function wc_ninja_ajax_threshold() {
        return 100;
    }

    You can increase that value if you’d like.

    The code can be added to your site by following the instructions here:

    https://rynaldo.com/how-to-add-custom-code-to-your-woocommerce-wordpress-site-the-right-way/

    Please let us know if that helps.

    Cheers!

    Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Howdy.

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.

    Cheers!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘I created more than 50+ variations in WooCommerce but the variation are not ..’ is closed to new replies.