ivn03
asked on
How to display upsells_products block in success message in Magento
I am looking forward to add upsell_products block below my success message whenever a product is added to the cart.
Ex: if i add product A to the cart, then the success message should display "Product A added to your shopping cart. You May also like: Product B Product C Product D"
I believe I need to edit CartController.php but dont know the right way to do this.
Can anyone help me out with this?
Ex: if i add product A to the cart, then the success message should display "Product A added to your shopping cart. You May also like: Product B Product C Product D"
I believe I need to edit CartController.php but dont know the right way to do this.
Can anyone help me out with this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
after a lot of research and experimenting with the code I finally found the answer myself which got me the output the way I wanted. Hence I thought I should share it on the forum as well.
$message = $this->__('%s was added to your shopping cart.', Mage::helper('core')->html
If you want to create a custom module and override the controller, here is a link with details on doing that.
http://www.magentocommerce.com/boards/viewthread/32979/