Please see the attached image.
Every time a customer makes and completes a purchase my client goes to the order page and sees that the stock has been decreased 2x instead of just once. In the attached image the customer made a purchase of 1 QTY item and you can see in the admin comments that THe stock level for 9999-1001 has been decreased .... occurs twice.
Checking the items stock level does indeed show the the stock level went from 25 to 23.
Where exactly does the stock decrement occur in ubercart of completed checkout? I've checked the uc_checkout_complete hook and the uc_cart_complete_sale functions but I haven't been able to see it. I'd like to investigate further if nobody knows immediately what the issue could be?
Using all the latest DEV release of Ubercart, Rules, Entity as of Nov. 26, 2011 and using the ePay Payment Gateway module v1.7 built by http://www.epay.dk
| Comment | File | Size | Author |
|---|---|---|---|
| stock-decrease-x2.jpg | 41.48 KB | Woggers |
Comments
Comment #1
longwaveStock decrement occurs as a Rules action. This is probably a bug in the ePay module as there are specific tests in Ubercart core to ensure that checkout completion only occurs once. You could test with one of the supplied payment methods such as the payment method pack to see if this happens for other payment methods.
Comment #2
longwavePlease reopen with more info if #1 is not enough to solve this.
Comment #2.0
longwaveAdded Epay Gateway Information