VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: diogodac on March 23, 2013, 19:36:42 PM

Title: how to place a image on add to cart text?
Post by: diogodac on March 23, 2013, 19:36:42 PM
Hello, I want to placa a image instead of the text add to cart button..

I found this code
<input type="submit" name="addtocart"  class="addtocart-button" value="<?php echo JText::_('COM_VIRTUEMART_CART_ADD_TO'?>" title="<?php echo JText::_('COM_VIRTUEMART_CART_ADD_TO'?>" />

where and should i change it?

thanks
Title: Re: how to place a image on add to cart text?
Post by: K&K media production on March 24, 2013, 12:43:14 PM
delete the value

<?php echo JText::_('COM_VIRTUEMART_CART_ADD_TO') ?>

and  then style the butten with css and your own background image

but make the changes with template overrides

http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system