Coupon for subscription product incorrect amount
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from t3rra on October 13, 2023, 03:29Hi,
We are using FOX currency converter with woocommerce subscriptions and have found that the coupons are being calculated incorrectly.
The coupon in question is a 25% discount, and so for these two products the total amount should be the same (note the starting price is the same in USD as AUD)
What seems to be happening is that the 25% is incorrectly getting converted from the base currency.
Here is the product in AUD (the base currency)
and here in USD (the converted currency)
I only have Woocommerce, FOX, and Woo Subscriptions activated for these screenshots.
Hi,
We are using FOX currency converter with woocommerce subscriptions and have found that the coupons are being calculated incorrectly.
The coupon in question is a 25% discount, and so for these two products the total amount should be the same (note the starting price is the same in USD as AUD)
What seems to be happening is that the 25% is incorrectly getting converted from the base currency.
Here is the product in AUD (the base currency)

and here in USD (the converted currency)

I only have Woocommerce, FOX, and Woo Subscriptions activated for these screenshots.
Quote from Pablo Borysenco on October 13, 2023, 10:39Hello
please read this - https://currency-switcher.com/woocs-labs
What plugin version number are you using?
Hello
please read this - https://currency-switcher.com/woocs-labs
What plugin version number are you using?
Quote from t3rra on October 17, 2023, 02:40Hi,
I applied the changes recommended by https://currency-switcher.com/woocs-labs
Here is a screenshot of the loaded plugins
All the latest version
Hi,
I applied the changes recommended by https://currency-switcher.com/woocs-labs
Here is a screenshot of the loaded plugins

All the latest version
Quote from t3rra on October 17, 2023, 05:13Some further detail - it is only incorrect on this cart page. Once you go to checkout it's correct.
Naturally this isn't ideal as the customers are contacting us saying the pricing is incorrect
Some further detail - it is only incorrect on this cart page. Once you go to checkout it's correct.
Naturally this isn't ideal as the customers are contacting us saying the pricing is incorrect
Quote from Pablo Borysenco on October 17, 2023, 10:43Hello
You can make a new adaptation request.
Please drop me wp-admin+FTP access to your test site - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134615.png
Describe in more detail what should I do to get this error (product, coupon code, ect)
And I will add it to the adaptation queue
Hello
You can make a new adaptation request.
Please drop me wp-admin+FTP access to your test site - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134615.png
Describe in more detail what should I do to get this error (product, coupon code, ect)
And I will add it to the adaptation queue
Quote from t3rra on May 6, 2024, 02:05Hi,
This issue presents itself when a coupon's "Discount type" is set to "Recurring Product % Discount". The product has a fixed price in USD. The cart and the checkout are calculating the discount as a percentage. But, the result is being converted from USD to AUD so the final value ends up wrong. In the "woocs.php" the $convert is being set to true since there is no test for the "recurring_percent". In green is our workaround currently in place.
# FOX - Currency Switcher Professional for WooCommerce\www\wp-content\plugins\woocommerce-currency-switcher\classes\woocs.php``` php// (...)function woocommerce_coupon_loaded($coupon) {// (...)if (!$coupon->is_type('percent_product') AND !$coupon->is_type('percent') AND !$coupon->is_type('recurring_percent')) {$convert = true;}// (...)```# Woo SubscriptionsCoupon --> General --> Discount Type``` html<select style="" id="discount_type" name="discount_type" class="select short"><option value="percent">Percentage discount</option><option value="fixed_cart">Fixed cart discount</option><option value="fixed_product">Fixed product discount</option><option value="acfw_bogo">Buy X Get X Deal (BOGO)</option><option value="sign_up_fee">Sign Up Fee Discount</option><option value="sign_up_fee_percent">Sign Up Fee % Discount</option><option value="recurring_fee">Recurring Product Discount</option><option value="recurring_percent" selected="selected">Recurring Product % Discount</option></select>```
Hi,
This issue presents itself when a coupon's"Discount type" is set to"Recurring Product % Discount". The product has a fixed price in USD. The cart and the checkout are calculating the discount as a percentage. But, the result is being converted from USD to AUD so the final value ends up wrong. In the"woocs.php" the $convert is being set to true since there is no test for the"recurring_percent". In green is our workaround currently in place.
Quote from Pablo Borysenco on May 6, 2024, 09:33Hello
Please drop me wp-admin+FTP access to your test site - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134615.png
Hello
Please drop me wp-admin+FTP access to your test site - https://share.pluginus.net/image/i20230222134241.png -> https://share.pluginus.net/image/i20230222134615.png