Index: openacs-4/packages/ecommerce/www/shopping-cart-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/shopping-cart-postgresql.xql,v diff -u -r1.3.8.3 -r1.3.8.4 --- openacs-4/packages/ecommerce/www/shopping-cart-postgresql.xql 8 Mar 2005 06:40:20 -0000 1.3.8.3 +++ openacs-4/packages/ecommerce/www/shopping-cart-postgresql.xql 9 Mar 2005 06:02:26 -0000 1.3.8.4 @@ -33,4 +33,16 @@ + + + select i.product_id, i.color_choice, i.size_choice, i.style_choice, count(*) as item_count, u.offer_code + from ec_products p, ec_items i + left join ec_user_session_offer_codes u on (u.product_id = i.product_id and u.user_session_id = :user_session_id) + where i.product_id = p.product_id + and p.no_shipping_avail_p = 'f' + and i.order_id = :order_id + group by i.product_id, i.color_choice, i.size_choice, i.style_choice, u.offer_code + + +