PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Stock amount changed to 1 when set to 0

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

When i set the stock amount in BEAR to 0 with backorders enabled, woocomerce default editor changes it to amount 1. In front-end, it correctly shows it's on backorder. Why is this happening? Also, even if i change it to 0 and out of stock, it still shows as it's on back-order with stock amount 1.

Hello John

Could you give me the plugin version number you are using?

This may be a conflict with a third-party plugin. Perhaps a synchronization plugin or a unit change functionality

Plugin version was 2.1.4.1

Updated to 2.1.4.4, issue still persists

I have tried testing with every plugin except woocomerce disabled, still same issue. 

Please paste your license key here - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134511.png and  ftp+wp-admin access - https://share.pluginus.net/image/i20230222134615.png

 

Updated the access info

Hello

Ok!  I  got  it!

I have passed this on to the developers, we will get back to you with a solution to this problem as soon as possible.

Hello

Unfortunately we can't connect via your FTP access.

Hot fix:

in file - \wp-content\plugins\woo-bulk-editor\classes\models\products.php -  change this code - https://share.pluginus.net/image/i20240822131009.png to  https://share.pluginus.net/image/i20240822131100.png

if ($field_key == 'stock_quantity') {
$value = $value?$value:0;
//to future php
//$value = $value ?? 0;
if (apply_filters('woobe_stock_quantity_dependency', true) && 0 > $value) {
$product->set_props(array(
'manage_stock' => 1
));
}
}

and do a test

Perfect. Now it's working. Will that fix be included in a future update so I can safely update, or was it more of a personalised fix and if I update it's possible it will happen again?

Hello

Yes it will be included in the next version of the plugin