Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Changing Buttons

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 03-07-2005, 06:33 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

You lost me Kirsten, your buy now buttons don't bring you to the cart?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-07-2005, 06:44 PM
 
kirsten kirsten is offline
 

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

Default

lol sorry but when you hit the buy now button it takes you into the checkout which i do not want
I want them simply to be added to the cart like the add to cart buttons do.
I have added some of Jon's products ie the ezcheckout and eziupsell ezirecommends maybe that is why it now defaults directly to the checkout

Do you understand what I mean or am I still speaking like a totally confused woman who has no html and coding skills????

Kirsten
__________________
Kirsten
X_Cart Gold Version 4.0.11
www.silverimports.com.au
www.diamondimports.com.au
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:17 AM.

   

 
X-Cart forums © 2001-2020