Conversation
supportHi team. I am the author of Name Your Price for WooCommerce . A mututal user of ours has come to me reporting a conflict between our plugins. NYP allows customers to enter their own amount and add the product to the cart at that price. When your plugin is active, this price is not the price in the cart. Specifically the problem is in your woocommerce_before_calculate_totals callback. where you re-instantiate the product object from the database (where Name your price prices do not yet exist) instead of using the product object that WooCommerce core already stores on $cart_value['data'] . While I would not expect full-compatibility, I am able to confirm that changing $product = wc_get_product( $cart_value['data']->get_id() ); to $product = $cart_value['data']; Resolves the incompatibility and should not have any regressions. Let me know if you have any additional questions.
Hi @helgatheviking , We can continue working on compatibility collaboration via the tech support channel you are currently in contact with us. Please focus on that channel, so we can close this public thread. Regards. Bruce
Sounds good. I posted here before seeing the contact form.
Hi @helgatheviking , We can continue working on compatibility collaboration via the tech support channel you are currently in contact with us. Please focus on that channel, so we can close this public thread. Regards. Bruce
Sounds good. I posted here before seeing the contact form.