Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elisei/855985ff9055fff673da205db9c46c73 to your computer and use it in GitHub Desktop.
Save elisei/855985ff9055fff673da205db9c46c73 to your computer and use it in GitHub Desktop.
Get Order Increment ID on success.phtml file for recurring profiles
<?php
$order = Mage::getResourceModel('sales/order_collection')
->addFieldToFilter('customer_id', $customer_id)
->addRecurringProfilesFilter($profile->getProfileId())
->setOrder('entity_id', 'desc')
->getFirstItem();
echo '<pre>';
print_r($order->getData());
echo '</pre>';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment