PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

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 please
If 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.

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.

Hello

please read this -  https://currency-switcher.com/woocs-labs

What plugin version number are you using?

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

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

 

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

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.

 


# 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 Subscriptions
Coupon --> 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>
```

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