How do I change the proceed to checkout button?

How do I replace the proceed to add to cart CSS button with a larger image based button?

1 answer

congtq 0.00 $tone July 14, 2010
Public

Hi.
Pls read this thread http://www.joomlart.com/forums/showt…l=1#post183762 to know where templates are.
Then open template files which you want to change, search "button" tag and replace with image.
Exp:
Open file app\design\frontend\default\jm_larixtemplate\cata log\product\list.phtml, search code

Code:

<button type="button" title="<?php echo $this->__('Add to Cart') ?>" class="button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span><?php echo $this->__('Add to Cart') ?></span></span></button>

and replace with

Code:

<img src="path_to_image" title="<?php echo $this->__('Add to Cart') ?>" alt="<?php echo $this->__('Add to Cart') ?>" class="img btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')" />
#1

This question is now closed

Written By

Comments