Hi there,
Thank you for reaching out, and I appreciate your detailed explanation of the issue.
The meta field rcbp_price_in_cart_recalculated is used in the cart to mark that the price for this product has been recalculated specifically for our integrations, such as add-ons and smart coupons, to not . This process is triggered by the hook woocommerce_before_calculate_totals (https://prnt.sc/ke41elagF9u7), and while it’s not absolutely necessary for role-based pricing alone, we use it to ensure compatibility with third-party plugins (to not affect the cost of addons, logic of coupon codes, etc). Therefore, when you comment that part, it won’t affect the price adjustments by plugin alone, but can broke how plugin works with Product Add-ons and Smart Coupons.
Here’s a summary of how the process works:
• When a product is added to the cart, the meta field rcbp_price_in_cart_recalculated is added to mark that the product price has been recalculated for the cart.
• Normally, this meta data is not saved to the database, and it’s only used during the cart session, so we didn’t affect the price once more when some extras are added to product cost, or product cost adjusted by other plugin also. Therefore, it should not affect other users or product prices across the store.
• However, it seems there might be a plugin or custom code in your setup that is causing these meta fields to be saved to the database, which is not intended behavior. This is likely why the price is marked as recalculated and affecting other users.
To resolve this, we recommend investigating how the meta data is being saved to the database. By default, WooCommerce and our plugin do not save this meta field beyond the cart session. It could be that another plugin or custom code is triggering the meta data to be stored.
Feel free to let us know if you need further assistance with identifying the source of this issue. We’re happy to help you troubleshoot further.
Can you also let us know which other threads and bad reviews you are referring to?
Thanks,
Meow Support
