Forums / Bug Reports / No Validation of Quantity Field

No Validation of Quantity Field

Locked

Started by andybellfbla on 8 Apr 2007, 7:52 PM · Views: 1,472

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
8 Apr 2007, 7:52 PM
#1
andybellfbla avatar

andybellfbla

New Zenner

Join Date:
Mar 2007
Posts:
2
Plugin Contributions:
0

No Validation of Quantity Field

During a recent stress test of my site (running v. 1.3.7), it was found that if you didn't put a valid entry (like putting a letter in the box instead of a number) in a product quantity field, it would have some less-than-desirable results.

From a product page without a product already in the cart, it would just go to the cart page and say "Your Shopping Cart is empty."

From a product page with a product in the cart, it would just take you to the cart.

If you update a quantity in the shopping cart with an invalid entry (like a letter instead of a number), it would remove the item from the cart.

It may seem like a minor annoyance, but it would be a good thing to be fixed.

9 Apr 2007, 12:59 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: No Validation of Quantity Field

Define "fixed" that works for everyone ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

9 Apr 2007, 6:25 PM
#3
andybellfbla avatar

andybellfbla

New Zenner

Join Date:
Mar 2007
Posts:
2
Plugin Contributions:
0

Re: No Validation of Quantity Field

How about it telling you "Please enter a number" or something like that, rather than just kind of erroring out.

9 Apr 2007, 7:24 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: No Validation of Quantity Field

It would require quite a bit of coding for that ...

Not saying that it could not be done, but to test what something is and whether that is valid etc.

Such as 0 can be used to delete on the shopping_cart ... a rather handy feature for the customer ...

But then characters evaluate to 0 so they too can be used to delete ... not necessarily always an appealing feature ...

We will keep this in mind and debate what and where things can be managed without causing more work for the customer ...

As in 5 products in the shopping_cart and on 2 of those the customer hits r instead of 4 and 3 on a product that was 1 and 0 on a product that was 12 ...

Thanks for the suggestion ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!