Repeatable: Always

Steps to repeat:
1.Enable userpoints product and userpoints payment modules.
2.Set the value of the product in points in the "Number of points" field in the userpoints product feature menu.
3. Set the price of the product in real money.
3. Buy the product with real money.

Desired outcome: After the purchase of product (with userpoints feature enabled) is made userpoints should add up according to the number of userpoints set in the "Number of points" field in the userpoints product feature menu.

Actual outcome: After the purchase (with userpoints feature enabled) is made userpoints add up in doubled amount of the number of userpoints set in the "Number of points" field in the userpoints product feature menu. Setting different number of points in the field has no effect. Exactly the same doubled amount of the number of points that was set for the first time adds up to the user account with every purchase.

Comments

emforum1’s picture

Desired outcome: After the purchase of product (with userpoints feature enabled) is made userpoints should add up according to the number of userpoints set in the "Number of points" field in the userpoints product feature menu. Set 500, added up 500

Actual outcome: If I remove the userpoints feature from the product and add it again to the product, set the new value for the product in points in the "Number of points" field, purchase this product with real money I get the doubled amount of the sum of the value (300) I entered before I removed the product feature and the value (500 points) I entered after I added the product feature again. I get 800 and 800 (1600).

betz’s picture

Are you sure you have the latest dev running? Sound like old version.
Be sure to uninstall and install again, not just disabling it.
There where changes in the db.

emforum1’s picture

Yes, I am running the latest dev. I did the full uninstall. The value of the "Number of points" field doesn't get updated when I just set the new value and press the button "save feature". I have to remove the userpoints product feature and add it again for the value to get updated. Still when I buy userpoints product with real money the values are summed up and doubled.

If you might need it - Userpoints payment module works correctly. Userpoints are deducted correctly when I buy other products (userpoints product feature disabled) with userpoints.

emforum1’s picture

Points were doubled due to incorrect conditional actions settings in Ubercart. But the values of the "Number of points" field don't work correctly.

betz’s picture

i really cant reproduce this problem.
Even did a clean install, when changing the amount of userpoints and reordering the item, i get the exact amount.
No problem. Think it's a local problem.

If you have a site running online, i always want to check once if you don't bother.
Anyway, setting the status of this issue to closed, you can reopen any time.

betz’s picture

Status: Active » Closed (fixed)
adam_c’s picture

I am having the same problem with adding double points, what conditional action was causing your error?

I dont have any conditional actions other than the ubercart defaults.

A little extra information is that after a full un-install the first product bought assigns the correct number of userpoints however every purchase after that assigns double points. This is repeatable everytime.

I have even attempted a full uninstall of ubercart but to no avail.