Create Order Qty field too small and MaxLenght wrong

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Create Order Qty field too small and MaxLenght wrong

Post by Mike718NY » Tue May 04, 2010 11:16 am

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.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Create Order Qty field too small and MaxLenght wrong

Post by mazhar » Tue May 04, 2010 11:39 am

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?

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Create Order Qty field too small and MaxLenght wrong

Post by Mike718NY » Tue May 04, 2010 12:30 pm

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.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Create Order Qty field too small and MaxLenght wrong

Post by mazhar » Wed May 05, 2010 6:41 am

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.

Post Reply