Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [messages]

Denotes questions related to Static content deploy command. The static view files deployment command enables you to write static files to the Magento file system when the Magento software is set for production mode.

1
vote
0answers
21 views

Listener when message is set in Magento 2

I am deleting the mage-messages cookie, how sometimes it's not getting deleted for iPhone Safari browser. I have even added set timeout for 5 sec. The issue is the notification persists on other pages ...
1
vote
0answers
34 views

Magento 2 Admin Notifications - what makes a notification popup when the admin user logs in?

Occasionally, an admin notification can pop up when an admin user logs into the Admin Panel. The popup usually shows in an orange style box and can be closed easily, but not all poups show like this. ...
0
votes
0answers
15 views

i want to add gift box message(text field) on product page magento 1

I want to add custom gift box message(text field) on the product page so please suggest how we can do this? And this field is shown on the checkout page with a particular product and it is also ...
1
vote
0answers
34 views

Magento 2.3.0 - Newsletter subscription message not on homepage

When I submit the newsletter subscription form on the homepage, the page will reload but no message will be shown. When i go to an other page the message is visible for 8 seconds and fades away (that'...
0
votes
0answers
16 views

Inline validation error in login form Magento 2

Right now, I am getting a global error message for wrong email/password`. I want it to be an inline error message instead of a global message. Like this. Right LoginPost.php sets error message , i ...
1
vote
2answers
79 views

messageManager addSuccessMessage/addErrorMessage set cookies?

Whenever I addSuccessMessage/addErrorMessage it sets the cookie? But I am not able to get that code, where that magic happens. In messages.js it gets that message by using code $.cookieStorage.get('...
0
votes
0answers
18 views

Issue with mage-messages cookie in iphone safari

For my device testing (iPhone Safari), multiple notifications pop on, from the code message.js initialize: function () { this._super(); this.cookieMessages = _.unique($....
3
votes
0answers
43 views

How to hide messages one by one after each one is visible for a certain amount of time?

Tried that the messages hide one by one depending on the time of creation so far I have this but it does not work very well in some moments it does not wait for the 15s and in others it erases them ...
0
votes
1answer
43 views

Magento 2 : Duplicate notification message on Mobile device

I followed this link to remove all my duplicate messages. Error/Success messages show wrong page and are not cleared It worked for desktop chrome. But when test it on actual device like android ...
3
votes
0answers
102 views

Remove notification messages on refresh

Sometimes the notification messages don't get disappear on page reload or when I navigate to the different page. Is there some kind of timeout for the notification message or some session cookies? I ...
1
vote
1answer
43 views

How to remove Add to cart warning message without size color selection?

I have to remove the You need to choose options for your item. on Add to cart button when I don't select any color or size. I don't want to show this as a global message. I found that Add to cart is ...
0
votes
3answers
75 views

How to move notification message top of the page for all page

I am trying to move all notification message on the top below header(or any specific location) I followed this link but this only achieve top for customer page only Magento 2: Change message ...
3
votes
1answer
44 views

Magento 2 notifciation message issue

My error/success messages in Magento has latency, means it appears when I go to the next page. i.e, When I add a product to cart, instead of showing a success notification message on the refresh of ...
3
votes
1answer
34 views

Adding Message under Payment Method (like paypal redirect message)

I need to add message under Redsys Payment Method (like paypal redirect message) when you click it. Example: Where i can add this?
0
votes
0answers
20 views

How to speed up of Displaying Messages (success,Error,Notice) in Magento2?

Currently in Magento2 site Success,Error or Notice Message taking too much time to display. How to speed up?
0
votes
0answers
19 views

Mage::getSingleton('adminhtml/session')->addError() in cron

Is there a way to show message in admin inside job started in cron? Code below doesn't work. Mage::getSingleton('adminhtml/session')->addError($msg)
0
votes
0answers
18 views

Exception Not Working

I have an observer for sales_order_save_before The custom message shows when the user is logged in, but throws the generic message if they are a guest. Does anyone know why this is happening?
1
vote
0answers
27 views

Ho do I stop SLAVA YURTHEV from sending messages to our back end Magento administration page?

This is something that in 15 years of Magento use we have never encountered. A developer, (whose extension we PURCHASED), will not stop sending marketing messages to the administration page of our ...
0
votes
0answers
21 views

Login page (Frontend and Admin) - Explain cause of error

I run a few shops on Magento 2 and I've had many people claim that their account was temporarily disabled. Most of the time when I check this, they are not locked out and it ends up that they got ...
0
votes
0answers
15 views

Magento 1 show pop when product added to cart

Is there an easy way to show a popup that a product is added to the cart in Magento 1.9? The popup message itself will be no problem to create, but I need the code-part that checks and shows the ...
0
votes
2answers
142 views

How to hide messages after certain time

I want to hide success / error messages after 5 seconds once I have added items to the cart. I have extended messages.js with the following code to hide the message after 5 seconds setTimeout(...
0
votes
2answers
69 views

How to show success or error message block at the top of the page

I need show success or error messages block at the top of the page before the header block. As of now it appears between the breadcrumbs and main block.
0
votes
0answers
69 views

in catalog page success message after hidden will not show again

so I have use d code to modify messages.phtml and messages.js so to hide success or error messages after a given time, but if in catalog page I want to add more than 1 product messages will not show ...
0
votes
0answers
119 views

Display notification/error message in frontend from a helper override

I have created a custom module for restrct one cms page access in few conditions. If the page is restricted, then I want to redirect the page to home page and display one message. My code is ...
1
vote
2answers
120 views

Custom swatch message 'This is a required field'

Is there a way to customize the 'This is a required field' message when you don´t select a swatch option? I want to change it to "Please select a color" and "Please select a size" Thanks!
4
votes
1answer
258 views

How to hide magento 2.2 messages after a time has passed?

I want to remove the success notification message with animation included, trying with below code with no success: define([ 'jquery', 'uiComponent', 'underscore', 'Magento_Customer/js/customer-data',...
0
votes
1answer
154 views

Magento 2: How to solve this {{system messages }} issue

How can i solve this issue ? it is weird {{{System Messages}}{{System Messages}}{{System Messages}}{{themeMagento/backend}}} This issue is appearing/ visible every where in the admin almost
1
vote
2answers
136 views

Complex message not working

I've followed this tutorial: https://store.fooman.co.nz/blog/displaying-complex-error-messages-in-magento-2.html This is my di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/...
2
votes
0answers
65 views

Add a link into error message

How can I add a link into an error message from Message Manager ? I have this : $physicalLink = "<a href='".$produtToAddUrl."'>".$produtToAddName."</a>"; $this->_messageManager-&...
3
votes
1answer
194 views

Magento2: Session messages not removed properly - persist across multiple requests

I have facing in cache issue in my magento 2 store here if i submit any form getting error and success message coming when refresh page.i don't understand why this issue comes again and again .if any ...
3
votes
1answer
666 views

Magento 2 : How to Clear Previous Messages in MessageManager

I have added a below line in my observer file for the event checkout_cart_save_after $this->_messageManager->addNotice(__("A Notice Message")); Every time it hits observer, it displayes more ...
1
vote
1answer
234 views

Magento 2 error message when customer login failed (f.e. wrong password)

How can I output an error message on login page if customer input wrong password? I use default login-template but no error message is shown ... Thanks! Martin
1
vote
2answers
2k views

How to use Javascript to display page messages

Is it possible to use JavaScript to display a page message? I would like to display one when I receive an ajax response on a custom module I'm working on. You can see an example of one of these ...
2
votes
2answers
52 views

How can i display product detail page page notes for Selected Store?

I have notes for my store 1 like Delivery: 10 Days, and I have another store and I need to change notes like Delivery: 20 Days, The condition like if store 1, Delivery: 10 Days, and if store 2, ...
1
vote
2answers
171 views

How to list all of Magento 2's messages

I've seen multiple types of messages on magento 2. Error messages, success messages and so on. How can I get the total number of messages that magento can provide? It should be sum of messages ...
1
vote
0answers
29 views

Magento 2: How to display messages in cachable pages

As a part of my functionality, using below I'm dispatching a conditional error message. <event name="controller_action_predispatch"> <observer name="...
0
votes
0answers
172 views

Custom theme is not showing success messages on product page

My other pages showing messages properly but not working on the product page. when I try to add to cart it does nothing. When I goto cart page it shows multiple time the success message. I tried by ...
0
votes
0answers
35 views

Magento Success / Failure Message for the Form Submission using Javascript

I am submitting the form to edit primary shipping and billing addresses via ajax (2 forms, 1 page), and it finally works like it has to. Now I'd just like to add messages that magento sets for those ...
1
vote
0answers
39 views

Magento Success/Failure Message for the Form Submission using Javascript

I am submitting the form to edit primary shipping and billing addresses via ajax (2 forms, 1 page), and it finally works like it has to. Now, I'd just like to add messages that magento sets for those ...
0
votes
0answers
120 views

magento 2: addErrorMessage in cms page not work when enable cache

I'm trying adderrormessage to the cms page, but I have to disable the cache and it will work. I would like to enable the cache adderrormessage still working. public function __construct( \Magento\...
0
votes
1answer
37 views

Mails and messages are not being sent after successful order placement

Few days before I had minified all the JS files in my Magento store and after that, both the mails and the messages that we had configured to fire on successful order placement is not working. Is ...
1
vote
3answers
915 views

Change success message on applying coupon code

In Magento 2.x, By default, we can set coupon codes from Marketing->Cart Price Rules. I've added a test code and it's working as expected. When I added the code in cart page (mysite.com/checkout/cart)...
0
votes
1answer
54 views

Messages Block empty on advanced search results

I disabled the redirect to cart after adding a product so users can continue from where they were, which works great on category page and search results. But when you are on advanced search page, the ...
1
vote
1answer
573 views

How can i add an information message to the checkout

I have a demo site using the default luma theme and I want to add a simple information message to the checkout above the delivery options. Where about in the template can I edit this, I'm not ...
3
votes
2answers
930 views

How to move Success, Error messages position?

How to move Add to cart success and error message above Add to cart button and not at the top ?
3
votes
1answer
274 views

Magento : How to Alter Delete Confirm Message?

I want to alter the message of delete confirm in custom extension and I don't know how. Someone can help me? DutyController.php class Nothing_Duty_Adminhtml_DutyController extends ...
0
votes
1answer
92 views

How to know where action “Add To Cart” from?

I have a problem when customising the Add to cart success message in Magento. When hiding the success message element all success messages when adding to cart will be hidden (I try to add a class to ...
0
votes
1answer
44 views

Not having the page reload or being redirected if the login credentials are wrong - Magento 2.2

On the login page, when the end-user enters a wrong password, the page gets refreshed and then returns the error massage, is there a way that I can have the error appears right away after entering the ...
0
votes
1answer
492 views

magento 2 default messages not showing on product detail page only

Success and other messages not coming on product detail page only, While if we moving to another page it is visible, Anyone have suggestion then please share.
0
votes
1answer
126 views

Show failure message in onpage failure page

I'm trying to show some custom failure messages on onepage failure page in magento 1. How can I do this? I did the same for magento 2 using: $this->messageManager->addError(__($msg)); And ...