Index: openacs-4/packages/dotlrn-ecommerce/catalog/dotlrn-ecommerce.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/catalog/dotlrn-ecommerce.en_US.ISO-8859-1.xml,v diff -u -r1.42 -r1.43 --- openacs-4/packages/dotlrn-ecommerce/catalog/dotlrn-ecommerce.en_US.ISO-8859-1.xml 1 Sep 2005 12:23:21 -0000 1.42 +++ openacs-4/packages/dotlrn-ecommerce/catalog/dotlrn-ecommerce.en_US.ISO-8859-1.xml 6 Sep 2005 04:25:42 -0000 1.43 @@ -1,5 +1,5 @@ - + Action Add Course @@ -98,7 +98,7 @@ Application approval (default <i>Note: this is customizable on a per section basis</i>) Application approval (granted spot from waiting list) Application approval (waiver of prerequisites approved) - Application Confirmed + Waiting list request confirmed Approved Applications Approved PreReq Applications Approved Users from Waiting List @@ -118,8 +118,8 @@ for %first_names% %last_name% (if you're not %first_names% %last_name% for the current purchases Waiting list - Hold slot and wait for confirmation - Is this person your + Request an exception + This person is your I am a returning customer: if you prefer using some of your other addresses on file with us. I'm participating in this course @@ -167,15 +167,15 @@ Select another purchaser Sessions and Attendance Sorry, the offer code was not accepted. - Thank you for your application to %section_name%. + Thank you for putting yourself on the waiting list for %section_name%. We will notify you if a space becomes available. Thank You For Your Order The course only has $available_slots slot(s) left The following has been sent to the purchaser The offer code was accepted. You save $savings! - This section is currently full, but we are taking registrations for the waiting list. + This section is currently full, but we are taking names for the waiting list. To complete your order, submit this form, and confirm the information on the following page. - to send us your order! - Total Amount Received + to send us your order, or click "back" on your browser to make changes. + Total Charge Application approved Slot available to come off waiting list - waiting for purchase Prequisite has been approved - waiting for purchase @@ -200,7 +200,7 @@ You have no applications You may continue with the purchase You may only enter up to the amount - Would you like to be placed to the waiting list? + Would you like to be placed on the waiting list? Would you be interested in taking a different course? Your application to join $community_name was approved. Please register via the MOS website or call to get registered via phone. Your application to join %community_name% was rejected. @@ -245,10 +245,10 @@ Process Registration Product Public Pages - Purchase membership + Purchase membership Purchaser Purchaser is - Push + Click Quantity Quick Links Reason @@ -283,7 +283,7 @@ Subtotal System Setup Tax: - The section is full + The section is full. TOTAL: Total: Total Index: openacs-4/packages/dotlrn-ecommerce/www/application-approve.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/www/application-approve.tcl,v diff -u -r1.13 -r1.14 --- openacs-4/packages/dotlrn-ecommerce/www/application-approve.tcl 6 Sep 2005 02:00:16 -0000 1.13 +++ openacs-4/packages/dotlrn-ecommerce/www/application-approve.tcl 6 Sep 2005 04:25:43 -0000 1.14 @@ -3,7 +3,6 @@ ad_page_contract { - @author Roel Canicula (roelmc@pldtdsl.net) @creation-date 2005-06-23 @arch-tag: 93f47ba6-c04e-419a-bcd6-60bb95553236 Index: openacs-4/packages/dotlrn-ecommerce/www/application-confirm.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/www/application-confirm.adp,v diff -u -r1.3 -r1.4 --- openacs-4/packages/dotlrn-ecommerce/www/application-confirm.adp 5 Sep 2005 20:48:24 -0000 1.3 +++ openacs-4/packages/dotlrn-ecommerce/www/application-confirm.adp 6 Sep 2005 04:25:43 -0000 1.4 @@ -22,4 +22,19 @@ + + + + + + #dotlrn-ecommerce.lt_Register_for_Another_# + \ No newline at end of file Index: openacs-4/packages/dotlrn-ecommerce/www/application-confirm.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/www/application-confirm.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/dotlrn-ecommerce/www/application-confirm.tcl 5 Sep 2005 20:48:25 -0000 1.4 +++ openacs-4/packages/dotlrn-ecommerce/www/application-confirm.tcl 6 Sep 2005 04:25:43 -0000 1.5 @@ -2,8 +2,13 @@ } { {product_id:notnull} member_state:notnull + {patron_id ""} + } +set cc_package_id [apm_package_id_from_key "dotlrn-catalog"] +set admin_p [permission::permission_p -object_id $cc_package_id -privilege "admin"] + if { [db_0or1row get_name { select c.course_name||': '||s.section_name as section_name, s.community_id from dotlrn_ecommerce_section s, dotlrn_catalogi c, cr_items i Index: openacs-4/packages/dotlrn-ecommerce/www/admin/process-purchase-course.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/www/admin/process-purchase-course.tcl,v diff -u -r1.20 -r1.21 --- openacs-4/packages/dotlrn-ecommerce/www/admin/process-purchase-course.tcl 6 Sep 2005 01:12:11 -0000 1.20 +++ openacs-4/packages/dotlrn-ecommerce/www/admin/process-purchase-course.tcl 6 Sep 2005 04:25:43 -0000 1.21 @@ -31,6 +31,7 @@ } + # Proc to be used in form validation proc already_registered_p { section_id purchaser_id participant_id } { if { [empty_string_p $section_id] } { Index: openacs-4/packages/dotlrn-ecommerce/www/admin/process-purchase.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/www/admin/process-purchase.tcl,v diff -u -r1.10 -r1.11 --- openacs-4/packages/dotlrn-ecommerce/www/admin/process-purchase.tcl 6 Sep 2005 01:12:11 -0000 1.10 +++ openacs-4/packages/dotlrn-ecommerce/www/admin/process-purchase.tcl 6 Sep 2005 04:25:43 -0000 1.11 @@ -23,6 +23,7 @@ set title "" + if { [exists_and_not_null section_id] } { db_1row get_section_info "select c.course_id, c.course_name, Index: openacs-4/packages/dotlrn-ecommerce/www/ecommerce/participant-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/www/ecommerce/participant-add.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn-ecommerce/www/ecommerce/participant-add.tcl 28 Aug 2005 15:18:12 -0000 1.2 +++ openacs-4/packages/dotlrn-ecommerce/www/ecommerce/participant-add.tcl 6 Sep 2005 04:25:43 -0000 1.3 @@ -19,6 +19,7 @@ } -errors { } + if { ! [empty_string_p $cancel] } { ns_log notice "DEBUG:: CANCEL - $cancel - $return_url" Index: openacs-4/packages/dotlrn-ecommerce/www/ecommerce/shopping-cart-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/www/ecommerce/shopping-cart-add.tcl,v diff -u -r1.18 -r1.19 --- openacs-4/packages/dotlrn-ecommerce/www/ecommerce/shopping-cart-add.tcl 24 Aug 2005 10:03:03 -0000 1.18 +++ openacs-4/packages/dotlrn-ecommerce/www/ecommerce/shopping-cart-add.tcl 6 Sep 2005 04:25:43 -0000 1.19 @@ -143,12 +143,13 @@ # No more slots left, ask user if he wants to go to # waiting list - if { $admin_p && $user_id != [ad_conn user_id] } { + if { $admin_p } { set cancel_url [set return_url [export_vars -base [ad_conn package_url]admin/process-purchase-course { user_id }]] } else { - set return_url [export_vars -base [ad_conn package_url]application-confirm { product_id {member_state "needs approval"} }] set cancel_url [ad_conn package_url] } + + set return_url [export_vars -base [ad_conn package_url]application-confirm { product_id {member_state "needs approval"} {patron_id $user_id}} ] ad_returnredirect [export_vars -base waiting-list-confirm { product_id user_id participant_id return_url cancel_url }] ad_script_abort }