| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Change QTY drop down to text field | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() I found this post http://forum.x-cart.com/viewtopic.php?t=3117 about changing the qty field from a drop down to a text field. However, when I look in the products.tpl the information is not there.
I'm using 4.1.8 version, does any one know where I can change this?
__________________
Cyber Matrix ------------------- X-Cart 4.1.9 |
|||||||||
#2
|
|||||||
|
|||||||
![]() Yes in skin1/customers/main/product.tpl on line 143:
Replace: Code:
With: Code:
|
|||||||
#3
|
|||||||
|
|||||||
![]() You should probably include some JavaScript to validate the quantity unless quantity isn't an issue or X-Cart does it in the next step.
__________________
4.1.8 |
|||||||
#4
|
|||||||
|
|||||||
![]() x-cart validates the quantity in the cart/checkout
|
|||||||
#5
|
|||||||||
|
|||||||||
![]() This works great on the product.tpl but what about for the products.tpl, what would I change there to get rid of the drop down box and replace with a text box?
|
|||||||||
#6
|
|||||||||
|
|||||||||
![]() When you have the Buy Now option active from the products list it gives you the drop down quantity box and the ability to add to your cart without viewing the complete details of the product.
Does anyone have any idea how to change that drop down quantity box in the products.tpl to a text box? I have looked at this over and over and it does not work the same as product.tpl. I beleive it is in the buy now template but I can not see what would need to change in there to make it a text box. Any ideas? Mike |
|||||||||
#7
|
|||||||
|
|||||||
![]() In Admin. > General settings > Product options options place a check in the box for " A customer using the "Buy now" button to order a product with product options must be redirected to the product details:"
Christine Quote:
__________________
______________ version 4.1.9 Gold |
|||||||
#8
|
|||||||||
|
|||||||||
![]() I do not want to force a customer to the details page. More clicks means less sales and more aggrivation for the buyer. All I want to do is switch the drop down box to a text box in the products lists.
Thank you for the idea though. ![]() |
|||||||||
#9
|
|||||||||
|
|||||||||
![]() In the buy now template
<input type="text" style="vertical-align: middle;" name="amount" size="3" maxlength="4" value="{$product.appearance.min_quantity}" /> {* <select name="amount"> {section name=quantity loop=$product.appearance.loop_quantity start=$product.appearance.min_quantity} <option value="{%quantity.index%}"{if $smarty.get.quantity eq %quantity.index%} selected="selected"{/if}>{%quantity.index%}</option> {/section} </select> *}
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#10
|
|||||||||
|
|||||||||
![]() This is great Steve, but isn't there something that should be pulled out?
Mike |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|