| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Add to cart button on product listing | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Add to cart button on product listing
Just wanting to do what it says - in the main product list, I would like an add to cart button rather than having to click on see details before doing this.
Has anyone done this already before I try and figure it out? Cheers
__________________
ex x-cart guru |
|||||||
#2
|
|||||||||
|
|||||||||
FD
We did ours this way. Here is the code for our products.tpl (skin1/customer/main). As our products show in 2 columns, 2 rows, so you may have to juggle around with the placement of the code (form/endform>) to get it to work. Good Luck LeeD Code:
__________________
Why a mouse when it spins ...... X-Cart Gunslingers - For Hire!! http://forum.x-cart.com/viewtopic.php?t=8615 |
|||||||||
#3
|
|||||||||
|
|||||||||
Ooops ..just noticed a [/i] in the 2nd line of bold code....remove it ..
__________________
Why a mouse when it spins ...... X-Cart Gunslingers - For Hire!! http://forum.x-cart.com/viewtopic.php?t=8615 |
|||||||||
#4
|
|||||||
|
|||||||
Presumeably the morinfo.tpl is a button template that you have created?
Will try this - thanks.
__________________
ex x-cart guru |
|||||||
#5
|
|||||||||
|
|||||||||
yep it is ..you can just ignore it
__________________
Why a mouse when it spins ...... X-Cart Gunslingers - For Hire!! http://forum.x-cart.com/viewtopic.php?t=8615 |
|||||||||
#6
|
|||||||
|
|||||||
Perfect - work a treat
cheers
__________________
ex x-cart guru |
|||||||
#7
|
|||||||
|
|||||||
Okay I've installed this script to ad item to cart from product listing and it works like a charm.
But one small problem. I also need to have the color selections display on the product listing page with the ad item to cart button. Thanks John |
|||||||
#8
|
|||||||
|
|||||||
In Stock?
You should check to see if it is in stock before displaying the Add to Cart button.
|
|||||||
#9
|
|||||||
|
|||||||
Actually you see its the code itself. I think it needs to be modified to be able to do more than just display the ad buttom it needs to display the choice of which color.
Do you understand? |
|||||||
#10
|
|||||||
|
|||||||
LeeD, Just wanted to say thanks, I was looking for help with something else, came across this, - a little cutting and pasting, and Wa La, it works like a charm.
__________________
Cristy |
|||||||
|
|||
X-Cart forums © 2001-2020
|