| ||||||||||
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 |
#11
|
|||||||
|
|||||||
I use almost the same line as above.
<input type="text" name=amount size="6" value="{$product.min_amount}"> This gives a little bigger field to type in and it sets the default to whatever the minimum order amount that you set for that item. Good luck. |
|||||||
#12
|
|||||||
|
|||||||
I use almost the same line as above.
<input type="text" name=amount size="6" value="{$product.min_amount}"> This gives a little bigger field to type in and it sets the default to whatever the minimum order amount that you set for that item. Good luck. |
|||||||
#13
|
|||||||||
|
|||||||||
Excellent thinking!
Thanks! |
|||||||||
#14
|
|||||||||
|
|||||||||
I implemented this before even finding this post. I did some Javascript validation to make sure they input greater than minimum amount.
Here's what I did. In 3.4.x, I changed the FormValidation at the top of skin1/customer/product.tpl to: Code:
and I added this before the other hidden inputs: Code:
FIXED! This should work now if you want to use a text box instead of a quantity drop down box. Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#15
|
|||||||
|
|||||||
anyone know how to do this for version 4.08?
tried following the above information, but it doesnt seem to match up with my version. any help would be great.
__________________
xcart version 4.1.6 UK - Brighton QVS ELECTRICAL SUPPLIES - http://www.qvsdirect.com We supply a huge range of cables, electrical accessories, heating, ventilation, fire and security products, consumer units & circuit distribution, indoor and outdoor lighting, showers and water heating, tools and fixings, timer switches, sockets, switches, air conditioning, trunking, and much much more. |
|||||||
#16
|
|||||||||
|
|||||||||
Ditto
__________________
XC 4.2 inc (unofficial) patch release. |
|||||||||
#17
|
|||||||||
|
|||||||||
Teaches me to look without checking correctly...
I replaced this: Code:
With this: Code:
Seems to work well...
__________________
XC 4.2 inc (unofficial) patch release. |
|||||||||
#18
|
|||||||
|
|||||||
Thank You!! Thank You!! Worked well for me in 4.0.9
whew!! |
|||||||
#19
|
|||||||
|
|||||||
QVS, below is the javascript form validation for version 4.0.6. I'm going to go out on a limb and say that it should work for any version 4 cart. Highlight the entire code and paste it over the existing code in /form_validation_js.tpl.
It worked for me ~ BUT ~ back up your original before you try the change ~ just to be safe. Code:
Let me know how it works.
__________________
~zilker uummm...perhaps you should tell me again. http://www.designertrends.com Version 4.0.6 Unix |
|||||||
#20
|
|||||||
|
|||||||
Quote:
Which file are you editing here? Will these changes work if you are using the product_options module?
__________________
4.0.15 Linux |
|||||||
|
|||
X-Cart forums © 2001-2020
|