Double Conversion with WooCommerce Subscriptions by WooCommerce
-
Hello,
The plugin normally gives the correct price on the checkout page.
However, I believe I found a specific scenario that leads to double conversion.
On my staging site, if I have the renewals set to manual, it shows the correct converted amount in the customer “Orders” page:
However, when I click to pay it, the price is converted a 2nd time:
If I disable the Subscriptions plugin, and then repeat these steps, the price stays the same (as it should) when loading the checkout page.
I’ve copied the lines of code from:
https://currency-switcher.com/woocommerce-subscriptions-by-woocommerce/
But that gives these PHP notices and warnings when debugging is on:
Notice: Undefined variable: order_id in /public_html/dev/wp-content/plugins/woocommerce-subscriptions/includes/wcs-order-functions.php on line 907 Warning: Cannot modify header information - headers already sent by (output started at /public_html/dev/wp-content/plugins/woocommerce-subscriptions/includes/wcs-order-functions.php:907) in /public_html/dev/wp-includes/pluggable.php on line 1251 Warning: Cannot modify header information - headers already sent by (output started at /public_html/dev/wp-content/plugins/woocommerce-subscriptions/includes/wcs-order-functions.php:907) in /public_html/dev/wp-includes/pluggable.php on line 1254
I don’t know if these problems are related, but please send me your suggestions regarding these issues.
Thanks!
- The topic ‘Double Conversion with WooCommerce Subscriptions by WooCommerce’ is closed to new replies.