Compatible Price Based on Country
-
Hi there ??
I’m trying to solve an issue related to this plugin and “Price Based on Country” reported by a customer:
When you add a product to the cart via the “bump order” feature, the price of the product does not change when the user changes the “currency” (pricing zone in “Price Based on Country” terms).After reviewing the plugin code, I check that the problem is in line 274 of the includes/Features/OrderBumps.php file:
https://snipboard.io/meSysu.jpg
Since you use ‘cart’ as a parameter, the Price Based on Country “filters” that modify the product’s price do not run for the bump products in the cart.
Replacing
$bump_price = $bump->get_price( 'cart' );
with$bump_price = $bump->get_price();
will solve the issue.Please let me know if you need more info.
Thanks
- The topic ‘Compatible Price Based on Country’ is closed to new replies.