Jump to content

Changing button color


Cnote

Recommended Posts

Is it possible to change the button color in the cart.

 

What I want to do is have the "empty cart" button to be red, the continue shoppin buttong to be yellow, and the "check out" button to be green.

 

Is this possible?

Link to comment
Share on other sites

Hi,

 

yes it´s possible, just add style to submit buttons, eg.

(in viewcart.tpl)

<input type="submit" style="background-color:#cc0000; color: #ffffff;" value="{$LANG.completeorder}"{if $cartitems==0} disabled{/if} onclick="this.value='{$LANG.pleasewait}'" />

 

just add style="background-color:#cc0000; color: #ffffff;" and use your prefered background and text colors :-P

Edited by Hosteris
incorrect file extension in viewcart.tpl
Link to comment
Share on other sites

I got it.

 

It's on a different line in that file. Thanks for pointing me in the right general direction.

 

here's what I did. Though the buttons aren't as pretty anymore with the nice rounded edges.

 

<input type="button" style="background-color:#ff0000; color: #ffffff;" value="{$LANG.emptycart}" onclick="emptyCart();return false" /><br /><input type="button" style="background-color:#ffff00; color: #000000;" value="{$LANG.continueshopping}" onclick="window.location='cart.php'" /><br /><input type="button"  style="background-color:#00ff00; color: #000000;" value="{$LANG.checkout}" STYLE="background-color:00ff00" onclick="window.location='cart.php?a=checkout'"{if $cartitems==0} disabled{/if} />

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated