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

add to cart directly

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-08-2005, 08:12 AM
 
kalmaster kalmaster is offline
 

Advanced Member
  
Join Date: Aug 2004
Posts: 44
 

Default add to cart directly

Does anyone know how to put a "Add to cart" for the product listings, similar to what computergeeks.com on their listings
check out here
http://www.geeks.com/products.asp?cat=CDR

Thank you =)[/quote]
__________________
X-Cart Gold edition
X-Cart version 4.0.4 [Unix]
Reply With Quote
  #2  
Old 07-08-2005, 08:24 AM
 
balinor balinor is offline
 

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

Default

Yea, just use the 'buy now' button and change it to 'add to cart'
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-08-2005, 10:25 AM
 
kalmaster kalmaster is offline
 

Advanced Member
  
Join Date: Aug 2004
Posts: 44
 

Default

yes i know that. But what i'm talking about is having it when the multiple products are listed, not in the detailed section.
__________________
X-Cart Gold edition
X-Cart version 4.0.4 [Unix]
Reply With Quote
  #4  
Old 07-08-2005, 10:27 AM
 
balinor balinor is offline
 

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

Default

That is what I'm saying...that is where the buy now button appears if you turn it on in General Settings. You could just change the text to 'add to cart'.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 07-08-2005, 10:38 AM
 
kalmaster kalmaster is offline
 

Advanced Member
  
Join Date: Aug 2004
Posts: 44
 

Default

ohhh i see, thank you!
I think i know why i don't see it, though because it is already enabled in my appearance options.
I don't see it because it's the fashion mosaic template i'm using.
Does anyone know the code since it was perhaps removed from this template?

Thank you
__________________
X-Cart Gold edition
X-Cart version 4.0.4 [Unix]
Reply With Quote
  #6  
Old 07-08-2005, 10:39 AM
 
balinor balinor is offline
 

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

Default

Check products.tpl and products_t.tpl and make sure the buy now button isn't commented out. May have a comment in there like {**** remove this for buy now button ****} or something like that.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 07-08-2005, 11:33 AM
 
kalmaster kalmaster is offline
 

Advanced Member
  
Join Date: Aug 2004
Posts: 44
 

Default

that worked!
thank you so much! it was in the products_t.tpl
Code:
{*** Uncomment it if you need 'Buy Now' button ***} {if $usertype eq "C" and $config.Appearance.buynow_button_enabled eq "Y"} {include file="customer/main/buy_now.tpl" product=$products[product]} {/if} Uncomment it if you need 'Buy Now' button ***}
__________________
X-Cart Gold edition
X-Cart version 4.0.4 [Unix]
Reply With Quote
  #8  
Old 07-08-2005, 11:56 AM
 
kalmaster kalmaster is offline
 

Advanced Member
  
Join Date: Aug 2004
Posts: 44
 

Default

One more question...
How do i change the text from Buy Now to Add to Cart?
I'm looking in the templates
but all it says is in the Buy_Now.tpl is:
Code:
{include file="buttons/button.tpl" button_title=$lng.lbl_buy_now href=$href title=$title style=$style font="MarkedButton"}
Which i have absolutely have no idea, what to do.
how would i change the variable $lng.lbl_buy_now?

Thank you!
__________________
X-Cart Gold edition
X-Cart version 4.0.4 [Unix]
Reply With Quote
  #9  
Old 07-08-2005, 12:07 PM
 
balinor balinor is offline
 

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

Default

Easiest way it to just replace this:

lng.lbl_buy_now

with this

lng.lbl_add_to_cart
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 07-09-2005, 06:50 PM
 
kalmaster kalmaster is offline
 

Advanced Member
  
Join Date: Aug 2004
Posts: 44
 

Default

thank you
__________________
X-Cart Gold edition
X-Cart version 4.0.4 [Unix]
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 02:30 AM.

   

 
X-Cart forums © 2001-2020