Page 1 of 1

Create Order Qty field too small and MaxLenght wrong

Posted: Tue May 04, 2010 11:16 am
by Mike718NY
In the "Create Order" process in the Order Admin,
the Qty field was only set to 3 characters:

<asp:TextBox ID="Quantity" runat="server" Text='<%# Eval("Quantity") %>' MaxLength="3"

also the field is a small int and only has a max of 32,000.

Re: Create Order Qty field too small and MaxLenght wrong

Posted: Tue May 04, 2010 11:39 am
by mazhar
Well in most of cases quantities for a single item doesn't even go to that extent. What is the case the in your scenario?

Re: Create Order Qty field too small and MaxLenght wrong

Posted: Tue May 04, 2010 12:30 pm
by Mike718NY
They called me and said that someone wanted a quantity of a 1000
for some item and they could not enter more than 3 digits.
This was an order over the phone.

Re: Create Order Qty field too small and MaxLenght wrong

Posted: Wed May 05, 2010 6:41 am
by mazhar
I think all you need in this case is to remove or extend validation value on quantity box control. Look on receptive product page where they are trying to add it to basket and then HTML for quantity box. Quantity control supports Max value property just change it from 999 to 1000.