"Add to cart" button, possible to change html?

  • Posts: 97
  • Thank you received: 0
10 years 7 months ago #189357

-- HikaShop version -- : 2.3.5

In file quantity.php in my override file i find function for "add to cart" button:

echo $this->cart->displayButton(JText::_('TPL_VIBIGA_BUY_THIS_TEMP_NOW') . ' ','add',$this->params,$url,$this->ajax,'',$max,$min);

Is there a similiar function which give html like "<button></button>" or can i modified it? Because of shop layout i need some more content in this button which is not possible to place in a "value" from submit button.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 7 months ago #189358

Hello,
A solution can be to directly edit the code of the "displayButton" function via "administrator\components\com_hikashop\helpers\cart.php" which will require development skills.

Please Log in or Create an account to join the conversation.

  • Posts: 97
  • Thank you received: 0
10 years 7 months ago #189464

It's possible to override this file? I don't want to edit core files.

Please Log in or Create an account to join the conversation.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 7 months ago #189467

Hi,

Yes it is.
I explained the process for the Image Helper but it will be the same for the Cart Helper.
www.hikashop.com/forum/product-category-...atermark.html#184987

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.069 seconds
Powered by Kunena Forum