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

#   To alter the output (enqueueMessage)

##

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

Less More

- Posts: 50
- Thank you received: 4
-
-
-

15 years 8 months ago [\#8408](#8408) by [korkunov](/forum/user/1069-korkunov "View korkunov's Profile")  *[To alter the output (enqueueMessage)](/forum/2-general-talk-about-hikashop/8408-to-alter-the-output-enqueuemessage#8408 "Proposal. To alter the output of system messages (enqueueMessage). Principle - the string concatenation, and only after that output. Why: The latter conclusion HIKASHOP&#95;SUCC&#95;SAVED / ERROR are overwrite the previous output message(s). That is, messages MENU&#95;WITHOUT&#95;ASSOCIATED&#95;MODULE and others simply lose their meaning - they are not visible.")* was created by *[korkunov](/forum/user/1069-korkunov "View korkunov's Profile")*

Proposal.
To alter the output of system messages (enqueueMessage).
Principle - the string concatenation, and only after that output.
Why:
The latter conclusion HIKASHOP_SUCC_SAVED / ERROR are overwrite the previous output message(s).
That is, messages MENU_WITHOUT_ASSOCIATED_MODULE and others simply lose their meaning - they are not visible.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 8 months ago [\#8411](#8411) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: To alter the output (enqueueMessage)](/forum/2-general-talk-about-hikashop/8408-to-alter-the-output-enqueuemessage#8411 "Proposal. To alter the output of system messages (enqueueMessage). Principle - the string concatenation, and only after that output. Why: The latter conclusion HIKASHOP&#95;SUCC&#95;SAVED / ERROR are overwrite the previous output message(s). That is, messages MENU&#95;WITHOUT&#95;ASSOCIATED&#95;MODULE and others simply lose their meaning - they are not visible.")*

I'm not sure I understand the problem. Could you explain again please ?

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

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

Less More

- Posts: 50
- Thank you received: 4
-
-
-

15 years 8 months ago [\#8412](#8412) by [korkunov](/forum/user/1069-korkunov "View korkunov's Profile")  Replied by *[korkunov](/forum/user/1069-korkunov "View korkunov's Profile")* on topic *[Re: To alter the output (enqueueMessage)](/forum/2-general-talk-about-hikashop/8408-to-alter-the-output-enqueuemessage#8412 "Proposal. To alter the output of system messages (enqueueMessage). Principle - the string concatenation, and only after that output. Why: The latter conclusion HIKASHOP&#95;SUCC&#95;SAVED / ERROR are overwrite the previous output message(s). That is, messages MENU&#95;WITHOUT&#95;ASSOCIATED&#95;MODULE and others simply lose their meaning - they are not visible.")*

eg.
**back\\classes\\menus.php**
*if($element=='category' &amp;&amp; empty($element)){
$app =&amp; JFactory::getApplication();
$app-&gt;enqueueMessage(JText::\_('MENU\_WITHOUT\_ASSOCIATED\_MODULE'), 'error');
$app-&gt;enqueueMessage(JText::\_('ASSOCIATED\_MODULE\_NEEDED'));
$app-&gt;enqueueMessage(JText::sprintf('ADD\_MODULE\_AUTO',hikashop::completeLink('menus&amp;task=add\_module&amp;cid='.(int)$module-&gt;id.'&amp;'.JUtility::getToken().'=1')));
}*
.....
*$app-&gt;enqueueMessage(JText::\_( 'HIKASHOP\_SUCC\_SAVED' ));*

MENU_WITHOUT_ASSOCIATED_MODULE, ASSOCIATED_MODULE_NEEDED, ADD_MODULE_AUTO displayed 0.00001 sec, then HIKASHOP_SUCC_SAVED displayed.

This is understandable ![:)](/media/kunena/emoticons/8.png ":)")

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 8 months ago [\#8414](#8414) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: To alter the output (enqueueMessage)](/forum/2-general-talk-about-hikashop/8408-to-alter-the-output-enqueuemessage#8414 "Proposal. To alter the output of system messages (enqueueMessage). Principle - the string concatenation, and only after that output. Why: The latter conclusion HIKASHOP&#95;SUCC&#95;SAVED / ERROR are overwrite the previous output message(s). That is, messages MENU&#95;WITHOUT&#95;ASSOCIATED&#95;MODULE and others simply lose their meaning - they are not visible.")*

After the line :
if($element=='category' &amp;&amp; empty($element)){

you can add:
$result=false;

which will result in displaying the error message instead of the successful message.

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

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

Less More

- Posts: 50
- Thank you received: 4
-
-
-

15 years 8 months ago [\#8416](#8416) by [korkunov](/forum/user/1069-korkunov "View korkunov's Profile")  Replied by *[korkunov](/forum/user/1069-korkunov "View korkunov's Profile")* on topic *[Re: To alter the output (enqueueMessage)](/forum/2-general-talk-about-hikashop/8408-to-alter-the-output-enqueuemessage#8416 "Proposal. To alter the output of system messages (enqueueMessage). Principle - the string concatenation, and only after that output. Why: The latter conclusion HIKASHOP&#95;SUCC&#95;SAVED / ERROR are overwrite the previous output message(s). That is, messages MENU&#95;WITHOUT&#95;ASSOCIATED&#95;MODULE and others simply lose their meaning - they are not visible.")*

Nothing has changed ![:(](/media/kunena/emoticons/5.png ":(")

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

15 years 8 months ago [\#8422](#8422) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: To alter the output (enqueueMessage)](/forum/2-general-talk-about-hikashop/8408-to-alter-the-output-enqueuemessage#8422 "Proposal. To alter the output of system messages (enqueueMessage). Principle - the string concatenation, and only after that output. Why: The latter conclusion HIKASHOP&#95;SUCC&#95;SAVED / ERROR are overwrite the previous output message(s). That is, messages MENU&#95;WITHOUT&#95;ASSOCIATED&#95;MODULE and others simply lose their meaning - they are not visible.")*

Could you copy/paste the code you have now ? That should have removed the successful message and replaced it with the error message when the associated module is missing.

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

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

Time to create page: 0.227 seconds

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

[](#top)
