fsiano Posted September 9, 2003 Posted September 9, 2003 Hey Guys, I was doing a little testing on my shop and go to find out I found a problem....kind of a no brainer but it can def add to fake orders. If you go to your shopping cart and in the quantity field add in a number like: 2232323232223 to lets say, the Matrox G400 32MB*** card. Before you know it, your total per card is: $1.09 Now I know this isn't a huge ordeal but I can definitely see people screwing around like this. I doubt they will place their order though because some of the shipping quotes are up to $52,095,102,219,890.59. BUT the early am ones and stuff are only a few dollars. Anyone know an easy fix for this? is this known problem? Please fill me in Thanks Frank S
Ajeh Posted September 9, 2003 Posted September 9, 2003 You could add maximums on the qty box so this cannot happen.
billybrag Posted June 25, 2004 Posted June 25, 2004 where is this done please, it will help me lots "because it'll hurt more"- the greatest film of all time?
Acheron Posted June 25, 2004 Posted June 25, 2004 Assuming there is nothing built into osC for this, simply look in all files that use a quantity box (i.e. product_info.php) and edit the end of the code to include a maxlength ... For example: tep_draw_input_field('quantity', '1', 'SIZE=2 maxlength=2')
billybrag Posted June 26, 2004 Posted June 26, 2004 so there isnt anywhere where the box itself is defined, so that i can set it so that it is effectivly read only "because it'll hurt more"- the greatest film of all time?
ozcsys Posted June 26, 2004 Posted June 26, 2004 so there isnt anywhere where the box itself is defined, so that i can set it so that it is effectivly read only There is a contribution that adds a dropdown box which you can admin to how many the customers can order. It is called DROP DOWN BUTTON IN SHOPPING CART The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
billybrag Posted June 26, 2004 Posted June 26, 2004 the rerason i want to lock it is because all the products are unique, so if i limit the drop down menu to 1 say, will this kind of disable the drop down? and hence the quantity, or will it still be a drop down with only one option? cos if its the second that will look a bit tacky "because it'll hurt more"- the greatest film of all time?
Acheron Posted June 26, 2004 Posted June 26, 2004 so there isnt anywhere where the box itself is defined, so that i can set it so that it is effectivly read only Well the solution I mentioned above would prevent users from adding anything over 99 of each item to the cart ... you could of course limit it to 9 per item even if you sell the type of products where it would be unlikely they would want more. Now if you just wanted to forbid users from using the quantity box at some point ... though I'm not sure why in the case of a store ... that can be done easily as well. i.e. I run a forum elsewhere and on edit, there are certain fields I didn't want users to edit so I wrote a little code so that they can see it but can't edit it.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.