Index: openacs-4/packages/ecommerce/lib/toolbar-oracle.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/lib/toolbar-oracle.xql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/lib/toolbar-oracle.xql 8 Aug 2008 13:09:48 -0000 1.1 @@ -0,0 +1,18 @@ + + + + + oracle + 8.1.6 + + + + + select 1 + from dual + where exists (select 1 + from ec_categories) + + + + Index: openacs-4/packages/ecommerce/lib/toolbar-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/lib/toolbar-postgresql.xql,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/lib/toolbar-postgresql.xql 8 Aug 2008 13:09:48 -0000 1.1 @@ -0,0 +1,16 @@ + + + + + postgresql + 7.1 + + + + + select 1 where exists (select 1 + from ec_categories) + + + + Index: openacs-4/packages/ecommerce/lib/toolbar.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/lib/toolbar.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/lib/toolbar.adp 8 Aug 2008 13:09:48 -0000 1.1 @@ -0,0 +1,9 @@ + + [ gift certificates ] + + + [ shopping cart ] + + + [ your @ec_system_name@ account ] + Index: openacs-4/packages/ecommerce/lib/toolbar.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/lib/toolbar.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/lib/toolbar.tcl 8 Aug 2008 13:09:48 -0000 1.1 @@ -0,0 +1,17 @@ +# Display the ecommerce toolbar containing +# a link to order gift certificates (if they are allowed) and links +# to the shopping cart and store account. + +# Determine the URLs to the Shopping Cart and store Account. +# Get the ecommerce package url +set ecommerce_base_url [ec_url] + +set ec_cart_link [ec_insecurelink [file join $ecommerce_base_url "shopping-cart"]] +set ec_account_link [ec_insecurelink [file join $ecommerce_base_url "account"]] +set ec_gift_cert_order_link [ec_insecurelink [file join $ecommerce_base_url "gift-certificate-order"]] + +# Get the name of the ecommerce package +set ec_system_name [ec_system_name] + +# Check if gift certificates can be bought. +set gift_certificates_are_allowed [parameter::get -package_id [ec_id] -parameter SellGiftCertificatesP -default 0]