| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
"Buy Now" button without the "Quantity" | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
"Buy Now" button without the "Quantity"
I would like to remove the "Quantity" drop down list. The purpose is to have users click on the "Buy Now" button with the default value of "1" to pass on to the shopping cart. How can that be done?
Searched for posts on this, haven't found any answers. Please help. Art
__________________
X-Cart v. 4.0.12 Gold Linux, Apache, MySQL, PHP 4 |
|||||||
#2
|
|||||||||
|
|||||||||
You can edit out the quantity areas of your templates and instead use:
<input type="hidden" name="amount" value="1"> |
|||||||||
#3
|
|||||||
|
|||||||
RE: "Buy Now" button without the "Quantity&qu
I got it. Thanks. This is the code from "customer/main/buy_now.tpl".
Art Code:
__________________
X-Cart v. 4.0.12 Gold Linux, Apache, MySQL, PHP 4 |
|||||||
#4
|
|||||||||
|
|||||||||
If you paste your entire ORIGINAL template I'll paste you back a version to use.
|
|||||||||
#5
|
|||||||
|
|||||||
RE: "Buy Now" button without the "Quantity&qu
Okay, here it is "buy_now.tpl:
Code:
__________________
X-Cart v. 4.0.12 Gold Linux, Apache, MySQL, PHP 4 |
|||||||
#6
|
|||||||||
|
|||||||||
Try this:
Code:
|
|||||||||
#7
|
|||||||
|
|||||||
RE: "Buy Now" button without the "Quantity&qu
Thank you. That really helped.
Art
__________________
X-Cart v. 4.0.12 Gold Linux, Apache, MySQL, PHP 4 |
|||||||
#8
|
|||||||
|
|||||||
I would also like to get rid of the drop down quantity field but my code is different than the above, I tried to use the code jon gave but it did not work on x cart version, because when you clicked on buy now it directed you back to the xcart entry page ?
Here is my /customer/main/buy_now.tpl , can anyone please tell me what to take out to get rid of the drop down quantity and have a default of one item placed into the cart Quote:
Thanx Kirsten
__________________
Kirsten X_Cart Gold Version 4.0.11 www.silverimports.com.au www.diamondimports.com.au |
|||||||
#9
|
|||||||||
|
|||||||||
Hi Kirstin, I'm still awaiting your purchase of ezCheckout/ezUpsell
Try this code. Be sure to back first as it's hard for me without testing the code. Code:
|
|||||||||
#10
|
|||||||
|
|||||||
Thanx Jon that worked!!!
Just one small thing there is now a large break where the quantity drop down box used to be and the buy now button is not centered How can i adjust this?? www.silverimports.com.au/shop/home.php Thanx kirsten Ps I will be contacting you regarding the ezupsell and ezzcheckout very soon, I just want to get all the small changes done here first
__________________
Kirsten X_Cart Gold Version 4.0.11 www.silverimports.com.au www.diamondimports.com.au |
|||||||
|
|||
X-Cart forums © 2001-2020
|