Magento - How to show the confimation,success,error in a lightbox popup window

Please LogIn to Reply!

Post By: admin | 26-01-2012 06:35 Reply

I want to show the confimation,success,error messages in a lightbox popup or in an alert window.

For example: Someone subscribes a newsletter, and the success message appears in the layout. Now I don’t want it to be displayed like this. I need the message to be opened in a popup or in an alert window.

try this

 <?php if($this->getMessagesBlock()->getGroupedHtml()){ ?>
 <script> //apply your script here to pop up    </script>
 <?php } ?>
`Reply Or Comment!
Please LogIn to Reply!