Index: openacs-4/packages/ecommerce/www/admin/products/add-2.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/products/add-2.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/www/admin/products/add-2.adp 13 Aug 2008 11:34:30 -0000 1.1 @@ -0,0 +1,18 @@ + + @title;noquote@ + @context;noquote@ +

@title@

+ +
+ @export_form_vars_html;noquote@ + + +

Select a template to use when displaying this product.

+

If none is selected, the product will be displayed with the system default template.
+ @template_html;noquote@ +

+ +
+
+ + Index: openacs-4/packages/ecommerce/www/admin/products/add-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/products/add-2.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/ecommerce/www/admin/products/add-2.tcl 27 Apr 2008 01:38:24 -0000 1.7 +++ openacs-4/packages/ecommerce/www/admin/products/add-2.tcl 13 Aug 2008 11:34:30 -0000 1.8 @@ -71,6 +71,9 @@ } } +set title "Add A Product continued" +set context [list $title] + ad_require_permission [ad_conn package_id] admin # set_the_usual_form_variables @@ -140,7 +143,7 @@ set thumbnail "" -if { [info exists upload_file] && ![string compare $upload_file ""] == 0 } { +if { [info exists upload_file] && [string length $upload_file] > 4 } { # tmp file will be deleted when the thread ends set tmp_filename ${upload_file.tmpfile} @@ -163,48 +166,21 @@ # Need to let them select template based on category -doc_body_append "[ad_admin_header "Add a Product, Continued"] +set export_form_vars_html [export_form_vars product_name sku category_id_list subcategory_id_list subsubcategory_id_list one_line_description detailed_description color_list size_list style_list email_on_purchase_list search_keywords url price no_shipping_avail_p present_p shipping shipping_additional weight linked_thumbnail product_id stock_status dirname] -

Add a Product, Continued

- -[ad_context_bar [list "../" "Ecommerce([ec_system_name])"] [list "index" "Products"] "Add Product"] - -
-
-[export_form_vars product_name sku category_id_list subcategory_id_list subsubcategory_id_list one_line_description detailed_description color_list size_list style_list email_on_purchase_list search_keywords url price no_shipping_avail_p present_p shipping shipping_additional weight linked_thumbnail product_id stock_status dirname] - -" - # also need to export custom field values db_foreach custom_fields_select "select field_identifier from ec_custom_product_fields where active_p='t'" { if { [info exists ec_custom_fields($field_identifier)] } { - doc_body_append "\n" + append export_form_vars_html "\n" } } foreach user_class_id [db_list user_class_select "select user_class_id from ec_user_classes"] { - doc_body_append "\n" + append export_form_vars_html "\n" } # create the template drop-down list -doc_body_append " +set template_html [ec_template_widget $category_id_list] -

Select a template to use when displaying this product.

-

- -If none is -selected, the product will be displayed with the system default template.
-

-[ec_template_widget $category_id_list] -
-

- -

- -
-
- -[ad_admin_footer] -"