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 | |
error_reporting(E_ALL | E_STRICT); | |
require_once 'app/Mage.php'; | |
Varien_Profiler::enable(); | |
Mage::setIsDeveloperMode(true); | |
ini_set('display_errors', 1); | |
umask(0); | |
Mage::app('default'); | |
$collection = Mage::getModel('customer/customer') |
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 | |
// Produce a CSV of All the Customers with Recurring Profile Details | |
error_reporting(E_ALL | E_STRICT); | |
require_once 'app/Mage.php'; | |
Varien_Profiler::enable(); | |
Mage::setIsDeveloperMode(true); | |
ini_set('display_errors', 1); | |
umask(0); | |
Mage::app('default'); |
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 | |
error_reporting(E_ALL | E_STRICT); | |
require_once 'app/Mage.php'; | |
Varien_Profiler::enable(); | |
Mage::setIsDeveloperMode(true); | |
ini_set('display_errors', 1); | |
umask(0); | |
Mage::app('default'); | |
$order = Mage::getModel('sales/order')->loadByIncrementId('100126630'); |
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 | |
require_once 'app/Mage.php'; | |
Varien_Profiler::enable(); | |
Mage::setIsDeveloperMode(true); | |
ini_set('display_errors', 1); | |
umask(0); | |
Mage::app('default'); | |
$profile = Mage::getModel('sales/recurring_profile')->getCollection(); |
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>'; |
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 | |
$last_recurring_profile_id = $_SESSION['checkout']['last_recurring_profile_ids'][0]; | |
$customer_id = Mage::getSingleton('customer/session')->getCustomerId(); | |
$order = Mage::getResourceModel('sales/order_collection') | |
->addFieldToFilter('customer_id', $customer_id) | |
->addRecurringProfilesFilter($last_recurring_profile_id) | |
->setOrder('entity_id', 'desc') | |
->getFirstItem(); | |
?> |
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 | |
$params = array( | |
'$append' => array( | |
'$transactions' => array( | |
'$time' => '2013-01-03T00:58:05', | |
'$amount' => 125.34 | |
), | |
), | |
'$token' => 'YOUR_MIX_PANEL_TOKEN', |
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 | |
require_once('app/Mage.php'); | |
umask(0); | |
Mage::app(); | |
$log = ''; | |
$db_conn = Mage::getSingleton('core/resource'); | |
$r_conn = $db_conn->getConnection('core_read'); |
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 | |
require_once('/site/app/Mage.php'); | |
umask(0); | |
Mage::app(); | |
//setup the direct sql db conn resource | |
$db_conn = Mage::getSingleton('core/resource'); | |
$r_conn = $db_conn->getConnection('core_read'); | |
$email = '[email protected]'; |
OlderNewer