Quote from Showroom on April 13, 2021, 16:35
Hi, I have exactly the same issue as another person who recently posted here.
I used to have this snippet in my child functions.php file:
add_filter('woof_get_request_data', 'my_woof_get_request_data');
function my_woof_get_request_data($data){
$data['stock']='instock';
return $data;
}
and I finally found out it is this snippet that has been causing me endless errors of payments via Stripe. I now removed it and the filter again shows out of stock products, even if "in stock only" is ticked in settings.
I now have enabled the "in stock" box for now, but it is bad user experience and I want to get rid of it. It is also the 2nd time your snippet to functions file is causing problems, the last time I suddenly couldn't edit my woocommerce products anymore, it creates a conflict.
Please help me solve this for once.
thanks
Hi, I have exactly the same issue as another person who recently posted here.
I used to have this snippet in my child functions.php file:
add_filter('woof_get_request_data', 'my_woof_get_request_data');
function my_woof_get_request_data($data){
$data['stock']='instock';
return $data;
}
and I finally found out it is this snippet that has been causing me endless errors of payments via Stripe. I now removed it and the filter again shows out of stock products, even if"in stock only" is ticked in settings.
I now have enabled the"in stock" box for now, but it is bad user experience and I want to get rid of it. It is also the 2nd time your snippet to functions file is causing problems, the last time I suddenly couldn't edit my woocommerce products anymore, it creates a conflict.
Please help me solve this for once.
thanks