Chr*_*ris 1 wordpress wordpress-plugin woocommerce
最近,我们建造的网站运行得很好,其中一个产品存在问题.查看产品会给出消息Sorry, no products matched your selection. Please choose a different combination.虽然也无法选择新选项.
到目前为止,我做了以下事情:
我原以为这是因为最近对wordpress进行了更新,但在报告前几天回到备份,文件之间没有差异.
经过广泛的谷歌搜索后,我可以看到的唯一问题是选择了错误的选项,或者产品没有显示在类别中的类似错误,但产品正在运行,似乎没有对产品或文件进行任何更改.
这是用WordPress 4.3.1和WooCommerce 2.4.7发生的
小智 6
如果您有超过30种变体,则需要增加function.php中允许的变体数量:
/**
* Ensure variation combinations are working properly - standard limit is 30
*
*/
function woo_custom_ajax_variation_threshold( $qty, $product ) {
return 50;
}
add_filter( 'woocommerce_ajax_variation_threshold', 'woo_custom_ajax_variation_threshold', 10, 2 );
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3232 次 |
| 最近记录: |