Ubercart not displaying correct page after payment

Posts: 17
Joined: 04/09/2008

After a customer pays for their product using paypal website payments standard, they are auto returned to a page saying the order is complete and it also displays the checkout message for 'logged in users' even when 'Login users when new customer accounts are created at checkout' checkbox is not checked. This is a problem because new customers won't know they have an account on the website. I have tried turning auto return off in PP but i still get returned to the same page.

Does anyone know what might be the problem here.

Another weird bug is that the quantity in the stock module is being decreased twice.

Posts: 17
Joined: 04/09/2008

Would PHP Register Globals being enabled cause any troubles? Also the web host only has PHP 4.4.8. I am using workflow-ng 2.0 rather then 1.6 and i noticed that the path to access the workflow-ng settings is different from the path in 1.6 so that might suggest why i'm having some troubles (flat rate not showing up, etc). I'll try changing it and see what happens.

Posts: 2102
Joined: 08/07/2007
AdministratoreLiTe!

Register Globals should never, ever, ever be used. I don't know of any specific problems it causes with Drupal or Ubercart, but that doesn't matter. It's such a terrible idea to have it on that I'd blame all your problems on it until proven otherwise.

As for Workflow-ng 2.0, I haven't had any problems with it so far. The changed path structure still throws me off, but that's just a retraining issue.

Posts: 17
Joined: 04/09/2008

Does anyone have any ideas why Ubercart would NOT be detecting if the customer has an account/is logged in/is not logged in after they are finished paying with paypal website standard? Regardless of the changes i make in UC settings, the customer is returned to a page with an order complete message and the default message for logged in users (even though the setting are set to not log the user in after payment)?

Posts: 2102
Joined: 08/07/2007
AdministratoreLiTe!

Both the PayPal IPN and the customer returning to Ubercart cause uc_cart_complete_sale() to be called. The second time it's called, the order has a user id, which causes the logged in message to be displayed, despite the fact that the customer hasn't been logged in when returning from PayPal. I've added a check to this function to display the "existing user" message when the current user and the order's user aren't the same.