You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a reward is set on a order, changing the order status applies the reward each time the status is changed. To reproduce:
set up a product that can be purchased with reward points
then add reward points to a customer.
login as the customer with reward points and purchase the item you created using your reward points
login to the admin interface and go to Sales > Orders
find your order and change it's status (either through the View screen or the Edit screen).
go to customer you created and see that the reward points have been added again.
Expected result is that reward points only get added once per order.
Here are some images to show you what is going on:
Order number 15 has had one status applied. So the intial order took off 650 reward points and then adding the 'Shipped' status has taken off another 650 points:
Here is the state of order number 15 before adding the complete status:
Here I am setting the order status to complete:
Now that the order is set to complete you can see that another 650 reward points is being taken off and that the customer now has -950 reward points.
I would expect that the rewards only get subtracted once per order and that a customer can never have negative reward points.
The text was updated successfully, but these errors were encountered:
jamesehly
changed the title
Rewards applied multiple times when adding order history
Rewards applied multiple times when changing order status
Nov 25, 2014
Confirmed, this is fixed in the master branch. It appears that the Processing Order Status setting affects the way rewards are processed. I have mine checked with Pending, Processing, Processed, and Shipped checked, and it now works as I expect it to.
This is on OpenCart 2.0 official release
When a reward is set on a order, changing the order status applies the reward each time the status is changed. To reproduce:
Expected result is that reward points only get added once per order.
Here are some images to show you what is going on:
Order number 15 has had one status applied. So the intial order took off 650 reward points and then adding the 'Shipped' status has taken off another 650 points:
![2014-11-25 17_01_57-customers](https://cloud.githubusercontent.com/assets/4512313/5193343/95d86886-74c5-11e4-92be-e337e4c2be15.png)
Here is the state of order number 15 before adding the complete status:
![2014-11-25 17_02_17-orders](https://cloud.githubusercontent.com/assets/4512313/5193347/9d036dfe-74c5-11e4-908a-61d4e9030821.png)
Here I am setting the order status to complete:
![2014-11-25 17_03_01-orders](https://cloud.githubusercontent.com/assets/4512313/5193351/a0cce1f4-74c5-11e4-93fd-a24b2ccbdeab.png)
Now that the order is set to complete you can see that another 650 reward points is being taken off and that the customer now has -950 reward points.
![2014-11-25 17_03_48-customers](https://cloud.githubusercontent.com/assets/4512313/5193354/a3ee0d5e-74c5-11e4-8150-e03afb51c307.png)
I would expect that the rewards only get subtracted once per order and that a customer can never have negative reward points.
The text was updated successfully, but these errors were encountered: