Hello,
In the toolbar default view, you have a loop on each button.
foreach($data as $key => $tool) {
And as you saw, the variable $tool is an array with different elements, like the icon, the name and the url.
The variable $key contains logically the namekey of the button, but unfortunately, in HikaMarket 1.7.3, some views do not have namekeys set properly.
So you have to edit the file "components/com_hikamarket/vendormarket/view.html.php" and replace
$this->toolbar = array(
array('icon' => 'back', 'name' => JText::_('HIKA_BACK'), 'url' => hikamarket::completeLink('vendor')),
array(
'url' => '#save',
'linkattribs' => 'onclick="return window.hikamarket.submitform(\'save\',\'hikamarket_vendor_form\');"',
'icon' => 'save',
'name' => JText::_('HIKA_SAVE'), 'pos' => 'right'
)
);
By
$this->toolbar = array(
'back' => array('icon' => 'back', 'name' => JText::_('HIKA_BACK'), 'url' => hikamarket::completeLink('vendor')),
'save' => array(
'url' => '#save',
'linkattribs' => 'onclick="return window.hikamarket.submitform(\'save\',\'hikamarket_vendor_form\');"',
'icon' => 'save',
'name' => JText::_('HIKA_SAVE'), 'pos' => 'right'
)
);
So you will be able to use the variable $key to know what is the button exactly.
And please do not forget to use $this->getLayout() and $this->getName() to only apply your modification on the vendormarket form.
Regards,