Skip to main content
2 of 2
replaced http://magento.stackexchange.com/ with https://magento.stackexchange.com/

You get the quote by:

$quote = Mage::getSingleton('checkout/cart')->getQuote();

then you have access to all items:

$quote->getAllItems()

And follow the instructions of the original answer

Fabian Schmengler
  • 66.1k
  • 25
  • 188
  • 422