View Single Post
  #1  
Old 03-07-2005, 03:57 PM
 
kirsten kirsten is offline
 

Senior Member
  
Join Date: Feb 2005
Location: Sydney, Australia
Posts: 104
 

Default Changing Buttons

Currently on my products.tpl & products_t.tpl I have buy now buttons showing with this code


Quote:
{if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"}
{include file="customer/main/buy_now.tpl" product=$products[product]}
{/if}

If a customer clicks on this button it pushes them straight to the checkout, I want to have an Add to cart button showing, the same as on my product.tpl as it does not send them to the checkout, the code on my product.tpl is

Quote:
{if $product.forsale ne "B"}
{include file="buttons/add_to_cart.tpl" style="button" href="javascript: if(FormValidation()) document.orderform.submit();"}

{if $login ne "" and $active_modules.Wishlist ne ""}
{include file="customer/add2wl.tpl"}
{/if}

Can I just replace the code for add to cart as shown above into my products.tpl & products_t.tpl and will this code work the same way on these tpls as it does on the product.tpl?

Thanx
Kirsten
__________________
Kirsten
X_Cart Gold Version 4.0.11
www.silverimports.com.au
www.diamondimports.com.au
Reply With Quote