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

Getting rid of the buy it now button

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-23-2012, 09:34 AM
 
GreatLakesVacuum GreatLakesVacuum is offline
 

eXpert
  
Join Date: Jan 2009
Posts: 286
 

Default Getting rid of the buy it now button

Is there a simple way to substitute the "Add to cart" button onto the products list page instead of the buy it now button?

We like the look of it better and really don't need the buy it now functionality.
__________________
X-Cart 4.5.4 Gold (Live Business Site)
X-Cart 5.1.9 Business (In Development Now)
Reply With Quote
  #2  
Old 08-23-2012, 11:10 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Getting rid of the buy it now button

You can just modify the buy now language variable to say whatever you want. Also if you don't have the setting for "redirect to cart if product has option..." checked then cart will add to cart directly from products list pages
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 08-23-2012, 11:24 AM
 
GreatLakesVacuum GreatLakesVacuum is offline
 

eXpert
  
Join Date: Jan 2009
Posts: 286
 

Default Re: Getting rid of the buy it now button

Steve,

Good point on the functionality... for some reason I thought it took you right to the checkout page, but it does not! Very good.

What do you mean by modify the language variable? The button has no text on it at all? (where as it says Add to Cart on that button)
__________________
X-Cart 4.5.4 Gold (Live Business Site)
X-Cart 5.1.9 Business (In Development Now)
Reply With Quote
  #4  
Old 08-23-2012, 12:45 PM
 
GreatLakesVacuum GreatLakesVacuum is offline
 

eXpert
  
Join Date: Jan 2009
Posts: 286
 

Default Re: Getting rid of the buy it now button

Ok, so I ended up figuring out that the buy_now.tpl file calls a different version of the button it is in matrix view...so I changed that to be the same, and still call buy_now_list...

But it half worked, my text is there (you have to highlight it to see it) but the button did not resize to fit it?

Did I miss something? (obviously yes)

http://www.greatlakesvacuum.com/Vacuum-Oil/
__________________
X-Cart 4.5.4 Gold (Live Business Site)
X-Cart 5.1.9 Business (In Development Now)
Reply With Quote
  #5  
Old 08-23-2012, 12:57 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Getting rid of the buy it now button

This is just how that skin works. Modify the css
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 08-24-2012, 04:52 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Getting rid of the buy it now button

Quote:
Originally Posted by GreatLakesVacuum
What do you mean by modify the language variable? The button has no text on it at all? (where as it says Add to Cart on that button)
Steve is just telling you to simply change the label for Buy it Now to Add to Cart. No need to edit the templates. Just go to Content>Languages and then select your language from the drop down. In the filter box, type Buy it now or whatever the text is that you want to change.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #7  
Old 08-24-2012, 09:14 AM
 
GreatLakesVacuum GreatLakesVacuum is offline
 

eXpert
  
Join Date: Jan 2009
Posts: 286
 

Default Re: Getting rid of the buy it now button

I think you guys misunderstood me.

The buy it now button doesn't even have text on it... it is a little square with a shopping cart image on it.

The Add to cart button is the same thing but with text next to it and the button is bigger (to accomodate the text)

So there is nothing to change in the language settings. I made the edit and got the add to cart to show up on the categories pages but i dont know how to make the blue button bigger.
__________________
X-Cart 4.5.4 Gold (Live Business Site)
X-Cart 5.1.9 Business (In Development Now)
Reply With Quote
  #8  
Old 08-24-2012, 09:23 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Getting rid of the buy it now button

Post #5 above. You need to modify the css classes for this button - there is width set for it
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
GreatLakesVacuum (08-24-2012)
  #9  
Old 08-24-2012, 09:27 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Getting rid of the buy it now button

Man you have bigger problems. If you visit a product page like this one http://www.greatlakesvacuum.com/GLV-F-Lube-Vacuum-Pump-Oil-5-Gallons.html and shrink the browser a little to accomadate a small monitor, the description and add to cart are off the screen. Well that is fine, but only if a scroll bar appears that allows you to scroll over to it. In his case it leaves a user with a small monitor or with a small window open no way to get to the button. Imagine what it does on a tablet or phone.

Back on topic, Steve is then also correct in telling you to edit the css.
You have this style definition in your css:
button.add-to-cart-button {
width: 33px !important;
}

Removing this will allow the button to fit the text.

Edit: Steve, you are too fast...
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
GreatLakesVacuum (08-24-2012)
  #10  
Old 08-24-2012, 09:33 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Getting rid of the buy it now button

Not only small monitor - it is a problem on big monitors as well as the vertical scroll is missing so anything that falls below the page fold is hidden
__________________
Steve Stoyanov
CFLSystems.com
Web Development
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 11:39 PM.

   

 
X-Cart forums © 2001-2020