Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Get Shopping Cart ID
 
cgfc
Sr. Member
 
Avatar
Total Posts:  92
Joined:  2008-08-29
Montevideo, Uruguay
 

Hi everyone, I’m installing a tracking script on my store, and I need to get the shopping cart ID.

Maybe something like

$this->getOrderId();

Any ideas?

Thx!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
mzentrale1
Guru
 
Total Posts:  731
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

do you need order id or checkout id? where do you want to fetch it?

Cheers

Stefan

 
Magento Community Magento Community
Magento Community
Magento Community
 
akewmagento
Jr. Member
 
Avatar
Total Posts:  22
Joined:  2011-06-12
 

It may be help you.

Mage::getSingleton(’checkout/session’)->getQuoteId()

 
Magento Community Magento Community
Magento Community
Magento Community
 
chiefair
Mentor
 
Avatar
Total Posts:  1848
Joined:  2009-06-04
 

Sample code for getting this info on the success.phtml page here...

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top