Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author vark

    (@vark)

    Hi,
    I’m looking at this issue right now.

    In the meantime, I have an idea… If you could, please try the following:

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

    Please try changing the return number to the maximum number of variations in your system, and post back here on the result.

    Best,
    Vark

    Plugin Author vark

    (@vark)

    Hi,
    Working on a plugin fix for this issue.

    In the meantime, the following does repair the issue:

    function custom_wc_ajax_variation_threshold( $qty, $product ) {
    	return XX;  //replace 'XX' with the maximum number of variations on *any* product in your system...  The XX may also be greater than the largest variation count...
    }
    
    add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );

    Please place this code at the bottom of your theme’s functions.php file, and be sure to follow the directions on changing the ‘return XX’ to the appropriate number before updating your theme file.

    Let me know…

    Best,
    Vark

    Plugin Author vark

    (@vark)

    Hi,
    If you’d like to contact me via my support channel, I can send you an advance copy of the plugin fix.
    Best,
    Vark

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Showing non-discounted price on item with many variations’ is closed to new replies.