1

I am using Woocommerce for my online store. I Have added a product with around 300 variations but its very slow when I am trying to switch attributes. But when I am trying to add only around 10 variations its good. how I can solve this please help. My Site link https://www.coversfeed.com/product/cute-bear-blue-phone-case/

1 Answer 1

2

There is no need to install plugins for bit of code. You can also resolved your issues by adding filter hook woocommerce_ajax_variation_threshold.

Please add the below code in your current active theme in functions.php file.

/**
 * Fix for issue where too many variations causes the front end to not pre-load
 * all variations and rely on AJAX.
 */
function custom_wc_ajax_variation_threshold_resolved( $qty, $product )
{
    return 100;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold_resolved', 10, 2 );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.