Closed (fixed)
Project:
SOFORT Banking for Ubercart
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Sep 2010 at 13:22 UTC
Updated:
30 Jan 2011 at 09:14 UTC
After success you redirect with drupal_goto('cart/checkout/complete') that calls uc_cart_checkout_complete(). This function calls uc_cart_complete_sale().
If you have http notify enabled the function uc_pnag_payment_notify() is called. This function calls uc_cart_complete_sale() again.
Because of this the trigger "Customer completes checkout" fires two times (= 2 Mails, 2 = stock decrement, etc.). Is there a reason why you are using uc_cart_checkout_complete() at the last point? I deleted it and I see no differences except fixing described problem.
I'm using current dev of ubercart.
Comments
Comment #1
checker commentedComment #2
jurgenhaasThanks for reporting this, I've just fixed this and submitted a revised dev release.
Comment #5
pieterdc@checker Thanks for the report.
@jurgenhaas Thanks for the commit.