Index: openacs-4/packages/ecommerce/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/index.tcl,v diff -u -r1.11 -r1.12 --- openacs-4/packages/ecommerce/www/index.tcl 11 Aug 2008 10:35:07 -0000 1.11 +++ openacs-4/packages/ecommerce/www/index.tcl 11 Aug 2008 10:47:40 -0000 1.12 @@ -16,6 +16,9 @@ usca_p:optional {how_many:naturalnum {[parameter::get -parameter ProductsToDisplayPerPage -default 10]}} {start_row "0"} + {category_id:optional} + {subcategory_id:optional} + {subsubcategory_id:optional} } # see if they're logged in @@ -38,6 +41,7 @@ # user session tracking set user_session_id [ec_get_user_session_id] +ec_create_new_session_if_necessary "" cookies_are_not_required # if for some reason the user id on the session is incorrect, make a new session # perhaps the old update was an attempt to fix the lose cart on register? anyway @@ -50,7 +54,7 @@ } } -ec_create_new_session_if_necessary "" cookies_are_not_required +#ec_create_new_session_if_necessary "" cookies_are_not_required set ec_user_string "" set register_url "/register?return_url=[ns_urlencode [ec_url]]" @@ -114,7 +118,7 @@ append products " [expr $count + 1] - $product_name + $product_name @@ -142,19 +146,19 @@ ns_log Notice $start_row $how_many if { $start_row_current >= $how_many } { set start_row [expr { $start_row_current - $how_many } ] - set prev_link "Previous $how_many" + set prev_link "Previous $how_many" } else { set prev_link "" } if { $have_how_many_more_p eq "t" } { set start_row [expr { $start_row_current + $how_many } ] - set next_link "Next $how_many" + set next_link "Next $how_many" } else { set number_of_remaining_products [expr { $product_count - $start_row_current - $how_many } ] if { $number_of_remaining_products > 0 } { set start_row [expr { $start_row_current + $how_many } ] - set next_link "Next $number_of_remaining_products" + set next_link "Next $number_of_remaining_products" } else { set next_link "" }