Page 1 of 1
[Solved] Quantity Field Letter Bug (needs validation)
Posted: Sun Jul 22, 2012 4:06 pm
by cybaspace
Hi,
There is a small bug in OC v1.5.2.1 cart section:
If a user adds something to their cart and update the amount of items with a letter (e.g.: 'e' instead of '3') by accident, the item will be removed from the cart. That can be annoying ;-)
I have also seen this behaviour in v1.5.3.1.
Is there any way to fix this?
Thanks.
Re: Item gets removed in cart if quantity is updated with le
Posted: Mon Jul 23, 2012 4:02 am
by Avvici
Here is a vQmod I just conjured up that validates the quantity field in the shopping cart as well as the product details section. It only allows you to type in numerical values. This is for v1.5.2.1 +
http://www.opencart.com/index.php?route ... ame=Avvici
Re: Item gets removed in cart if quantity is updated with le
Posted: Mon Jul 23, 2012 6:34 pm
by cybaspace
Thanks for your fix.
I installed the vqmod but the item still gets removed if I enter a letter.
You can check it here:
http://www.anyled.nl
Thanks till so far ;-)
Re: Item gets removed in cart if quantity is updated with le
Posted: Mon Jul 23, 2012 7:06 pm
by Avvici
I went to your site. Do you have vQmod Installed on your server? You clearly either don't have it installed or you have an open cart version that is not compatible with my vQmod.
This is for 1.5.2.1 +
Re: [solved] Quantity Field Letter Bug (needs validation)
Posted: Mon Jul 23, 2012 7:53 pm
by cybaspace
Hi,
I do have vqmod installed. I have a lot of other VQmod's running smootly on my 1.5.2.1 OC install. Maybe another vqmod is interfering with your fix. I will try to implement it the hard way (no vqmod)
Thanks.
Re: [solved] Quantity Field Letter Bug (needs validation)
Posted: Mon Jul 23, 2012 8:10 pm
by cybaspace
Hi, I have slashed it in and it works fine now.
Thanks a lot!
Thanks.