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

#   Add new toolbar button to hikam\_toolbar - Save and close

##

- **[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")**
- [![flexsus's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39807.jpg)](/forum/user/39807-flexsus "View flexsus's Profile") Topic Author
- [ Offline](/forum/user/39807-flexsus)

Less More

- Posts: 136
- Thank you received: 7
-
-
-

10 years 1 month ago -  10 years 1 month ago [\#252315](#252315) by [flexsus](/forum/user/39807-flexsus "View flexsus's Profile")  *[Add new toolbar button to hikam\_toolbar - Save and close](/forum/20-market-feature-requests/886892-add-new-toolbar-button-to-hikam-toolbar-save-and-close#252315 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6.2 -- PHP version -- : 7.0 -- Browser(s) name and version -- : All  Hi In front-end for vendors: New -&gt; Product You have 'apply' and 'save' button.  The apply-button &quot;saves&quot; what the vendor has typed in, or in other words, just apply it. The save-button &quot;saves&quot; (apply) and close the product window of what the vendor has typed in. The default icons don't show this &quot;close&quot; approach.  I suggest a more meaningful approach. Use the terms 'Save' and 'Save and close'. Adding a HIKAM&#95;SAVE&#95;AND&#95;CLOSE to language string.  Regards, Henrik")* was created by *[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")*

-- HikaShop version -- : 2.6.4
-- HikaMarket version -- : 1.7.2
-- Joomla version -- : 3.6.2
-- PHP version -- : 7.0
-- Browser(s) name and version -- : All

Hi
In front-end for vendors: New -&gt; Product
You have 'apply' and 'save' button.

The apply-button "saves" what the vendor has typed in, or in other words, just apply it.
The save-button "saves" (apply) and close the product window of what the vendor has typed in. The default icons don't show this "close" approach.

I suggest a more meaningful approach. Use the terms 'Save' and 'Save and close'. Adding a HIKAM_SAVE_AND_CLOSE to language string.

Regards,
Henrik
[ ![2&#95;2016-10-13.png](/forum/attachment/33951) ](/forum/attachment/33951 "2&#95;2016-10-13.png")

[ ![3.png](/forum/attachment/33950) ](/forum/attachment/33950 "3.png")

[ ![1&#95;2016-10-13.png](/forum/attachment/33949) ](/forum/attachment/33949 "1&#95;2016-10-13.png")

---

.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building

- [ ![1&#95;2016-10-13.png](/forum/attachment/33949) ](/forum/attachment/33949 "1&#95;2016-10-13.png") [ ](/forum/attachment/33949?download=1 "1&#95;2016-10-13.png")
- [ ![3.png](/forum/attachment/33950) ](/forum/attachment/33950 "3.png") [ ](/forum/attachment/33950?download=1 "3.png")
- [ ![2&#95;2016-10-13.png](/forum/attachment/33951) ](/forum/attachment/33951 "2&#95;2016-10-13.png") [ ](/forum/attachment/33951?download=1 "2&#95;2016-10-13.png")

Last edit: 10 years 1 month ago by [flexsus](/forum/user/39807-flexsus "View flexsus's Profile"). Reason: typo

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

- **[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")**
- [![flexsus's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39807.jpg)](/forum/user/39807-flexsus "View flexsus's Profile") Topic Author
- [ Offline](/forum/user/39807-flexsus)

Less More

- Posts: 136
- Thank you received: 7
-
-
-

10 years 1 month ago -  10 years 1 month ago [\#252352](#252352) by [flexsus](/forum/user/39807-flexsus "View flexsus's Profile")  Replied by *[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")* on topic *[Add new toolbar button to hikam\_toolbar - Save and close](/forum/20-market-feature-requests/886892-add-new-toolbar-button-to-hikam-toolbar-save-and-close#252352 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6.2 -- PHP version -- : 7.0 -- Browser(s) name and version -- : All  Hi In front-end for vendors: New -&gt; Product You have 'apply' and 'save' button.  The apply-button &quot;saves&quot; what the vendor has typed in, or in other words, just apply it. The save-button &quot;saves&quot; (apply) and close the product window of what the vendor has typed in. The default icons don't show this &quot;close&quot; approach.  I suggest a more meaningful approach. Use the terms 'Save' and 'Save and close'. Adding a HIKAM&#95;SAVE&#95;AND&#95;CLOSE to language string.  Regards, Henrik")*

I can see, that the HikaMarket 'toolbar' uses, HIKA_SAVE and HIKA_APPLY language strings. I would preferre not to do a language override of these to strings since I don't know what consequences this will have.

I would preferre that the toolbare would return HIKAM_SAVE and HIKAM_APPLY. I can't see that I can solve this by editing the toolbar.php view. If this was solved, I could make a language override of these two strings. But better would be, if 3 options exist:
HIKAM_APPLY
HIKAM_SAVE
HIKAM_SAVE_AND_CLOSE

---

.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building

Last edit: 10 years 1 month ago by [flexsus](/forum/user/39807-flexsus "View flexsus's Profile"). Reason: typo

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

10 years 1 month ago [\#252360](#252360) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Add new toolbar button to hikam\_toolbar - Save and close](/forum/20-market-feature-requests/886892-add-new-toolbar-button-to-hikam-toolbar-save-and-close#252360 "-- HikaShop version -- : 2.6.4 -- HikaMarket version -- : 1.7.2 -- Joomla version -- : 3.6.2 -- PHP version -- : 7.0 -- Browser(s) name and version -- : All  Hi In front-end for vendors: New -&gt; Product You have 'apply' and 'save' button.  The apply-button &quot;saves&quot; what the vendor has typed in, or in other words, just apply it. The save-button &quot;saves&quot; (apply) and close the product window of what the vendor has typed in. The default icons don't show this &quot;close&quot; approach.  I suggest a more meaningful approach. Use the terms 'Save' and 'Save and close'. Adding a HIKAM&#95;SAVE&#95;AND&#95;CLOSE to language string.  Regards, Henrik")*

Hi,

Thanks for your feedback.

Unfortunately, the "apply / save" logic is made according to Joomla (and thus, HikaShop).
So I cannot change the default translations for these text nothing that it will break the homogeneity.
But yes, the icons could have some improvements.

About the override of the "toolbar / default" view, it is a good solution indeed.
In that view you can replace Code:

foreach($data as $tool) {

By Code:

foreach($data as $key =&gt; $tool) {

In order to have the "$key" where you will be able to find "apply" and "save" ; it will be a good solution to override the text just before the display.

Regards,

---

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

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

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