View Magento-Customers-With-Multiple-Recurring-Profiles.php
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') |
View Magento-Recurring-Profile-CSV-Customers-Export.php
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'); |
View Magento-Reset-Discounts-By-IncrementId.php
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'); |
View Magento-Get-Coupon-Codes-Used-on-Recurring-Profiles.php
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(); |
View Get-OrderIncrementID-recurring-profiles-success-page.php
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>'; |
View GetLastRecurringOrderID.php
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(); | |
?> |
View Mixpanel-Revenue-PHP.php
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', |
View Magento-Abandon-Cart-Tied-To-Mixpanel-Engage-Like-A-Boss.php
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'); |
View GetMagentoCustomerIDbyEmail.php
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 = 'tsnyder@tegdesign.com'; |
OlderNewer