Index: openacs-4/packages/ecommerce/www/shopping-cart.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/shopping-cart.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/ecommerce/www/shopping-cart.adp 5 Aug 2002 12:41:25 -0000 1.2 +++ openacs-4/packages/ecommerce/www/shopping-cart.adp 5 Aug 2002 15:13:00 -0000 1.3 @@ -2,7 +2,11 @@ Your Shopping Cart Your Shopping Cart -

Your Shopping Cart

+

Shopping Cart

+ + for @first_names@ @last_name@ (if you're not @first_names@ @last_name@, + click here). +
Index: openacs-4/packages/ecommerce/www/shopping-cart.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/shopping-cart.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/ecommerce/www/shopping-cart.tcl 5 Aug 2002 12:41:25 -0000 1.4 +++ openacs-4/packages/ecommerce/www/shopping-cart.tcl 5 Aug 2002 15:13:00 -0000 1.5 @@ -29,8 +29,14 @@ # We don't need them to be logged in, but if they are they might get a # lower price +set first_names "" +set last_name "" +set email "" set user_id [ad_verify_and_get_user_id] +if { $user_id != 0 } { + ad_get_user_info +} # user sessions: # 1. get user_session_id from cookie @@ -41,12 +47,14 @@ set user_session_id [ec_get_user_session_id] ec_create_new_session_if_necessary -set n_items_in_cart [db_string get_n_items " - select count(*) - from ec_orders o, ec_items i - where o.order_id=i.order_id - and o.user_session_id=:user_session_id and o.order_state='in_basket'"] +# This is not being used anywhere +#set n_items_in_cart [db_string get_n_items " +# select count(*) +# from ec_orders o, ec_items i +# where o.order_id=i.order_id +# and o.user_session_id=:user_session_id and o.order_state='in_basket'"] + set product_counter 0 set total_price 0