User point error Undefined property: stdClass::$limitegroup

  • Posts: 189
  • Thank you received: 11
  • Hikashop Business
4 years 6 months ago #318224

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.18
-- PHP version -- : 7.4.x

Hi,

I've activated the user point and everything works. The only thing I wanted to add that the maximum user points a customer can earn is 1 point / order. I set the user points plugin option "Points earning on groups" Registered level to 1. But now when I go to the cart as a registered user, I get the error: Notice: Undefined property: stdClass::$limitegroup in /domainname/public_html/plugins/hikashop/userpoints/userpoints.php on line 506

Is setting the "Points earning on groups" to 1 the registered group the correct wat to limit the maximum points that can be earned to 1 per order?

Can you provide a fix for this?

Regards!

p.s.: love the color feature on the order status of the new 4.3.0 version!

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
4 years 6 months ago #318236

Hi,

The "Points earning on groups" setting allows you to give extra points for orders based on the user group of the user.
It's not a limiting setting.
The "limit by group" setting you find there is to limit the number of points earned by the user when he is in several user groups so as to not be able to accumulate points from different user groups.

Regarding the notice message, thanks for reporting it. It's a typo. Change limitegroup to limitgroup on the line pointed at by the notice message and it will fix it.
We'll add the fix on our end too.

PS: Thanks ! I also like it a lot :)

Please Log in or Create an account to join the conversation.

  • Posts: 189
  • Thank you received: 11
  • Hikashop Business
4 years 6 months ago #318242

Hey Nicols,

Do you have a tip on how to limit the user point to a maximum of 1 per order if the order is higher then a certain price?

Regards ;)

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
4 years 6 months ago #318245

I don't understand your problematic.
Points are integers.
If you want a maximum point of 1 per order, then it means you can only have either 0 or 1.
So above a certain amount, you want 1 point attributed to the customer. Is that all the time ?
And below that, should it be 0 points ? For everyone ?

If you want 1 point attributed per order all the time for everyone, then you can just enter 1 in the "registered" user group point and 1 point will be given per order to all the registered users purchasing.
But I suppose it's something else you want but I didn't understand what you want exactly.

Please Log in or Create an account to join the conversation.

  • Posts: 189
  • Thank you received: 11
  • Hikashop Business
4 years 6 months ago #318294

Thanks Nicolas for taking the time to help! Much appreciated!

In the "Points earning on groups" there was een option called "Limit by group" S I figured that this setting could limit the point on a group. But from your answer I noticed that it only to collect more point if a user is in a certain group.

What I need is that a Registered user can earn a maximum of 1 point per order if the if the order amount is more the 50 euro!
I've did set the Rates to "50 euro = 1 point" so a user will start collecting points if the order amount is more then 50 euro.. Buth the problem then is that the user can get more then 1 point if the cart amount is higher.

I hope you have an option to limit the max user point to 1 on every order.

Thanks in advance!

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
4 years 6 months ago #318309

Hi,

I'm afraid there is no such option.
That would require some development to implement such option in the plugin.

The following user(s) said Thank You: Rixters

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum