Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewards applied multiple times when changing order status #2349

Closed
jamesehly opened this issue Nov 25, 2014 · 2 comments
Closed

Rewards applied multiple times when changing order status #2349

jamesehly opened this issue Nov 25, 2014 · 2 comments

Comments

@jamesehly
Copy link

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:

  1. set up a product that can be purchased with reward points
  2. then add reward points to a customer.
  3. login as the customer with reward points and purchase the item you created using your reward points
  4. login to the admin interface and go to Sales > Orders
  5. find your order and change it's status (either through the View screen or the Edit screen).
  6. 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:
2014-11-25 17_01_57-customers

Here is the state of order number 15 before adding the complete status:
2014-11-25 17_02_17-orders

Here I am setting the order status to complete:
2014-11-25 17_03_01-orders

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

I would expect that the rewards only get subtracted once per order and that a customer can never have negative reward points.

@jamesehly jamesehly changed the title Rewards applied multiple times when adding order history Rewards applied multiple times when changing order status Nov 25, 2014
@danielkerr
Copy link
Member

i think this has already been fixed ion the master branch

@jamesehly
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants