K2store BUY NOW button does not show as a button but an imag

Change your online store into modern look with myStore eCommerce VirtueMart Joomla template - discussion forum.
GK User
Sun Jan 13, 2013 7:46 am
My K2store site is showing all my buy buttons as images instead of buttons, i dont know if this occured after I updated to Joomla! 2.5.8 or after I update to K2store 3.0.1.

I had to add an image .gif for the buy now button, or else a broken picture would show up.

You can see the example here:

http://signetinstruments.com/signet-accessories/miscellaneous/3-0250.html
Please help.
User avatar
Junior Boarder

GK User
Mon Jan 14, 2013 8:13 am
Ok I fixed the issue, it was pretty simple too:

After updating to K2store 3 or updating Joomla 2.8 i found my add to cart button had been switched to an image.

I had to go an edit addtocart.php found in :/templates/gk_mystore/html/com_k2store/mycart
and change one word:

switch ($this->params->get('cartbutton', 'image'))


to ($this->params->get('cartbutton', 'button'))



Final code

switch ($this->params->get('cartbutton', 'button'))
{
case "button":
?>
<input onclick="<?php echo $onclick; ?>" value="<?php echo JText::_('Add to Cart'); ?>" type="button" class="addcart button" />
<?php
break;
case "image":
default:
$image = JURI::root(true).'/components/com_k2store/images/add-to-cart.gif';
?>
<img class='addcart' src='<?php echo $image; ?>' alt='<?php echo JText::_('Add to Cart'); ?>' onclick="<?php echo $onclick; ?>" />
<?php
break;
User avatar
Junior Boarder


cron