I searched ubercart configuration but didn't find anything to change the button of add to cart. How can I change the "add to cart" button to an image? Can this also be done with "update cart" button, "checkout" button and others?
Thu, 02/14/2008 - 11:59
Re: Creating Image Buttons
You can do this with CSS:
.form-submit {
background-image: url(images/koolpik.png);
}Firebug is pretty much indispensable for doing this sort of thing.
Re: Creating Image Buttons
Drupal doesn't handle image inputs very well, so this would require significant changes to the form building function. I did find a post on drupal.org that might point you in the right direction, though: http://drupal.org/node/62647.
However, image support was added to the FormAPI in Drupal 6, so you can just use a form_alter when we have a version for it.



