Index: openacs-4/packages/ecommerce/www/shopping-cart-quantities-change.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/shopping-cart-quantities-change.tcl,v diff -u -r1.6 -r1.7 --- openacs-4/packages/ecommerce/www/shopping-cart-quantities-change.tcl 8 Mar 2004 19:46:11 -0000 1.6 +++ openacs-4/packages/ecommerce/www/shopping-cart-quantities-change.tcl 24 Feb 2005 13:33:14 -0000 1.7 @@ -94,6 +94,7 @@ # set size_choice [lindex $product_color_size_style 2] # set style_choice [lindex $product_color_size_style 3] +set max_quantity_to_add [parameter::get -parameter CartMaxToAdd] db_transaction { @@ -114,7 +115,7 @@ set style_choice [lindex $product_color_size_style 3] if { $quantity_to_add > 0 } { - set remaining_quantity $quantity_to_add + set remaining_quantity [min $quantity_to_add $max_quantity_to_add] while { $remaining_quantity > 0 } { db_dml insert_new_quantity_to_add "insert into ec_items