| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Change product quantity from drop down to number input field | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Change product quantity from drop down to number input field
Which template do I need to change and (with what code) do I need to change to replace the product quantity drop down menu in a normal product table, to a normal quantity input field?
|
|||||||
#2
|
|||||||
|
|||||||
This is in products.tpl
__________________
ex x-cart guru |
|||||||
#3
|
|||||||||
|
|||||||||
What provisions need to be made to ensure that the field is numeric and not going to cause complications?
|
|||||||||
#4
|
|||||||
|
|||||||
That is already inbuilt into cart.php and will not cause a problem.
__________________
ex x-cart guru |
|||||||
#5
|
|||||||
|
|||||||
Excuse the newbie question, but which code should I replace, with what?
|
|||||||
#6
|
|||||||||
|
|||||||||
Code:
Replace with this code and that should do it: Code:
|
|||||||||
#7
|
|||||||
|
|||||||
Sweeeeeet! Thanks!
|
|||||||
#8
|
|||||||
|
|||||||
made the modification - now Access Denied problem
I've changed my quantity field as described above - but now have this problem:
Product has a minimum quantity - must purchase 100. If user enters a number less than 100, resulting page reads "Access Denied! You are not allowed to access that resource!". Any ideas? I'm assuming the cart is trying to redirect me to a page alerting me that I didn't enter a valid quantity, but for some reason isn't getting there. thanks in advance! Glen |
|||||||
#9
|
|||||||||
|
|||||||||
If I was using minimum and/or maximum quantity I'd stick with the drop down box personally.
|
|||||||||
#10
|
|||||||||
|
|||||||||
How would I set the default value of this text box to "1"?
So the box would read "1" but the user could change that number via highlight or delete and add their own number. Make sense? |
|||||||||
|
|||
X-Cart forums © 2001-2020
|