After the recent update of the B2BKing plugin, I’ve encountered a critical issue when editing products in WooCommerce.
Specifically:
The Regular Price field of a product appears empty or gets reset to zero every time I open the product edit page in the admin panel.
However, the product price still shows correctly in the product list view (admin table), which means the value exists in the database (as _price), but the _regular_price meta key is missing or being removed.
This behavior started immediately after the latest B2BKing update. I suspect the plugin may be affecting or overriding the default WooCommerce pricing fields.
In order for us to skip the issue we managed to override it by adding the snippet below
add_action('load-post.php', 'ensure_regular_price_on_product_edit');
function ensure_regular_price_on_product_edit() { if (!isset($_GET['post'])) return;
$post_id = intval($_GET['post']);
if (get_post_type($post_id) !== 'product') return;
$regular_price = get_post_meta($post_id, '_regular_price', true); $price = get_post_meta($post_id, '_price', true);
if ($regular_price === '' && $price !== '') { update_post_meta($post_id, '_regular_price', $price); } }
Please investigate this as it creates a serious risk of losing product prices during simple edits.
Let me know if you need admin access or more technical details.
Hello,
After the recent update of the B2BKing plugin, I’ve encountered a critical issue when editing products in WooCommerce.
Specifically:
This behavior started immediately after the latest B2BKing update. I suspect the plugin may be affecting or overriding the default WooCommerce pricing fields.
In order for us to skip the issue we managed to override it by adding the snippet below
Please investigate this as it creates a serious risk of losing product prices during simple edits.
Let me know if you need admin access or more technical details.
Best regards,
Dionicandles