login after cart creation not adding to customer object

Create issue
Issue #727 resolved
Former user created an issue

In the PayPal module if you add items to a cart, then login during the checkout process the cart object is never updated with the customer object. The same thing happens if an unregistered user creates a cart. This causes problems with emptying a cart after the transaction is complete.

This is the code that is looking for a cart belonging to a user: (payment/modules/paypal/views.py) {{{ for cart in Cart.objects.filter(customer=order.contact): log.debug('Removing cart: %s' % cart) cart.empty() }}}

I attached a patch that seems to fix the PayPal module but I have not looked any further to see if this affects other modules as well. Maybe there is a better place for this fix?

Reported by jhill10110

Comments (1)

  1. Log in to comment