Conflict with plugin “Woocommerce Role Pricing”
-
When the plugin “Woocommerce Role Pricing” is enabled, BOGO products that should be discounted are not. Discount amount is shown, but neither the subtotal or total reflects the discount.
I was able to add code to the file advanced-coupons-for-woocommerce-free/Models/BOGO/Frontend.php so that the method _set_matching_cart_item_deals_prices() checks if role pricing exists, and if so, does not apply any discounts.
I also had to modify the file woocommerce-role-pricing/core/class-woorolepricinglight.php so that it’s method woocommerce_get_price() returns early if the discount is 0%. I’ve opened up a separate support ticket with that author.
You can see the appropriate edits here: https://codeshare.io/2jpB03
Best,
-M
- The topic ‘Conflict with plugin “Woocommerce Role Pricing”’ is closed to new replies.