![]() |
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. |
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. |
Excellent thinking!
Thanks! |
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:
function FormValidation() and I added this before the other hidden inputs: Code:
{* BCSE Begin *} FIXED! This should work now if you want to use a text box instead of a quantity drop down box. Carrie |
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. |
Ditto :(
|
Teaches me to look without checking correctly...
I replaced this: Code:
<SELECT id="product_avail" name="amount"{if $active_modules.Product_Options ne '' && $product_options ne ''} onchange="check_wholesale(this.value);"{/if}> With this: Code:
<input type="text" name=amount size="4" value="{$product.min_amount}"> Seems to work well... |
Thank You!! Thank You!! Worked well for me in 4.0.9
:D whew!! |
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:
{* $Id: form_validation_js.tpl,v 1.2.2.3 2004/08/11 12:04:13 max Exp $ *} Let me know how it works. |
Quote:
Which file are you editing here? Will these changes work if you are using the product_options module? |
All times are GMT -8. The time now is 09:05 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.