Index: openacs-4/packages/ecommerce/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/index.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/ecommerce/www/index.tcl 8 Mar 2004 19:46:11 -0000 1.6 +++ openacs-4/packages/ecommerce/www/index.tcl 13 Jan 2005 13:57:59 -0000 1.7 @@ -48,12 +48,9 @@ set ec_user_string "" set register_url "/register?return_url=[ns_urlencode [ec_url]]" -# we'll show a search widget at the top if there are categories to search in -if { ![empty_string_p [db_string get_check_of_categories "select 1 from dual where exists (select 1 from ec_categories)" -default ""]] } { - set search_widget [ec_search_widget] -} else { - set search_widget "" -} +# the base url allows us to switch connections to http from https if currently an https connection +# for saving computing SSL resources only when necessary +set base_url "[ec_insecurelink [ad_conn url]]" set recommendations_if_there_are_any "" @@ -80,7 +77,7 @@
- @@ -111,7 +108,7 @@ append products " - + @@ -135,17 +132,17 @@ } if { $start >= $how_many } { - set prev_link "Previous $how_many" + set prev_link "Previous $how_many" } else { set prev_link "" } if { $have_how_many_more_p == "t" } { - set next_link "Next $how_many" + set next_link "Next $how_many" } else { set number_of_remaining_products [expr $count - $start - $how_many] if { $number_of_remaining_products > 0 } { - set next_link "Next $number_of_remaining_products" + set next_link "Next $number_of_remaining_products" } else { set next_link "" } @@ -156,7 +153,7 @@ } else { set separator "|" } - +set package_instance_name [apm_instance_name_from_id [apm_package_id_from_key ecommerce]] set context_bar [template::adp_parse [acs_root_dir]/packages/[ad_conn package_key]/www/contextbar ""] db_release_unused_handles ad_return_template
[ec_linked_thumbnail_if_it_exists $dirname "f" "t"]$product_name +$product_name

$recommendation_text

[ec_price_line $product_id $user_id $offer_code]
[expr $count + 1]$product_name$product_name