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

[WOOCS LABS] Recurrent Discount Price not being converted

This support system is for all types of the plugins as for premium versions, so for free ones! If you have premium version do not forget in the private data of the request (!!not in the text of the support request!!) after its publishing insert purchase code please (see blue-green button on the right side) and press Save button.
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.

I will try to explain this as clear as possible.

I create a Woocommerce coupon for a recurrent product. The coupon should give the user a discount for 3 months and then apply the full price of the subscription.

When the user is in the checkout page and is not using the main currency, the plugin don't make the proper currency conversion for the discount price and, in consequence, the total price is off.

I'm using Woocommerce Subscriptions for the subscriptions. I already implemented the solution yo provide for Woocommerce subscriptions but doesn't seems to be the same problem.

Hello

Do you use standard coupons?

Can  you drop me  wp-admin+FTP access  to your test site - https://share.stackovergo.com/image/i20210618130558.png -> https://share.stackovergo.com/image/i20210618130637.png

We have Woocommerce Smart Coupons implemented but I'm sure this is a standard coupon functionality

Info attached

 

Hello

I'm sure this is a standard coupon functionality  - Very important! Does this error happen with standard coupons? If you disable this third-party(Woocommerce Smart Coupons) plugin, the error persists?

I disabled Woocommerce Smart Coupons and the error persist

Hello

Ok!  Thank you

I added this to the adaptation queue

Hi, any news?

Hello

I will write to you as soon as we get the result

Hello

Please  check  your  access - https://c2n.me/4dwy95A.png

Updated

Hello

Ok! I will  check  it

Hello

I don't see any coupons - https://c2n.me/4dBgNLg.png

Please prepare the site completely. We don't have time to customize your site

And describe in more detail which product and which coupon should I add to the cart to get the error

I also see that you are using one license for several sites. it is unacceptable

and  renew  your  support

It must be expired because of the time

You should add the "Suscripción Regular" Product: https://staging-dondefluirdanzas.kinsta.cloud/finalizar-compra/?add-to-cart=1503 and use the coupon code: testcoupon50

We are using the plugin in the production site and the staging site only

If we have to renew our support why you bring it right now and not before? We need this asap is been almost 4 weeks since my first request.

Hello

We are using the plugin in the production site and the staging site  - We have already made you an adaptation for another site( With this license )

We need this asap is been almost 4 weeks since my first request. - this is not true. I added this to the adaptation queue - https://c2n.me/4dCdek7.png  But you provided incorrect data - https://c2n.me/4dCdpL0.png  then, you have not prepared the site for adaptation - https://share.stackovergo.com/image/i20211011105236.png  The delay is not our fault.  I also ask you to pay attention that the adaptation of third-party plugins is not part of the support

 

The adaptation you made was for the same site (https://dondefluirdanzas.com), you can check it here https://pluginus.net/support/topic/incompatibility-with-yith-gift-cards-premium/ . The info a have send you is the one for the staging site of that domain.

I hope we can achieve a solution, I think this is something that can affect other people since is a core Woocommerce functionality. Is there anything I can do to accelerate this process?

 

 I think this is something that can affect other people since is a core Woocommerce functionality - Coupons work well for standard products. Issue only for subscription products. I'm right

Is there anything I can do to accelerate this process? - Prepare a website and a description of the problem so that the developer can go in and easily reproduce the error

Yes, the problem is only with subscription products.

Website is ready. The problem is the next:

When you are in the checkout page after adding a subscription product and using a coupon, the WOOCS plugin does not make the necessary currency conversion if the currency is different from the main one.

The main currency is USD, US dollars. You have to use a VPN to locate yourself in one of the next countrys to see the error:

  • Argentina
  • Colombia
  • Perú
  • Chile
  • Uruguay

You can add the "Sucripción Regular" product to test. The ID is 1503. You can also use the next direct url: https://staging-dondefluirdanzas.kinsta.cloud/finalizar-compra/?add-to-cart=1503.

The coupon code is: testcoupon50

Hello

In file  - public\wp-content\plugins\woocommerce-subscriptions\includes\class-wc-subscriptions-coupon.php - add  code - https://c2n.me/4dFEwXJ.png

if (class_exists('WOOCS') AND $discount_amount) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$discount_amount = $discount_amount / $rate;
}
}
}

And  do a test please

It doesn't work. What I can see is that the discount is being made over the price in the main currency.

For example: In Argentina, instead of discounting $850 (the equivalent of %50 for the conversion rate), is discounting $10. $10 is 50% for the price in USD.

View post on imgur.com