Site Sections: Satchmo Main | Wiki | Demo Store |

Ticket #484 (closed defect: fixed)

Opened 1 year ago

Last modified 11 months ago

Improve product stacking in cart and return an added item

Reported by: emes Assigned to: chris
Priority: major Milestone: 0.8
Component: Application Version:
Keywords: Cc:

Description

The attached patch makes two changes:

  1. Compares an item about to be added to cart with all similar ones which are already present there. The comparison runs over CartItemDetails? objects and if any difference is found, new item is added as a separate instance.
  2. Cart.add_item returns the item which has been added to cart. This is useful in applicatins which extend Satchmo and perform operations on CartItems?.

First change should not break anything.

Second one also shouldn't cause incompatibilities in external applications, as bool() evaluation of returned result stays the same.

Attachments

satchmo-cart_items_stacking_fix.patch (2.6 kB) - added by emes on 08/06/2008 11:20:55 AM.
satchmo-cart_items_stacking_fix.2.patch (2.8 kB) - added by emes on 08/11/2008 01:29:47 PM.
A patch against multi-shop branch

Change History

08/06/2008 11:20:55 AM changed by emes

  • attachment satchmo-cart_items_stacking_fix.patch added.

08/08/2008 02:20:20 AM changed by chris

  • milestone set to 0.8.

08/11/2008 01:29:47 PM changed by emes

  • attachment satchmo-cart_items_stacking_fix.2.patch added.

A patch against multi-shop branch

08/22/2008 04:40:39 PM changed by emes

  • status changed from new to closed.
  • resolution set to fixed.

Commited in [1433].