1. Chris Moffitt
  2. satchmo

Pull requests

#59 Merged
Repository
Deleted repository
Branch
default (4798a6e70632)
Repository
satchmo
Branch
default

Fixed issue of losing all cart items when the existing cart in the request and the contact's last saved cart are the same instance

Author
  1. Yehonatan Daniv
Reviewers
Description

It appears that satchmo merges the 2 carts, the existing one - taken from the current session store - and the last saved one:

contact.cart_set.latest('date_time_created')

In a case where these are the same instance, when the source cart is emptied it eventually empties "both" carts.

Added a dumb check of pk to see if it's the same instance and not merge.

  • Learn about pull requests

Comments (0)