| ||||||||||
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 |
#21
|
|||||||
|
|||||||
that is in products.tpl and yes, you can still use your product options with that mod.
__________________
~zilker uummm...perhaps you should tell me again. http://www.designertrends.com Version 4.0.6 Unix |
|||||||
#22
|
|||||||
|
|||||||
Has anyone tried this with 4.0.13? Looking at the 2 changes:
1. products.tpl I changed this: Code:
to this: Code:
That appears to work no probs. BUT... 2. form_validation.tpl I replaced the entire contents of this file with the suggestion in zilker's post of Sun Feb 13, 2005 The problem... Whenever I now submit the form to 'add to cart', I get the Jscript error "document.orderform.minamount.value' is null or not an object. Has anyone else had any luck making this mod on 4.0.13? Cheers, JB
__________________
X-Cart 4.0.17 ezUpsell PHP 4.4.1 MySQL 4.0.25-standard Apache 1.3.34 Linux |
|||||||
#23
|
|||||||||
|
|||||||||
I'm looking at skin1/main/products.tpl and I can't seem to find the code to replace. Used the 'find' function with parts of the code and even scanned through the file (since file is fairly short, 3k). Still not finding it. Is this even the right products.tpl file?
Looked at products.php in the root too but code's not in there either. Somebody please help!
__________________
Wicked shirts, and other assorted mayhem. www.MadRagz.com ----- X-Cart Gold v 4.0.13 |
|||||||||
#24
|
|||||||
|
|||||||
sorry - maybe a typo...try product.tpl
__________________
X-Cart 4.0.17 ezUpsell PHP 4.4.1 MySQL 4.0.25-standard Apache 1.3.34 Linux |
|||||||
#25
|
|||||||||
|
|||||||||
Ok well, looked at both product.tpl products.tpl in the skin1/main/ directory. Search function doesn't even find the words "select" or "amount" anywhere in either document (searching code not text).
I'm using 4.0.13, why the hell can't I find that string? Is the file in another directory?
__________________
Wicked shirts, and other assorted mayhem. www.MadRagz.com ----- X-Cart Gold v 4.0.13 |
|||||||||
#26
|
|||||||
|
|||||||
OK, i'm looking at a vanilla, XC 4.0.13 install.
1. Goto skin1/customer/main/product.tpl 2. Look at lines 92-96, for the code in my post above (or, try searching code for '<SELECT id="product_avail" ' ) 3. Replace that code with the code from my post above. Should work no probs, - i've just replicated again to test i'm not going mad. If you still don't have any luck, PM me or post your tpl here.. Cheers,
__________________
X-Cart 4.0.17 ezUpsell PHP 4.4.1 MySQL 4.0.25-standard Apache 1.3.34 Linux |
|||||||
#27
|
|||||||||
|
|||||||||
I tried this code because I too prefer the input field as oppose to the drop down. The problem I'm having is some of my products have variants and if that product is out of stock customers are still able to order the out of stock variant, which should not be since I have that option disable in general settings. Anyone have this problem or better yet a fix.
Thanks
__________________
X-Cart pro v4.0.17 X-Cart pro v4.1.6 X-Cart pro v4.2 |
|||||||||
#28
|
|||||||
|
|||||||
Nothing to do with this fix in 4.0.14, is it?
Quote:
__________________
X-Cart 4.0.17 ezUpsell PHP 4.4.1 MySQL 4.0.25-standard Apache 1.3.34 Linux |
|||||||
#29
|
|||||||||
|
|||||||||
Quote:
If someone could assist me in getting the input field to work on the detail page the way it works on the shopping cart page it would be greatly appreciated.
__________________
X-Cart pro v4.0.17 X-Cart pro v4.1.6 X-Cart pro v4.2 |
|||||||||
#30
|
|||||||
|
|||||||
Any updates to this mod for 4.0.14? Obviously ensuring that we have in stock what we sell is vital
Mocara.
__________________
4.0.15 Linux |
|||||||
|
|||
X-Cart forums © 2001-2020
|