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

Changing the colour of buttons

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-09-2006, 02:45 PM
 
cvs cvs is offline
 

Member
  
Join Date: Dec 2005
Location: Brisbane Australia
Posts: 25
 

Default Changing the colour of buttons

Hi There,

I want to change the colour of the buttons in X-Cart, buttons like "go", "buy now", and "Checkout".

Also for that matter, I am unable to change the text that appears in a button.

When I login to webmaster mode, and click on the button hoping to edit the text, it will only take me to the page where the button leads...

Thanks in advance.
__________________
Help us to help you, Help us help the community too!
http://www.cvsystems.com.au
X-Cart [ver 4.1.6]
Web Server [Apache/2.0.52 (CentOS)]
PHP [4.3.9]
O/S [Linux]
Reply With Quote
  #2  
Old 02-09-2006, 05:41 PM
 
balinor balinor is offline
 

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

Default

The buttons are all images, you can see which ones by looking at button.tpl in the buttons folder. As for the text, they are all language variables which you can change by clicking on 'Languages' in your admin area.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 02-10-2006, 09:09 AM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default CSS Buttons

Quote:
I don't know if this change has been made or not, but in my opinion buttons should not require 14 lines of code and 11 if statements.

Instead, just:

Code:
<input type="submit" name="submit" value="{$lng.lbl_langvar}" class="usecss">

Quoted from Jon, how can we make all the buttons CSS, do we just replace all the contents in buttons.tpl with:

<input type="submit" name="submit" value="{$lng.lbl_langvar}" class="usecss">
Reply With Quote
  #4  
Old 02-10-2006, 06:14 PM
 
vulcan-works vulcan-works is offline
 

Senior Member
  
Join Date: Feb 2004
Posts: 143
 

Default Re: CSS Buttons

Quote:
Originally Posted by snorocket
Quote:
I don't know if this change has been made or not, but in my opinion buttons should not require 14 lines of code and 11 if statements.

Instead, just:

Code:
<input type="submit" name="submit" value="{$lng.lbl_langvar}" class="usecss">

Quoted from Jon, how can we make all the buttons CSS, do we just replace all the contents in buttons.tpl with:

<input type="submit" name="submit" value="{$lng.lbl_langvar}" class="usecss">

i tryed changing the buttons into just regular form buttons but its a little more complicated than you would think... and no that woudent work
__________________
X-cart--4.7.12

vulcanworks.net
Reply With Quote
  #5  
Old 02-24-2006, 08:53 AM
  docpeyer's Avatar 
docpeyer docpeyer is offline
 

Member
  
Join Date: Oct 2005
Posts: 14
 

Default

This is something that I would love to do.... change the graphic buttons from the graphics to actual browser buttons. I've been searching for a thread that addresses this, but have not had any luck. Anybody?

Thanks,
Jeremy
__________________
LiteComm 2.1 [linux]
X-Cart 4.0.17 [linux]
Reply With Quote
  #6  
Old 02-24-2006, 10:49 AM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default Yea

I spent over 20+ hrs and figured it out. I'm going to offer a CSS Button Pack free with every X-Locator license,details in sig, and yea I know thw link is broken, I'll fix it soon as the new site will launch Monday featuring the CSS Button Pack with X-LOCv2.0. I still have a headache from X-Cart and my fingers hurt very much.
Reply With Quote
  #7  
Old 02-27-2006, 12:36 AM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

The button is made of 3 <td>:left, center, and right. I'd like to use the buttons.tpl, but depending of action have a different right image.

for add to cart I'll have a cart.gif, for checjout, another right.gif and so one.

How can this be accomplished?
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [unix]
Reply With Quote
  #8  
Old 02-27-2006, 03:44 AM
 
Lionel Lionel is offline
 

Senior Member
  
Join Date: Dec 2005
Posts: 199
 

Default

never mind. I figured it out.
__________________
X-Cart Gold 4.0.17 [unix]
X-Cart Gold 4.0.18 [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 03:29 PM.

   

 
X-Cart forums © 2001-2020