Support Forum

Content of the article

WPBE - WordPress Posts Bulk Editor Professional
You need to log-in to create request (topic) to the support

[WOOCS LABS] Plugin Compatibility with Sumo Rewards Points

(new from 01-07-2019)
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 green button on the right side) and press Save button.
If you not got email within 24 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.
12

Hi Pablo,

Currently the reward points  is changing when I switch currency...

Hello

Ok! I will  check  it

Hello

Please  do test

Hi Pablo,

It seems like still the same:

When currency chosen is GBP, I key in 50 but it turns to 41 redeemed....

Hello

Yes!  I see  it.

conversion problem here - https://c2n.me/44pMEGR.png

I will  check  it

Hello

Fixed

 

Hi Pablo,

Thank you so much!

If I update the plugin, will it stay?

Regards
Manhua

Hello Manhua

Unfortunately not

in file - \wp-content\plugins\rewardsystem\includes\class-fp-common-functions.php - add code -https://c2n.me/44o7EJg.png

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

$Value =round($Value/$rate, 2);
}
}
}

$ConvertedValue = ($Type == 'price') ? ((( float ) $Value/ $PointValue) * $RedeemPercent) : ((( float ) $Value * $PointValue) / $RedeemPercent) ; //Ex:10 * 2 = 20

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

AND add code - https://c2n.me/44h0cNX.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'];
$regularprice = $regularprice/ $rate;
}
}
}

In file - \wp-content\plugins\rewardsystem\includes\frontend\tab\modules\class-rs-fpredeeming-frontend.php add code - https://c2n.me/44v2WGO.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'];
$Applied_points =$Applied_points/$rate;
}
}
}

 

Hi Pablo,

Thank you so much!

Regards
Manhua

Hello Manhua

Welcome;)

http://codecanyon.net/downloads - rate please the plugin if you liked it ...

12