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

WooCommerce Smart Coupons problems

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.

Hello there,

Can I ask if your plugin is compatible with the:
WooCommerce Smart Coupons problems
https://woocommerce.com/products/smart-coupons/
Or have some adaptation to make this works?

I record a video, https://www.dropbox.com/s/ofbxaq2i11xn5u3/woocs.mov?dl=0
Basically, everything it's wrong if I use a coupon with a different currency.
Also, if I enable the"Individual fixed amount for coupon" the balance it's wrong.

I have a very clean environment and I share the access with my pro version key.
Can be great if you can makes this works, we can't use your plugin since we buy for this problems.
Thank you in advance.-

Hello

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

Hello and thank you for your update.
Please, can I request a"adaptation script" for your plugin and WooCommerce Smart Coupons problems - https://woocommerce.com/products/smart-coupons/
The"WooCommerce Smart Coupons" it's the most popular plugin for coupons, can be great for everyone.
Thank you in advance.-

Hello

OK! I added this plugin to the adaptation queue

Hello Pablo, I hope you are doing well.
Just checking if you have some update about this adaptation.
Thank you again!

Hello

In  file  - \wp-content\plugins\woocommerce-smart-coupons\includes\class-wc-sc-coupon-process.php - add code - https://c2n.me/4eitVDB.png

if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$currrent = $WOOCS->current_currency;
if ($currrent != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
$rate = $currencies[$currrent]['rate'];
$credit_remaining = $WOOCS->back_convert($credit_remaining, $rate, $currencies[$WOOCS->default_currency]['decimals']);
}
}
}

And  do a test

Hello and thank you for your code.
Your adaptation works when the coupon should be use.
But, looks like we need something else to credit the amount again after the order is cancelled.
Here is a video where I share 2 orders, in EUR the store base currency and a different one.
The store credit should be 10 after cancel the second order but the amount is not converted to the store base currency.
https://www.dropbox.com/s/3ud7ikp755q8i2s/woocs2.mov?dl=0
My private information still working, my WordPress credentials, etc.
Please, can you help me?
Thank you in advance.-

Hello

Ok!  I will  check it on Friday

Thank you a lot and thank you again!

Hello

Please  do  a test

Hello Pablo and thank you again for your help.
I do need to add some custom code or do something else before to test?
I just test with an order in PLN and looks like still not working.
I have €10 in credit.
One order for 23.36 zł which is €5.
Then I cancel the order and instead of have €10 again, I can see 46.72 as a coupon amount, which looks the amount on zł.
I keep the orders on the WordPress to check.
Please, some idea about how to fix it.
Thank you again.-

Hello

Ok! I  got  it!  Very strange!

Previously, this all worked correctly. I will continue to research

Thank you again!
I will wait for your update!
Thank you again!

Hello

My  test  - https://c2n.me/4erLBol

in  file  - \wp-content\plugins\woocommerce-smart-coupons\includes\class-wc-sc-coupon-process.php - add code - https://c2n.me/4erLNKf.png

if (class_exists('WOOCS')) {
global $WOOCS;
if ($WOOCS->is_multiple_allowed) {
$order_currency = get_post_meta($order_id, '_order_currency', true);
$rate = get_post_meta($order_id, '_woocs_order_rate', true);
//$currrent = $WOOCS->current_currency;
if ($order_currency != $WOOCS->default_currency) {
$currencies = $WOOCS->get_currencies();
if (!$rate) {
$rate = $currencies[$order_currency]['rate'];
}

$coupon_amount = $WOOCS->back_convert( $coupon_amount, $rate, $currencies[$WOOCS->default_currency]['decimals']);
}
}
}