Forked from tegansnyder/Get-OrderIncrementID-recurring-profiles-success-page.php
Created
January 20, 2017 20:29
-
-
Save elisei/855985ff9055fff673da205db9c46c73 to your computer and use it in GitHub Desktop.
Get Order Increment ID on success.phtml file for recurring profiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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