View Single Post
  #3  
Old 10-03-2007, 05:39 PM
 
willis1480 willis1480 is offline
 

Member
  
Join Date: Sep 2006
Posts: 15
 

Default Re: cart and fractional quantities

Well...anyway...after way too much time spent on this I have resolved my issues. For anyone who comes across this in the next 3 years...here is the answer:

open cart.php and make the following changes
remove the "floor()" functions in the "mode='add'" section
remove the following around line 270
if ($amount < $added_product["min_amount"]) {
func_header_location ("error_message.php?access_denied&id=31");
}

Now in removing the check for min_amount you may want reconsider that. I have no worries about inventory and do not maintain that. By default you minimum amount will be 1.

In addition to this I changed the stock text box for quantity with a drop down menu where I have determined the amount they can add to cart. This eliminates my concerns for user error when entering quantities.

Hope this helps save someone time in the future!
__________________
www.mypacksupply.com
X-CART 4.0.19
Reply With Quote