Index: openacs-4/packages/ecommerce/ecommerce.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/ecommerce.info,v
diff -u -r1.27 -r1.28
--- openacs-4/packages/ecommerce/ecommerce.info 19 Sep 2002 21:31:14 -0000 1.27
+++ openacs-4/packages/ecommerce/ecommerce.info 19 Sep 2002 23:38:19 -0000 1.28
@@ -5,7 +5,7 @@
E-Commerce
E-Commerce-ii
f
- t
+ f
@@ -708,6 +708,8 @@
+
+
Index: openacs-4/packages/ecommerce/www/category-browse-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/category-browse-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/ecommerce/www/category-browse-oracle.xql 19 Sep 2002 23:38:18 -0000 1.1
@@ -0,0 +1,38 @@
+
+
+
+
+ oracle
+ 8.1.6
+
+
+
+
+ select p.product_id, p.product_name, p.dirname, r.recommendation_text, o.offer_code
+ from ec_product_recommendations r,
+ ec_products_displayable p, ec_user_session_offer_codes o
+ where (p.product_id=o.product_id(+) and (user_session_id=:user_session_id or user_session_id is null))
+ and p.product_id = r.product_id
+ and r.${sub}category_id=:${sub}category_id
+ and r.active_p='t'
+ and (r.user_class_id is null or r.user_class_id in (select user_class_id
+ from ec_user_class_user_map m
+ where user_id=:user_id
+ $user_class_approved_p_clause))
+ order by p.product_name
+
+
+
+
+
+ select p.product_id, p.product_name, p.one_line_description, o.offer_code
+ from $product_map($sub) m, ec_products_searchable p, ec_user_session_offer_codes o
+ where (p.product_id=o.product_id(+) and (user_session_id=:user_session_id or user_session_id is null))
+ and p.product_id = m.product_id
+ and m.${sub}category_id = :${sub}category_id
+ $exclude_subproducts
+ order by p.product_name
+
+
+
+
Index: openacs-4/packages/ecommerce/www/category-browse-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/category-browse-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/ecommerce/www/category-browse-postgresql.xql 19 Sep 2002 23:38:18 -0000 1.1
@@ -0,0 +1,37 @@
+
+
+
+
+ postgresql
+ 7.1
+
+
+
+
+ select p.product_id, p.product_name, p.dirname, r.recommendation_text, o.offer_code
+ from ec_product_recommendations r,
+ ec_products_displayable p left outer join ec_user_session_offer_codes o on
+ (p.product_id = o.product_id and user_session_id = :user_session_id)
+ where p.product_id = r.product_id
+ and r.${sub}category_id=:${sub}category_id
+ and r.active_p='t'
+ and (r.user_class_id is null or r.user_class_id in (select user_class_id
+ from ec_user_class_user_map m
+ where user_id=:user_id
+ $user_class_approved_p_clause))
+ order by p.product_name
+
+
+
+
+
+ select p.product_id, p.product_name, p.one_line_description, o.offer_code
+ from $product_map($sub) m, ec_products_searchable p left outer join ec_user_session_offer_codes o on (p.product_id = o.product_id and user_session_id = :user_session_id)
+ where p.product_id = m.product_id
+ and m.${sub}category_id = :${sub}category_id
+ $exclude_subproducts
+ order by p.product_name
+
+
+
+
Index: openacs-4/packages/ecommerce/www/category-browse.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/category-browse.xql,v
diff -u -r1.2 -r1.3
--- openacs-4/packages/ecommerce/www/category-browse.xql 26 May 2002 04:36:50 -0000 1.2
+++ openacs-4/packages/ecommerce/www/category-browse.xql 19 Sep 2002 23:38:18 -0000 1.3
@@ -1,3 +1,4 @@
+
@@ -43,34 +44,6 @@
-
-
- select p.product_id, p.product_name, p.dirname, r.recommendation_text, o.offer_code
- from ec_product_recommendations r,
- ec_products_displayable p left outer join ec_user_session_offer_codes o on
- (p.product_id = o.product_id and user_session_id = :user_session_id)
- where p.product_id = r.product_id
- and r.${sub}category_id=:${sub}category_id
- and r.active_p='t'
- and (r.user_class_id is null or r.user_class_id in (select user_class_id
- from ec_user_class_user_map m
- where user_id=:user_id
- $user_class_approved_p_clause))
- order by p.product_name
-
-
-
-
-
- select p.product_id, p.product_name, p.one_line_description, o.offer_code
- from $product_map($sub) m, ec_products_searchable p left outer join ec_user_session_offer_codes o on (p.product_id = o.product_id and user_session_id = :user_session_id)
- where p.product_id = m.product_id
- and m.${sub}category_id = :${sub}category_id
- $exclude_subproducts
- order by p.product_name
-
-
-
select * from ec_sub${sub}categories c