In the Login page, I want to show a message in below Login Button instead of page top.
How to change Login page error message position in below Login Button in Magento 2.
How to achieve this?
magento2messages
In the Login page, I want to show a message in below Login Button instead of page top.
How to change Login page error message position in below Login Button in Magento 2.
How to achieve this?
Try to give your div-container a css-class:
<div id="messages_product_view" class="test1"><?php Mage::app()->getLayout()->getMessagesBlock()->setMessages(Mage::getSingleton('customer/session')->getMessages(true)); ?> <?php echo Mage::app()->getLayout()->getMessagesBlock()->getGroupedHtml(); ?> </div>
And then you define this class in your css-file:
.test1 {z-index: 99999;}
I'm not shure if it works, but on our website it is solved so.
In your theme folder create a locale/[locale_code]/translate.csv
file.
Example: app/design/frontend/[package]/[theme]/locale/en_US/translate.csv
And add this line:
"Please make sure your passwords match.","Translated String."
And finally refresh Translations
cache.
Best Answer
Create customer_account_login.xml in your theme and move message block to customer.login.container
customer_account_login.xml