[Skip to main content](#vessel-content)

#   Custom vendor page, Remove back button and "Add User", change Save...

##

- **[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")**
- [![ChristopheMG's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46533-christophemg "View ChristopheMG's Profile") Topic Author
- [ Offline](/forum/user/46533-christophemg)

Less More

- Posts: 99
- Thank you received: 0
-
-

9 years 5 months ago [\#272248](#272248) by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")  *[Custom vendor page, Remove back button and "Add User", change Save...](/forum/19-hikamarket/890782-custom-vendor-page-remove-back-button-and-add-user-change-save#272248 "-- HikaShop version -- : 3.1.1 -- HikaMarket version -- : 1.7.3 -- Joomla version -- : 3.7.2 -- PHP version -- : 7.1.4 -- Browser(s) name and version -- : CHROME 59.0.3071.104  Hello,  On a &quot;HikaMarket » Vendor edition&quot; page showing my user (vendor) profile, I would like to remove the &quot;back&quot; button. Also to change the &quot;Save&quot; button by a personalized button (create a new button with onclick=&quot;return window.hikamarket.submitform('save','hikamarket&#95;vendor&#95;form');&quot;)  It's probably in Display &gt; views but I can't find the file.  Regards,")* was created by *[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")*

-- HikaShop version -- : 3.1.1
-- HikaMarket version -- : 1.7.3
-- Joomla version -- : 3.7.2
-- PHP version -- : 7.1.4
-- Browser(s) name and version -- : CHROME 59.0.3071.104

Hello,

On a "HikaMarket » Vendor edition" page showing my user (vendor) profile, I would like to remove the "back" button.
Also to change the "Save" button by a personalized button (create a new button with onclick="return window.hikamarket.submitform('save','hikamarket_vendor_form');")

[ ![back and save buttons](http://bchef2me.com/divers/back-save-button.jpg) ](http://bchef2me.com/divers/back-save-button.jpg "back and save buttons")

It's probably in Display &gt; views but I can't find the file.

Regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkwNzgyLWN1c3RvbS12ZW5kb3ItcGFnZS1yZW1vdmUtYmFjay1idXR0b24tYW5kLWFkZC11c2VyLWNoYW5nZS1zYXZlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 5 months ago [\#272250](#272250) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom vendor page, Remove back button and "Add User", change Save...](/forum/19-hikamarket/890782-custom-vendor-page-remove-back-button-and-add-user-change-save#272250 "-- HikaShop version -- : 3.1.1 -- HikaMarket version -- : 1.7.3 -- Joomla version -- : 3.7.2 -- PHP version -- : 7.1.4 -- Browser(s) name and version -- : CHROME 59.0.3071.104  Hello,  On a &quot;HikaMarket » Vendor edition&quot; page showing my user (vendor) profile, I would like to remove the &quot;back&quot; button. Also to change the &quot;Save&quot; button by a personalized button (create a new button with onclick=&quot;return window.hikamarket.submitform('save','hikamarket&#95;vendor&#95;form');&quot;)  It's probably in Display &gt; views but I can't find the file.  Regards,")*

Hello,

The toolbar is displayed directly via the HikaMarket core.
The content is set in the "view.html.php" and then HikaMarket call the view "toolbar / default" for the display.

You can see to perform an override of that view and dynamically change the content depending the current "ctrl" and "task".
It is also possible to use a plugin and a trigger ; but in your case the view override would be easier.
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)

About the icons ; that is something you can directly change via CSS.
They already are displayed via the hikamarket "frontend_default" CSS file ; you can see to have your own rules in your template CSS or create an override for the HikaMarket file.
[ www.hikashop.com/support/documentation/1...the-display.html#css](https://www.hikashop.com/support/documentation/153-customize-the-display.html#css)

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkwNzgyLWN1c3RvbS12ZW5kb3ItcGFnZS1yZW1vdmUtYmFjay1idXR0b24tYW5kLWFkZC11c2VyLWNoYW5nZS1zYXZlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")**
- [![ChristopheMG's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/46533-christophemg "View ChristopheMG's Profile") Topic Author
- [ Offline](/forum/user/46533-christophemg)

Less More

- Posts: 99
- Thank you received: 0
-
-

9 years 5 months ago -  9 years 5 months ago [\#272361](#272361) by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")  Replied by *[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")* on topic *[Custom vendor page, Remove back button and "Add User", change Save...](/forum/19-hikamarket/890782-custom-vendor-page-remove-back-button-and-add-user-change-save#272361 "-- HikaShop version -- : 3.1.1 -- HikaMarket version -- : 1.7.3 -- Joomla version -- : 3.7.2 -- PHP version -- : 7.1.4 -- Browser(s) name and version -- : CHROME 59.0.3071.104  Hello,  On a &quot;HikaMarket » Vendor edition&quot; page showing my user (vendor) profile, I would like to remove the &quot;back&quot; button. Also to change the &quot;Save&quot; button by a personalized button (create a new button with onclick=&quot;return window.hikamarket.submitform('save','hikamarket&#95;vendor&#95;form');&quot;)  It's probably in Display &gt; views but I can't find the file.  Regards,")*

Thank you Jerome,

I found the file HikaMarket - toolbar / default.php
Code:

if(!empty($tool['icon'])) { $content .= '&lt;span class="btnIcon iconM-32-'.$tool['icon'].'"&gt;&lt;/span&gt;'; } /* here the buttons */ if(!empty($tool['name'])) { $content .= '&lt;span class="btnName"&gt;' . $tool['name'] . '&lt;/span&gt;'; } /* here the text */

I can make both buttons or texts ("back", "save") disappeared but I have hard time to just remove the back button and text "back"

Can you help please?

Last edit: 9 years 5 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: removing the content of the full view ; please be sure that we already have that content

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkwNzgyLWN1c3RvbS12ZW5kb3ItcGFnZS1yZW1vdmUtYmFjay1idXR0b24tYW5kLWFkZC11c2VyLWNoYW5nZS1zYXZlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 5 months ago [\#272364](#272364) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom vendor page, Remove back button and "Add User", change Save...](/forum/19-hikamarket/890782-custom-vendor-page-remove-back-button-and-add-user-change-save#272364 "-- HikaShop version -- : 3.1.1 -- HikaMarket version -- : 1.7.3 -- Joomla version -- : 3.7.2 -- PHP version -- : 7.1.4 -- Browser(s) name and version -- : CHROME 59.0.3071.104  Hello,  On a &quot;HikaMarket » Vendor edition&quot; page showing my user (vendor) profile, I would like to remove the &quot;back&quot; button. Also to change the &quot;Save&quot; button by a personalized button (create a new button with onclick=&quot;return window.hikamarket.submitform('save','hikamarket&#95;vendor&#95;form');&quot;)  It's probably in Display &gt; views but I can't find the file.  Regards,")*

Hello,

In the toolbar default view, you have a loop on each button. Code:

foreach($data as $key =&gt; $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 Code:

$this-&gt;toolbar = array( array('icon' =&gt; 'back', 'name' =&gt; JText::_('HIKA_BACK'), 'url' =&gt; hikamarket::completeLink('vendor')), array( 'url' =&gt; '#save', 'linkattribs' =&gt; 'onclick="return window.hikamarket.submitform(\'save\',\'hikamarket_vendor_form\');"', 'icon' =&gt; 'save', 'name' =&gt; JText::_('HIKA_SAVE'), 'pos' =&gt; 'right' ) );

By Code:

$this-&gt;toolbar = array( 'back' =&gt; array('icon' =&gt; 'back', 'name' =&gt; JText::_('HIKA_BACK'), 'url' =&gt; hikamarket::completeLink('vendor')), 'save' =&gt; array( 'url' =&gt; '#save', 'linkattribs' =&gt; 'onclick="return window.hikamarket.submitform(\'save\',\'hikamarket_vendor_form\');"', 'icon' =&gt; 'save', 'name' =&gt; JText::_('HIKA_SAVE'), 'pos' =&gt; '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-&gt;getLayout() and $this-&gt;getName() to only apply your modification on the vendormarket form.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE5LWhpa2FtYXJrZXQvODkwNzgyLWN1c3RvbS12ZW5kb3ItcGFnZS1yZW1vdmUtYmFjay1idXR0b24tYW5kLWFkZC11c2VyLWNoYW5nZS1zYXZlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.049 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
