Problems to complete an order, system changed ?

Posts: 461
Joined: 08/13/2007
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Internationalizationizer

Hi there,

I updated my ubercart installation to the last baazar files and I noticed changes in the order completion system that broke my uc_atos module.

Now, when I successfully complete an order, I'm redirected to the cart, not to cart/checkout/complete...

Ryan speak to me about $_SESSION['do_update'] to have the access to the page, I putted it but no changes.

(you can see my atos module 1.1 to see where I put the session).

Do you have any ideas about this problem ?

Posts: 143
Joined: 10/08/2007
Bug FinderGetting busy with the Ubercode.PayPal Hero

Check the order status right before this unexpected redirect happens. Is it "pending" or "in_checkout"? If it's "in_checkout" you'll be fine. If it's "pending" then you might get redirected back to the cart. What status is your module leaving the order at before the handoff back to ubercart?

If you have the workflow action enabled to change your status to "payment_received" on a zero balance, make sure that the in uc_cart_complete_sale you are getting the true status of the order in the database before the switch to "pending", not the one from the $order object which can be out of date depending on the order you call the payment workflow and complete sale. If the payment workflow is called before complete sale, the status setting can get clobbered. Lastly, look at the order log -- see anything funky related to statuses getting overwritten. I don't know about your module, but these are things I've noticed with another payment module.