Skip to main content

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

More
11 years 8 months ago #189357 by shpuser
-- HikaShop version -- : 2.3.5

In file quantity.php in my override file i find function for "add to cart" button:
Code:
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.

More
11 years 8 months ago #189358 by Mohamed Thelji
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.

More
11 years 8 months ago #189464 by shpuser
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.

More
11 years 8 months ago #189467 by Jerome
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.

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

Time to create page: 0.202 seconds
Powered by Kunena Forum