-#
-# $ds_link"
-# return $to_return
-# }
-
# For administrators
ad_proc ec_shipping_cost_summary { base_shipping_cost default_shipping_per_item weight_shipping_cost add_exp_base_shipping_cost add_exp_amount_per_item add_exp_amount_by_weight } { returns cost summary } {
Index: openacs-4/packages/ecommerce/www/contextbar.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/Attic/contextbar.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/ecommerce/www/contextbar.tcl 17 Sep 2002 03:36:34 -0000 1.1
+++ openacs-4/packages/ecommerce/www/contextbar.tcl 19 Sep 2002 03:02:19 -0000 1.2
@@ -1,6 +1,4 @@
-# Display the ecommerce toolbar containing a product search widget,
-# a link to order gift certificates (if they are allowed) and links
-# to the shopping cart and store account.
+# Add a [ Administer ] link at the far right to the context bar.
# @param context_addition
@@ -26,7 +24,7 @@
# Check for admin rights to this (the ecommerce) package.
set ec_admin_p [ad_permission_p [ad_conn package_id] admin]
-set ec_admin_link [ec_insecurelink [ad_parameter -package_id [ec_id] EcommercePath]admin/]
+set ec_admin_link admin/
# Get the name of the ecommerce package
Index: openacs-4/packages/ecommerce/www/shopping-cart-retrieve-3.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/shopping-cart-retrieve-3.adp,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/ecommerce/www/shopping-cart-retrieve-3.adp 17 Sep 2002 03:36:34 -0000 1.3
+++ openacs-4/packages/ecommerce/www/shopping-cart-retrieve-3.adp 19 Sep 2002 03:02:19 -0000 1.4
@@ -49,4 +49,10 @@
+
+
The order you have selected either does not exist or does not
+ belong to you. Please contact @ec_system_owner@
+ if this is incorrect.
When you have more than one person updating information in a
Index: openacs-4/packages/ecommerce/www/doc/contextbar.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/doc/contextbar.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/ecommerce/www/doc/contextbar.adp 19 Sep 2002 03:02:18 -0000 1.1
@@ -0,0 +1 @@
+
Index: openacs-4/packages/ecommerce/www/doc/contextbar.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/doc/contextbar.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/ecommerce/www/doc/contextbar.tcl 19 Sep 2002 03:02:18 -0000 1.1
@@ -0,0 +1,32 @@
+# Add a [ Administer ] link at the far right to the context bar.
+
+# @param context_addition
+
+# @author Bart Teeuwisse
+# @cvs-id $Id: contextbar.tcl,v 1.1 2002/09/19 03:02:18 bartt Exp $
+# @creation-date September 2002
+
+# Create an empty context_addition list if no addition has been passed
+# in.
+
+if {![info exists context_addition]} {
+ set context_addition {}
+}
+
+# Create a context bar with the passed in addition(s) if any.
+
+if {[empty_string_p $context_addition]} {
+ set context_bar [ad_context_bar]
+} else {
+ set context_bar [eval ad_context_bar $context_addition]
+}
+
+# Check for admin rights to this (the ecommerce) package.
+
+set ec_admin_p [ad_permission_p [ad_conn package_id] admin]
+set ec_admin_link [apm_package_url_from_id [ec_id]]admin/
+
+# Get the name of the ecommerce package
+
+set ec_system_name [ec_system_name]
+
Index: openacs-4/packages/ecommerce/www/doc/ecommerce-customer-service.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/doc/ecommerce-customer-service.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/ecommerce/www/doc/ecommerce-customer-service.adp 26 May 2002 04:36:50 -0000 1.2
+++ openacs-4/packages/ecommerce/www/doc/ecommerce-customer-service.adp 19 Sep 2002 03:02:18 -0000 1.3
@@ -1,19 +1,8 @@
-
-
@title@@signatory@
+ @context_bar@
-
@title@
-
-
-
-
@context_bar@
-
-
-
-
-
The Customer Service Module can be found at @package_url@admin/customer-service/
(it is also linked to from the main Ecommerce Administration
Index: openacs-4/packages/ecommerce/www/doc/ecommerce-features.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/doc/ecommerce-features.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/ecommerce/www/doc/ecommerce-features.adp 26 May 2002 04:36:50 -0000 1.2
+++ openacs-4/packages/ecommerce/www/doc/ecommerce-features.adp 19 Sep 2002 03:02:18 -0000 1.3
@@ -1,20 +1,8 @@
-
-
@title@@signatory@
+ @context_bar@
-
@title@
-
-
-
-
@context_bar@
-
-
-
-
-
-
Some of the high-level features of the @package_name@:
Products
Index: openacs-4/packages/ecommerce/www/doc/ecommerce-features.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/doc/ecommerce-features.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/ecommerce/www/doc/ecommerce-features.tcl 26 May 2002 05:09:57 -0000 1.1
+++ openacs-4/packages/ecommerce/www/doc/ecommerce-features.tcl 19 Sep 2002 03:02:18 -0000 1.2
@@ -29,7 +29,7 @@
# Set the context bar.
-set context_bar [ad_context_bar [list "." "$package_name Documentation"] "Feature overview"]
+set context_bar [ad_context_bar [list "." "Ecommerce Documentation"] "Feature overview"]
# Set signatory for at the bottom of the page
Index: openacs-4/packages/ecommerce/www/doc/ecommerce-for-mbas.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/doc/ecommerce-for-mbas.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/ecommerce/www/doc/ecommerce-for-mbas.adp 26 May 2002 04:36:50 -0000 1.2
+++ openacs-4/packages/ecommerce/www/doc/ecommerce-for-mbas.adp 19 Sep 2002 03:02:18 -0000 1.3
@@ -1,19 +1,8 @@
-
-
@title@@signatory@
+ @context_bar@
-
Before reading this, make sure that you have read about setting up your ecommerce module. This
document takes up where that one leaves off and covers all the
Index: openacs-4/packages/ecommerce/www/doc/ecommerce-setup.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/doc/ecommerce-setup.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/ecommerce/www/doc/ecommerce-setup.adp 26 May 2002 04:36:50 -0000 1.2
+++ openacs-4/packages/ecommerce/www/doc/ecommerce-setup.adp 19 Sep 2002 03:02:18 -0000 1.3
@@ -1,19 +1,8 @@
-
-
Setup of the Ecommerce Module@signatory@
+ @context_bar@
-
@title@
-
-
-
-
@context_bar@
-
-
-
-
-
This is intended to be a guide for the content administrators of
@package_name@. Content administrators are not assumed to have any
technical expertise (although HTML knowledge is necessary if you
Index: openacs-4/packages/ecommerce/www/doc/ecommerce-technical.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/doc/ecommerce-technical.adp,v
diff -u -r1.3 -r1.4
--- openacs-4/packages/ecommerce/www/doc/ecommerce-technical.adp 15 Sep 2002 01:50:49 -0000 1.3
+++ openacs-4/packages/ecommerce/www/doc/ecommerce-technical.adp 19 Sep 2002 03:02:18 -0000 1.4
@@ -1,17 +1,8 @@
@title@@signatory@
+ @context_bar@
-
@package_name@ implements all the IT needs for a standard
business-to-consumer web service. Most importantly, it is tightly
integrated with the rest of the Open Architecture Community System
Index: openacs-4/packages/ecommerce/www/doc/index.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/doc/index.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/ecommerce/www/doc/index.tcl 26 May 2002 05:09:57 -0000 1.1
+++ openacs-4/packages/ecommerce/www/doc/index.tcl 19 Sep 2002 03:02:18 -0000 1.2
@@ -27,7 +27,7 @@
# Set the context bar.
-set context_bar [ad_context_bar $package_name]
+set context_bar [template::adp_parse [acs_root_dir]/packages/ecommerce/www/doc/contextbar [list context_addition [list $title]]]
# Set signatory for at the bottom of the page
Index: openacs-4/packages/ecommerce/www/doc/license.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/doc/license.adp,v
diff -u -r1.1 -r1.2
--- openacs-4/packages/ecommerce/www/doc/license.adp 26 May 2002 05:09:57 -0000 1.1
+++ openacs-4/packages/ecommerce/www/doc/license.adp 19 Sep 2002 03:02:18 -0000 1.2
@@ -1,20 +1,9 @@
-
-
@title@@signatory@
+ @context_bar@
-