Skip to content

Instantly share code, notes, and snippets.

@levent
Last active November 7, 2016 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save levent/a7c5e1e78db0c0e6d5a337459629a848 to your computer and use it in GitHub Desktop.
Save levent/a7c5e1e78db0c0e6d5a337459629a848 to your computer and use it in GitHub Desktop.

Issue #1031

History:

  1. 20121002 Introduced to only merge carts for the same distributor commit/27b7d59
  2. 20121005 Modified to delete the last_incomplete_order if not for the same distributor commit/568d948
  3. 20130814 Modified to delete any last_incomplete_order commit/5fac29d

Bug in last_incomplete_order without account_invoices

Bug Fix fixes sql query when account_invoices are missing.

Reload cart after logging out

Fix by removing overriden set_current_order Carts are automatically merged when you log in, instead of keeping the logged out one and deleting the old one.

Issues

  • There must have been reasons to override this method in the first place?
  • This doesn't take into account switching shops.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment