最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - Woocommerce Large Variations Shows Out of Stock Items

programmeradmin1浏览0评论
Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 5 years ago.

Improve this question

I have a problem with WooCommerce showing out of stock items as in stock. This is for a T-Shirt customization site. Some variations have more than 500 variations. Some items when click show as in-stock and it does not display a warning. How can I stop users from selecting out of stock items in large variations.

I changed php.ini max_input_vars to 20000 but that does not fix the issue.

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 5 years ago.

Improve this question

I have a problem with WooCommerce showing out of stock items as in stock. This is for a T-Shirt customization site. Some variations have more than 500 variations. Some items when click show as in-stock and it does not display a warning. How can I stop users from selecting out of stock items in large variations.

I changed php.ini max_input_vars to 20000 but that does not fix the issue.

Share Improve this question edited Oct 21, 2019 at 14:42 Howdy_McGee 20.9k24 gold badges91 silver badges177 bronze badges asked Oct 21, 2019 at 5:54 BIROL KANMAZBIROL KANMAZ 91 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 1

I was able to fix the issue by simply adding the following to functions.php

add_filter( 'woocommerce_ajax_variation_threshold', 'wc_ninja_ajax_threshold' ); 
function wc_ninja_ajax_threshold() {
    return 1000;
}
发布评论

评论列表(0)

  1. 暂无评论