Index: openacs-4/packages/ecommerce/tcl/ecommerce-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/tcl/ecommerce-procs.tcl,v diff -u -r1.11 -r1.12 --- openacs-4/packages/ecommerce/tcl/ecommerce-procs.tcl 21 Feb 2002 21:07:15 -0000 1.11 +++ openacs-4/packages/ecommerce/tcl/ecommerce-procs.tcl 26 May 2002 04:36:49 -0000 1.12 @@ -1,4 +1,3 @@ -# /tcl/ecommerce-defs.tcl ad_library { Definitions for the ecommerce module Note: Other ecommerce procedures can be found in ecommerce-*.tcl @@ -112,20 +111,22 @@ ### the url to get to ec -ad_proc -public ec_url {} { +ad_proc -public ec_url { +} { @return The url (without protocol or port) of the ecommerce mountpoint if it exists, 0 otherwise. } { return [util_memoize {ec_url_mem} [ec_cache_refresh]] } -ad_proc -private ec_url_mem {} {} { +ad_proc -private ec_url_mem { +} { +} { if {[db_table_exists apm_packages]} { - return [db_string ec_mountpoint { - select site_node.url(s.node_id) - from site_nodes s, apm_packages a - where s.object_id = a.package_id - and a.package_key = 'ecommerce' - } -default 0] + return [db_string ec_mountpoint " + select site_node.url(s.node_id) + from site_nodes s, apm_packages a + where s.object_id = a.package_id + and a.package_key = 'ecommerce'" -default 0] } else { return 0 } @@ -649,18 +650,17 @@ {preorder_button_text "Pre-order This Now!"} {form_action "shopping-cart-add"} {order_id ""} -} { returns cart link } { +} { + Returns cart link +} { - db_1row get_product_info_1 { - select decode(sign(sysdate-available_date),1,1,null,1,0) as available_p, - color_list, size_list, style_list, no_shipping_avail_p - from ec_products - where product_id = :product_id - } + db_1row get_product_info_1 " + select decode(sign(sysdate-available_date),1,1,null,1,0) as available_p, color_list, size_list, style_list, no_shipping_avail_p + from ec_products + where product_id = :product_id" if { ![empty_string_p $color_list] } { - set color_widget "Color: " foreach color [split $color_list ","] { append color_widget "