Limited WooCommerce Variations. - by Peter_rambeck

This topic has 4 replies, 2 voices, and was last updated 8 years, 3 months ago ago by Jack Richardson

  • Avatar: Peter_rambeck
    Peter_rambeck
    Participant
    January 11, 2016 at 04:38

    Dear Eva,

    Trust all is well with you,
    I am experiencing that WooCommerce Variations ‘once again’ has returned to the limitations of 40 or so,

    Long time ago I have adjusted the PHP.ini to 5000 and I have been able to have 200 + variations,
    Though since last update Variations are back to about 40.

    I have looked everywhere but can’t find the solution,
    Can you kindly assist?

    Thanks Peter

    3 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 11, 2016 at 16:09

    Hello,

    Please show a direct page where you have issue with variations and specify how we can replicate the problem.

    Thank you.

    Best regards,
    Jack Richardson.

    Avatar: Peter_rambeck
    Peter_rambeck
    Participant
    January 12, 2016 at 05:00

    Dear Jack,

    The page is:
    http://www.indochinaexplorers.com/project/siam-kempinski-bangkok

    The variations under “Validity Period” 01.Jan.16.-31.Mar.16 are all good, more or less, then for 2nd period: 01.Apr.16.-31.Oct.16. – exceeds the limit of variations and comes out with:
    “Sorry, this product is unavailable. Please choose a different combination.”

    There are in total about 62 variations computed here,

    Replicate: Sorry, I have no idea how replicate.

    Do you know where to set ‘Number of variations’?
    Besides, PHP.ini.

    Thanks Peter

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    January 12, 2016 at 09:13

    Hello,

    I’ve added this code in functions.php file in Legenda theme:

    function custom_wc_ajax_variation_threshold( $qty, $product ) {
    	return 1000;
    }
    
    add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 1000, 2 );

    Please clear browser cache and check variations now.

    Best regards,
    Jack Richardson.

  • Viewing 4 results - 1 through 4 (of 4 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.