I\'m trying to get the Order Increment Id in Magento, on the success.phtml page so that I can use this for affiliate tracking.
I\'m using the following code, but it
I had to use...
$_order = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId());
While in the success.phtml template. Instead of load() I used loadByIncrementId - then my order object was no longer empty.