Index: openacs-4/packages/dotlrn-ecommerce/www/ecommerce/shopping-cart-delete-from.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/www/ecommerce/shopping-cart-delete-from.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/dotlrn-ecommerce/www/ecommerce/shopping-cart-delete-from.xql 23 Jun 2005 12:28:21 -0000 1.1 +++ openacs-4/packages/dotlrn-ecommerce/www/ecommerce/shopping-cart-delete-from.xql 7 Aug 2005 13:34:45 -0000 1.2 @@ -34,4 +34,15 @@ and participant_id = :participant_id) + + + + and item_id = (select max(item_id) + from dotlrn_ecommerce_orders + where order_id = :order_id + and product_id = :product_id + and patron_id = :patron_id + and participant_id = :participant_id) + +