Edit
Once we click on "ADD TO CART" in "My account" page and if we open any other pages like home page , catalog page, product page, i can see message there, but not displaying in My account page.
Edit end
In "My designs" section, Under My account we are displaying some products and gave an option for "Add to cart" and its working fine.
now i need to display message on top of the page after customer click on "Add to cart" similar to product view page :
For "Add to cart" button, i am trying same code that we are using in product view page, but its not displaying any message.
app/design/frontend/rwd/Stylebaby/template/example/example.phtml
<?php $collections = $this->getCollection(); ?> <?php $_product = $this->getProduct(); ?> <?php $buttonTitle = Mage::helper('core')->quoteEscape($this->__('Add to Cart')); ?> <?php foreach ($collections as $key => $product) { echo $product->getName().' <br>'; ?> <form action="<?php echo Mage::helper('checkout/cart')->getAddUrl($product);?>" method="post"> <div class="add-to-cart-buttons"> <button type="submit" title="<?php echo $buttonTitle ?>" class="button btn-cart" > <span><span> <?php echo $buttonTitle ?> </span></span> </button> <?php echo $this->getChildHtml('', true, true) ?> </div> </form> <hr style='display:inline-block; width:100%;'> <?php } ?> Edit
app/code/local/Amasty/Example/controllers/mydesigncontrollers.php - http://pastebin.com/rpjjMthf

