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 |
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:
{* $Id: products.tpl,v 1.16 2002/09/25 10:12:05 zorg Exp $ *} |
Ooops ..just noticed a [/i] in the 2nd line of bold code....remove it ..
|
Presumeably the morinfo.tpl is a button template that you have created?
Will try this - thanks. |
yep it is ..you can just ignore it
|
Perfect - work a treat
cheers |
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 |
In Stock?
You should check to see if it is in stock before displaying the Add to Cart button.
|
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? |
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. :lol:
|
All times are GMT -8. The time now is 04:51 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.