| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Product listing with "add to cart" functionality | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Ability to make product listings with option to add to cart instead of making the customer click to product details before adding to their cart:
Code:
Thank Josh for such luvely template editing! kudos! ![]() |
|||||||||
#2
|
|||||||
|
|||||||
![]() Hi
At the risk of sounding like an idiot, where exactly do we put that code? Thanks Amanda |
|||||||
#4
|
|||||||
|
|||||||
![]() Ummm
I am having a bit of a problem with it... I am using the latest version x-cart.com and here is what I have changed in the file you said... {* $Id: featured.tpl,v 1.13 2002/05/20 06:55:20 lucky Exp $ *} {capture name=dialog} {if $f_products ne ""} {include file="customer/main/products.tpl" products=$f_products} {else} {$lng.txt_no_featured} {/if} {/capture} {include file="dialog.tpl" title=$lng.lbl_featured_products content=$smarty.capture.dialog extra="width=100%"} {* ADD TO CART by Josh Sowin | petsupplyonline.com *} <form name=orderform_{%product.index%} method=post action="cart.php?mode=add"> <input type=hidden name=amount value=1> <input type=hidden name=mode value=add> <input type=hidden name=productid value="{$products[product].productid}"> <input type=hidden name=cat value="{$smarty.get.cat}"> <input type=hidden name=page value="{$smarty.get.page}"> <a href="javascript: document.orderform_{%product.index%}.submit()"> {include file="buttons/add_to_cart.tpl"}</a> </form> But that didn't seem to work.... Thanks for your help. Amanda |
|||||||
#5
|
|||||||
|
|||||||
![]() I'm running v3.1
Just trying out different places and found that if you add Josh's code to customer/main/products.tpl you will have an Add to Cart button on the product listing. And if you click the product to view details you have another Add to Cart button. |
|||||||
#6
|
|||||||
|
|||||||
![]() Thanks for that, got it working now
![]() |
|||||||
#7
|
|||||||
|
|||||||
![]() Ok, now I have sorted that, any idea's on having a 'wish list' button on the same page???
Thanks again guys... Amanda |
|||||||
|
|||
X-Cart forums © 2001-2020
|