Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Plugin Conflict with “WPC Composite Products for WooCommerce (Premium)”
- This topic has 6 replies, 2 voices, and was last updated 2 years ago by Soft79.
April 23, 2021 at 9:48 pm #17541
Hi soft79 -team,
my customer is using “WooCommerce Extended Coupon Features PRO” and “WPC Composite Products for WooCommerce (Premium)”.
It seems that there is a plugin conflict that results in two errors:
1. After adding composite products to the cart, the product price inside the products table is wrong. (see screenshots)
2. If you delete the composite product, one component of the product suddenly appears as single product. (see screenshots)
Both errors are solved, if:
a) “WooCommerce Extended Coupon Features PRO” is disabled
b) the option “pro-free-products – Allow free products to be added to the cart” is disabled
(“Settings” > “WooCommerce Extended Coupon Features” > “Debug mode”)
I created a Testpage, where you can check it out:
This bug does not always appear.
One combination that causes the bugs can be seen on the screenshots.
Also sometimes it is needed to clear the browser cache.
I created a full copy of the Testpage with the plugin “Duplicator – WordPress Migration Plugin”.
Where can I send you the download link?
Do you have an idea what causes the errors?
And can you do something about it?
JanApril 24, 2021 at 12:38 pm #17542
If you enable the ‘Free products’ module, but disable the ‘Auto coupon’ module, do you still have the issue?April 25, 2021 at 9:31 am #17544
thanks for your fast reply!
Yes, this also solves the problems.
But there are no coupons.
Its a fresh install only with the following plugins installed:
- UpdraftPlus – Backup/Restore
- WooCommerce Extended Coupon Features PRO
- WPC Composite Products for WooCommerce (Premium)
I could send you a full copy of the testpage.April 26, 2021 at 12:57 pm #17548
If you can give me access to a dev environment that would be great. I need ftp and wp-admin access. You can send the details to admin at soft79.nl .
I’m not going to create a local instance of the testpage.May 1, 2021 at 1:34 pm #17571
It seems to be caused because the WPC plugin performs multiple ‘add to cart’ operations in a single request, and at every ‘add to cart’ operation the cart is recalculated. Our plugin hooks into ‘after_calculate_totals’ and has a security feature to prevent hooking into ‘after_calculate_totals’ more than 5 times in case of a infinite recursion. In your test environment I increased the threshold of 5 to 20 which fixes the issue for now.
I need to find a cleaner solution for this, but for now you can use the patched version of our plugin.
Please test and let me know.May 4, 2021 at 9:53 am #17578
I can confirm that your change fixed both errors.
Thanks for your time and the fast support!
I appreciate it.
Will the next updates include your change?
Or in other words: is it save for my customer to update when the next update is available?
Have a great day.May 5, 2021 at 3:34 pm #17588
I still have to come up with a permanent solution. I hope to include this in the next release, I will keep you informed.
- You must be logged in to reply to this topic.