im sure that this is something simple and probably already posted but i can not find it.
1. i want to replace the "add to cart' text with a cart image.
in my custom node i have
<?php print $node->content['add_to_cart']["#value"] ?>
how do i replace this with an image?
2. is it possible when one product is already in cart to replace the 'add to cart' text with something like 'already in cart' link that will point to the cart view?
thank you very much





You can search d.o for several different examples on how to turn buttons into images, but overriding theme elements will always require some PHP somewhere.

Joined: 02/03/2008