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 message to hide it)
But on the Product Page I want the success message for the main Product to be displayed on successful add to cart and not ti display when adding Related Products to your cart.
So how can I know where the "Add to Cart" action was called from or some solution for this?