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

Orange buttons for expected action

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-21-2008, 09:37 AM
 
Motive Motive is offline
 

Member
  
Join Date: Jan 2008
Posts: 20
 

Default Orange buttons for expected action

On any given page, especially check out pages, I want the most important button to be big and Orange.

It was fairly easy to replace the "Add to cart" button, but very confusing as how to replace the "Checkout" buttons and other "move forward" buttons in the checkout process (without changing all other buttons).

See what I mean at http://www.brainwavestoys.com

Open to advice here. I can hack php and some CSS, but I'll buy a button package (do these exist) or pay someone to do this if necessary.

Thoughts?


-Michael
Brainwaves Educational Toys
X-Cart 4.1.9 at EWD Hosting
__________________
Brainwaves Educational Toys
Live X-Cart 4.1.9
Linux 2.6.9, Apache 1.3.41, PHP 4.4.8
Upgraded from X-Cart 4.0.13
Reply With Quote
  #2  
Old 05-21-2008, 10:03 AM
 
balinor balinor is offline
 

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

Default Re: Orange buttons for expected action

Easiest way is to create a new button template (in the buttons/ folder) and call that for all the big call to action type of buttons.

Moving to Template Editing.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-24-2008, 05:42 AM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: Orange buttons for expected action

Hi,

I am trying to do the same to the "Add To Cart" button, add_to_cart.tpl . It's really bland right now. In languages I changed the wording from Add to Cart to Buy it Now, and I would like to make only this particular button font bold. The template code is:

{include file="buttons/button.tpl" button_title=$lng.lbl_add_to_cart href=$href title=$title style=$style}

Is there something I can add right here just to make this one font on this button bold? Maybe {font-weight: bold} ? I think it will help it a lot.

Thanks so much!

Vera
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
  #4  
Old 05-24-2008, 11:07 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Orange buttons for expected action

Hi Vera -

I took a look at the "Add to Cart" button in the demo X-CART store - and it is set up to be bold text. So, maybe you have a mod to make it plain text along the way somewhere?

If you have not changed the css class from the default - it is using Button - which in the default is defined:
font.Button {skin1.css (line 712)
color:#490101;
font-family:Verdana,Arial,Helvetica,Sans-serif;
font-size:11px;
font-weight:bold;
text-decoration:none;
}

You can check your skin1.css to see the class that is defining your button. If you did get rid of the bold for a reason (probably many buttons share this class) - there are ways to edit button.tpl for a specific button - or, it may be easiest to do as Balinor suggested and make your own button.tpl. You can post or pm a link if you want more information about why your style is plain text there.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #5  
Old 05-24-2008, 02:12 PM
 
Acquamarina Acquamarina is offline
 

X-Adept
  
Join Date: Aug 2006
Location: USA
Posts: 811
 

Default Re: Orange buttons for expected action

Hi, gb2world,

The site is highly customized but not by me. I looked at the skin1.css but could not find anything relating to buttons... I am hoping that it is ok to add the statement on the button.tpl for that button only (add_to_cart.tpl) so only that button is bold. All the others are fine for now.

Changing the skin1.css will change all the buttons on the site. I think I may have to create a new class like add_to_cart and then define the font for it. For me it would just be easy if I could just add the the bold command on the template for that button alone as I am not good at CSS as you can probably tell

Thanks very much!
__________________
Vera B
4.4.5
CFLSystems.com mods, Kosmos eBay Integration, Feed Manager Pro, custom mods, BCSEngineering Mods, CDSEO PRO
Hosting by EWDHosting - The best home for your x-cart.
Reply With Quote
  #6  
Old 05-24-2008, 02:27 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Orange buttons for expected action

I'd need to see a link to help. You can pm if you do not want to post it.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #7  
Old 05-30-2008, 07:51 AM
 
Motive Motive is offline
 

Member
  
Join Date: Jan 2008
Posts: 20
 

Thumbs up Re: Orange buttons for expected action

Thanks for the advice. I ended up swiping the orange buttons from the default x-cart installation and brought them over to my live site. To create an orange "Big" button at checkout, I had to go into the Fast Lane Checkout folders under Skin1/Modules to make my changes.

Thanks again.

-Michael
__________________
Brainwaves Educational Toys
Live X-Cart 4.1.9
Linux 2.6.9, Apache 1.3.41, PHP 4.4.8
Upgraded from X-Cart 4.0.13
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 05:16 AM.

   

 
X-Cart forums © 2001-2020