Index: openacs-4/packages/ecommerce/lib/contextbar.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/lib/contextbar.adp,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/ecommerce/lib/contextbar.adp 8 Aug 2008 12:23:47 -0000 1.1
@@ -0,0 +1 @@
+
[ Administer ] [ View Your Shopping Cart ]
Index: openacs-4/packages/ecommerce/lib/contextbar.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/lib/contextbar.tcl,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/ecommerce/lib/contextbar.tcl 8 Aug 2008 12:23:47 -0000 1.1
@@ -0,0 +1,17 @@
+# Add a [ Administer ] link to the template
+
+
+
+# Check for admin rights to this (the ecommerce) package.
+
+set ec_admin_p [permission::permission_p -no_login -object_id [ad_conn package_id] -privilege admin]
+if {$ec_admin_p} {
+ set ec_admin_link "[ec_url]admin/"
+}
+
+set cart_link "[ec_url]shopping-cart"
+
+# Get the name of the ecommerce package
+
+set ec_system_name [ec_system_name]
+