Index: openacs-4/packages/dotlrn-ecommerce/lib/section.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-ecommerce/lib/section.tcl,v diff -u -r1.32 -r1.33 --- openacs-4/packages/dotlrn-ecommerce/lib/section.tcl 12 Jan 2006 13:26:26 -0000 1.32 +++ openacs-4/packages/dotlrn-ecommerce/lib/section.tcl 10 Mar 2006 19:28:53 -0000 1.33 @@ -114,13 +114,15 @@ {price:currency,to_sql(sql_number) {label "Regular Price"} {html {size 6}} {help_text {Enter any fees related to this course here. \$0 in this field means there is no related fee.}} } + {show_price_p:text(radio) {label "Show Price Information"} {options {{Yes t} {No f}}}} } } else { ad_form -extend -name add_section -form { {section_name:text {label "Section Code"} {help_text {E.g. Section 01, W06}}} {price:currency,to_sql(sql_number) {label "Regular Price"} {html {size 6}} {help_text "Enter any fees related to this course here."} } + {show_price_p:text(radio) {label "Show Price Information"} {options {{Yes t} {No f}}}} } } @@ -405,6 +407,7 @@ } set show_participants_p t set show_sessions_p t + set show_price_p t } -new_request { set product_id 0 set price [template::util::currency::create "$" "0" "." "00" ] @@ -590,8 +593,8 @@ # Use item_id as course_id coz course_id is the revision and # its easier to keep track of the item_id db_dml add_section { - insert into dotlrn_ecommerce_section(section_id, course_id, section_name, community_id,product_id, notify_waiting_number, show_participants_p, show_sessions_p, description) values - (:section_id, :item_id, :section_name, :community_id, :product_id, :notify_waiting_number, :show_participants_p, :show_sessions_p, :description) + insert into dotlrn_ecommerce_section(section_id, course_id, section_name, community_id,product_id, notify_waiting_number, show_participants_p, show_sessions_p, description, show_price_p) values + (:section_id, :item_id, :section_name, :community_id, :product_id, :notify_waiting_number, :show_participants_p, :show_sessions_p, :description, :show_price_p) } # for this to work, dotlrn_eccomerce_section must be an object @@ -672,6 +675,7 @@ notify_waiting_number = :notify_waiting_number, show_participants_p = :show_participants_p, show_sessions_p = :show_sessions_p, + show_price_p = :show_price_p, description = :description where section_id = :section_id }