News:

Looking for documentation? Take a look on our wiki

Main Menu

how to place a image on add to cart text?

Started by diogodac, March 23, 2013, 19:36:42 PM

Previous topic - Next topic

diogodac

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

K&K media production

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