jopelws
Forum Replies Created
-
Hello,
The pro version does indeed allow you to implement this scenario, but unfortunately, we cannot provide support for this version on the WordPress forum. We are limited to the free version here. Please feel free to use our contact form or the support platform within the plugin itself.
Sincerely,
Forum: Plugins
In reply to: [MyRewards] Points are rounding up, but I want them to round downHello,
WooRewards/MyRewards doesn’t have an option to round down points. By default, it does
round()in PHP, which means it goes up when you land at .5 or above (and your 9.95 gets lovingly inflated to 10).Luckily, the plugin is filter-happy. You can override how points are calculated using a hook. Instead of letting it round, you can force it to always floor the value:
add_filter( 'wr_points_earned', 'force_round_down_points', 10, 3 );
function force_round_down_points( $points, $event, $data ) {
return floor( $points );
}wr_points_earned: This filter lets you intercept the calculated points before they’re awarded.floor(): PHP’s merciless round-down function. 9.95 becomes 9, 9.01 becomes 9, and so on. No sympathy, no rounding up.Parameters: You still receive the
$eventand$dataif you want to get fancy and only apply this rule to certain events (like purchases but not referrals).What you need to do :
1. Drop the snippet in your child theme’sfunctions.phpor a small custom plugin.
2. Test with a purchase at something like 199 x 5% to confirm you’re now getting 9 points instead of 10.Best regards,
Forum: Plugins
In reply to: [MyRewards] MyRewards and individual use coupons conjunctionHello,
Yes, the premium version is able to manage this use-case.
You can look at our website or contact us directly (we cannot promote paid plugin here)Best regards,
Forum: Plugins
In reply to: [MyRewards] Updates errorHello,
are you using the free version (MyRewards) or WooRewards ?
If you have a customer account on our website, you can download directly the .ZIP and update the plugin manualy.Best regards,
Forum: Plugins
In reply to: [MyRewards] Points per URL visited (QR code scanned) in given time frame??Hello,
for sur ! We have a “Free Gift” type reward you can use for that
Everything is explained in the documentation (you can also look at our tutorials, on our website to learn more)Best regards,
Forum: Plugins
In reply to: [MyRewards] Points per URL visited (QR code scanned) in given time frame??Hello,
WooRewards is indeed able to meet your needs.
Here’s a summary of the loyalty system to create:– Create a loyalty program with a program start date and a program end date.
– Create a leveling system within it
– In the actions, you add the action “Visit a URL”.
– You repeat it for each URL concerned
– The reward (level 1) for visiting the URL is points.
– You create a “level 2” in this leveling system, which requires the number of points you want (and therefore the number of URLs visited).
– If the visitor has enough points, they move up to level 2, which gives them the rewards you want.
Hope it helps !
Best regards,
- This reply was modified 1 year ago by jopelws.
Forum: Plugins
In reply to: [Two Factor Authentication] Deprecated functionsHello,
when we try to login, after typing the 2FA password, the site works 10 sec and shows 2 types of errors, randomly (always mentioning “Fatal error: Allowed memory size of 671088640 bytes exhausted (tried to allocate 32768 bytes)”) :