Downloads
From business point of view, shopkeepers basically want their clients to:
- Find a product
- Add the pruduct(s) to the cart
- Proceed to checkout and pay
What I was missing in the Ubercart / Drupal "out of the box" installation, was more attention to the selected "Add to cart" and "Checkout" -buttons. I found some carts, including the big boys, had already succeed in this by using beautiful orange colored buttons to get their clients to focus their attention to shopping, not just browsing. That's good for the business.
From customer point of view the motive of this button styling is to help clients to focus on easy shopping and to show them an easy path to actually pay the products.
A solution
After the help of many great guys here in Ubercart community, we finally ended up to a code snippet and background images by t3R0 to reach the goal:
#edit-checkout, #edit-continue,
div.add_to_cart input[type=submit],
input#edit-checkout,
#uc-paypal-wps-form #edit-submit {
color: #fff;
background: #7E0303 url('bgrad.png') repeat-x top center;
border: 1px solid #ff2400;
font-weight: bold;
cursor: pointer;
}
#edit-checkout:hover, #edit-continue:hover,
div.add_to_cart input[type=submit]:hover,
input#edit-checkout:hover,
#uc-paypal-wps-form #edit-submit:hover {
background: #7E0303 url('bgrad_hover.png') repeat-x top center;
}
How to use this snippet?
- Add the code snippet above to the end of the "style.css" of your theme in use
- Copy the attached "bgrad.png" and "bgrad_hover.png" -files to the same directory of your style.css
Hopefully this is useful for some of you guys, enjoy.
PS. Some background discussion here and here.
PS. This snippet has been reported working well with FireFox2, Galeon2, MSIE7 and Opera 9 (with MSIE6 I'm not sure but if someone has a fix, appreciated!)
EDIT: removed link to "demo-site" (not relevant any more)
| Preview | Attachment | Size |
|---|---|---|
![]() | bgrad_hover.png | 242 bytes |
![]() | bgrad.png | 249 bytes |
![]() | screenshot-checkout-button.png | 3.62 KB |








We've done something similar on a couple of our sites. This looks like a good solution and it's always good that you guys take the time to post it here and make it avalable to everyone