| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Add to cart in Product list? | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() In my store, when a customer clicks a category, they are shown a list of products. How can I make it so that the price and a simple "add to cart" or buy it now button is beneath the product thumbnail? No quantity box or anything. Just a simple add to cart button.
Thank you in advance!
__________________
----------------------------------------------- X-Cart Gold 4.0.17 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Hi,
If you start with Webmaster mode, you will see which templates you need to edit. Then if you edit them in a decent ftp program you will see how to change the table structure round to lay the page out how you want. You also need to edit the buy_now template, but don't just remove the quantity box, you need to still pass the amount to the cart, assuming you want to make this 1 each time. That's the basics, needs a bit of html skills at least though.
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#3
|
|||||||
|
|||||||
![]() edit skin1/customer/main/products_t.tpl and remove or comment out where it says to "Uncomment if you need 'Buy Now' button"
if you dont want the quantitfy dropdown box then edit buy_now.tpl and comment out the <SELECT ... </SELECT> |
|||||||
#4
|
|||||||
|
|||||||
![]() Oh, wow, that was super helpful! The only issue I'm finding is that my "buy now" buttons are aligned to the left and are about 3 or 4 line breaks below the product thumb. I've been trying to fiddle with this code
Code:
but nothing seems to do much good. Am I even on the right track?
__________________
----------------------------------------------- X-Cart Gold 4.0.17 |
|||||||
#5
|
|||||||
|
|||||||
![]() Is there anyone that can help me alaign the Buy Now button?
__________________
----------------------------------------------- X-Cart Gold 4.0.17 |
|||||||
#6
|
|||||||
|
|||||||
![]() You need to edit buy_now.tpl and center align the table that contains the button as well as the cell that contains the button on product.tpl
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#7
|
|||||||
|
|||||||
![]() Quote:
If I comment out the "<select>" portion of the code, items no longer add to the cart. When I un-comment them, they add again. I guess the problem is that it isn't adding at least 1 item of the product to the cart...? Heres what I was doing on that front-- Code:
suggestions?
__________________
----------------------------------------------- X-Cart Gold 4.0.17 |
|||||||
#8
|
|||||||
|
|||||||
![]() Well you have to put something in to tell it how many or it won't work
![]() <INPUT type="hidden" name="amount" value="1">
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#9
|
|||||||
|
|||||||
![]() Quote:
That is there. That I didn't comment out. Should I maybe move it to a different place? Here's my whole code Code:
Thanks for the help everyone. I really do appreciate it
__________________
----------------------------------------------- X-Cart Gold 4.0.17 |
|||||||
#10
|
|||||||
|
|||||||
![]() Quote:
Balinor, are you sure it's product.tpl? product.tpl is for the details page of a product
__________________
----------------------------------------------- X-Cart Gold 4.0.17 |
|||||||
|
|||
X-Cart forums © 2001-2020
|