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 -N -r1.22 -r1.23 --- openacs-4/packages/dotlrn-ecommerce/www/ecommerce/shopping-cart-add.tcl 15 Sep 2005 14:59:53 -0000 1.22 +++ openacs-4/packages/dotlrn-ecommerce/www/ecommerce/shopping-cart-add.tcl 19 Sep 2005 22:11:38 -0000 1.23 @@ -213,10 +213,10 @@ # If the product_id is worth $0 and free registration is allowed, skip # the shopping cart and add the user immediately to the associated community -if { [info exists section_id] } { +if { [info exists section_id] && [parameter::get -parameter AllowFreeRegistration -default 0] } { set price [dotlrn_ecommerce::section::price $section_id] - if { $price < 0.01 && [parameter::get -parameter AllowFreeRegistration -default 0] } { + if { $price < 0.01 } { dotlrn_community::add_user $community_id $participant_id }