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

#   Trying to remove the Apply button

##

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

Less More

- Posts: 61
- Thank you received: 2
-
-

13 years 2 months ago -  13 years 2 months ago [\#120549](#120549) by [xsbucks](/forum/user/22196-xsbucks "View xsbucks's Profile")  *[Trying to remove the Apply button](/forum/23-market-how-to/861435-trying-to-remove-the-apply-button#120549 "I am trying to remove the 'APPLY' button on the new file upload . I wish to keep the save button.")* was created by *[xsbucks](/forum/user/22196-xsbucks "View xsbucks's Profile")*

I am trying to remove the 'APPLY' button on the new file upload . I wish to keep the save button.

Last edit: 13 years 2 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODYxNDM1LXRyeWluZy10by1yZW1vdmUtdGhlLWFwcGx5LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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)
-

13 years 2 months ago [\#120573](#120573) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Trying to remove the Apply button](/forum/23-market-how-to/861435-trying-to-remove-the-apply-button#120573 "I am trying to remove the 'APPLY' button on the new file upload . I wish to keep the save button.")*

Hi,

First you have to re-download HikaMarket 1.3.0, I update the package in order to allow a plugin to access to the toolbar (and activate a trigger).
After that, you will be able to use that little custom plugin.
Code:

&lt;?php class plgHikamarketCustomtoolbar01 extends JPlugin { public function onHikamarketBeforeDisplayView(&amp;$view) { $app = JFactory::getApplication(); $ctrl = JRequest::getCmd('ctrl', ''); $layout = $view-&gt;getLayout(); if(!$app-&gt;isAdmin() &amp;&amp; $ctrl == 'product' &amp;&amp; $layout = 'form' &amp;&amp; isset($view-&gt;toolbar['apply'])) { unset($view-&gt;toolbar['apply']); } } }

It uses a special view trigger in order to access to the toolbar of the page and modify it.
In our case, it removes the button "apply". But you can also change a button or add new ones.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODYxNDM1LXRyeWluZy10by1yZW1vdmUtdGhlLWFwcGx5LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/46533-christophemg)

Less More

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

9 years 2 months ago [\#278746](#278746) by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")  Replied by *[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")* on topic *[Trying to remove the Apply button](/forum/23-market-how-to/861435-trying-to-remove-the-apply-button#278746 "I am trying to remove the 'APPLY' button on the new file upload . I wish to keep the save button.")*

Hi,

I'm trying to remove the Apply button too, Save is enough, I created the plugin with 3 files: xml, php with the code above and index.html.
I installed and activated it but I still see the button Apply.

I was wondering if I can use the override technique ? But I can't find the file in Views with the apply buton, it's not in HikaMarket - toolbar / default.php for sure...
[ www.hikashop.com/forum/19-hikamarket/890...ser-change-save.html](https://www.hikashop.com/forum/19-hikamarket/890782-custom-vendor-page-remove-back-button-and-add-user-change-save.html)

Regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODYxNDM1LXRyeWluZy10by1yZW1vdmUtdGhlLWFwcGx5LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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 2 months ago [\#278782](#278782) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Trying to remove the Apply button](/forum/23-market-how-to/861435-trying-to-remove-the-apply-button#278782 "I am trying to remove the 'APPLY' button on the new file upload . I wish to keep the save button.")*

Hello,

The trick I gave 4 years ago was to remove the button for a specific view.
In 4 years, HikaMarket has evolve and now you can find a view to display the toolbar ; which allow you to perform a view override instead of a custom plugin.
That view process the "toolbar" variable to display the buttons ; in that view you can see to "skip" the buttons that you don't want to display.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODYxNDM1LXRyeWluZy10by1yZW1vdmUtdGhlLWFwcGx5LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/46533-christophemg)

Less More

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

9 years 2 months ago [\#278819](#278819) by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")  Replied by *[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")* on topic *[Trying to remove the Apply button](/forum/23-market-how-to/861435-trying-to-remove-the-apply-button#278819 "I am trying to remove the 'APPLY' button on the new file upload . I wish to keep the save button.")*

Thank you Jerome,
Here is the line for all the buttons:
if(!empty($tool)) { $content .= '&lt;span class="btnIcon iconM-32-'.$tool.'"&gt;&lt;/span&gt;'; }
Then icon becomes "back", "apply" and "save"
How could I remove just apply please ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODYxNDM1LXRyeWluZy10by1yZW1vdmUtdGhlLWFwcGx5LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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 2 months ago [\#278820](#278820) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Trying to remove the Apply button](/forum/23-market-how-to/861435-trying-to-remove-the-apply-button#278820 "I am trying to remove the 'APPLY' button on the new file upload . I wish to keep the save button.")*

[ www.hikashop.com/forum/19-hikamarket/890...ser-change-save.html](https://www.hikashop.com/forum/19-hikamarket/890782-custom-vendor-page-remove-back-button-and-add-user-change-save.html)
[ www.hikashop.com/forum/20-market-feature...-save-and-close.html](https://www.hikashop.com/forum/20-market-feature-requests/886892-add-new-toolbar-button-to-hikam-toolbar-save-and-close.html)

---

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

The following user(s) said Thank You: [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODYxNDM1LXRyeWluZy10by1yZW1vdmUtdGhlLWFwcGx5LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/46533-christophemg)

Less More

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

9 years 2 months ago -  9 years 2 months ago [\#278878](#278878) by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")  Replied by *[ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile")* on topic *[Trying to remove the Apply button](/forum/23-market-how-to/861435-trying-to-remove-the-apply-button#278878 "I am trying to remove the 'APPLY' button on the new file upload . I wish to keep the save button.")*

Thank you,
I had forgotten my other post to remove the text below the buttons, a useful reminder.
Fixed: Code:

if(!empty($tool['icon'])&amp;&amp;($tool['icon']!=='apply')) { $content .= '&lt;span class="btnIcon iconM-32-'.$tool['icon'].'"&gt;&lt;/span&gt;'; }

Last edit: 9 years 2 months ago by [ChristopheMG](/forum/user/46533-christophemg "View ChristopheMG's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODYxNDM1LXRyeWluZy10by1yZW1vdmUtdGhlLWFwcGx5LWJ1dHRvbj90bXBsPW1hcmtkb3du) 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.060 seconds

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