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

Add to Cart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-19-2004, 12:47 PM
 
longhorn180 longhorn180 is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Richmond, Virginia
Posts: 187
 

Default Add to Cart

I'm using version 3.5.10. I have disabled the buy now button and would like to put an add to cart button in it's place. I thought I was slick and I could just copy and paste the code from the product.tpl to the products.tpl, but that did'nt work. The button showed up, but it did'nt add anything to the cart. Does anyone know the proper way to do this.?
Reply With Quote
  #2  
Old 08-20-2004, 10:46 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

edit customer/main/buy_now.tpl

find:

Code:
{include file="buttons/buy_now.tpl" style="button"}

change to:

Code:
{include file="buttons/add_to_cart.tpl" style="button"}

And re-enable buy now buttons in products.tpl or products_t.tpl
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 08-21-2004, 04:14 AM
 
longhorn180 longhorn180 is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Richmond, Virginia
Posts: 187
 

Default

It would seem that logic eluded me on this one, I cant believe I did'nt think of that. Thanks Boomer, that's exactly what I needed.
Reply With Quote
  #4  
Old 08-21-2004, 06:20 PM
 
adubas adubas is offline
 

Advanced Member
  
Join Date: Aug 2004
Posts: 71
 

Default

is there a way to have a continue shopping button? I dont want customer click add to cart and only have the option of checking out? I applied the above code in 4.0.2 and it worked
Reply With Quote
  #5  
Old 08-21-2004, 06:55 PM
 
longhorn180 longhorn180 is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Richmond, Virginia
Posts: 187
 

Default

Here is a link to a thread that will help you to add a continue shopping button. It's not perfect, but it works ok, I used it for a while.
http://forum.x-cart.com/viewtopic.php?t=1124&highlight=continue+shopping

You also have the option of not redirecting your customers to the cart in the general settings of your admin section.
Reply With Quote
  #6  
Old 09-03-2004, 04:03 PM
 
Local Hero Local Hero is offline
 

Senior Member
  
Join Date: May 2004
Location: UT
Posts: 121
 

Default

Is there a way to have a customer redirect to a static html page after they hit "add to cart" ? I disabled redirect customer to cart and it just sends them back to categories. Thx
__________________
X-Cart version 4.4.5
X-Cart version 5.3.2.8
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 01:55 PM.

   

 
X-Cart forums © 2001-2020