Cnote Posted April 13, 2009 Share Posted April 13, 2009 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? 0 Quote Link to comment Share on other sites More sharing options...
Hosteris Posted April 21, 2009 Share Posted April 21, 2009 (edited) 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 Edited April 21, 2009 by Hosteris incorrect file extension in viewcart.tpl 0 Quote Link to comment Share on other sites More sharing options...
NetM Posted April 22, 2009 Share Posted April 22, 2009 I tryied but nothing... 0 Quote Link to comment Share on other sites More sharing options...
Cnote Posted April 24, 2009 Author Share Posted April 24, 2009 Didn't work for me either. 0 Quote Link to comment Share on other sites More sharing options...
Cnote Posted April 24, 2009 Author Share Posted April 24, 2009 Ahh, but on the next page after clicking "check out" the "complete order" button has changed color! 0 Quote Link to comment Share on other sites More sharing options...
Cnote Posted April 24, 2009 Author Share Posted April 24, 2009 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} /> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.