Magento管理面板中是否有办法导出未取消订阅的客户,即
Required_Customers = All_Customers - Unsubscribed_Customers
通过这种方式,我会得到:
new_customers(who have not subscribed) + subscribed_customers - unsubscribed_customers(who subscribed once but then unsubscribed)
答案 0 :(得分:0)
您可以更改此类代码
$collection = Mage::getModel('customer/customer')->getCollection();
$collection->getSelect()->joinLeft(array('ns'=>'newsletter_subscriber'), 'ns.customer_id=e.entity_id', array('substatus'=>'ns.subscriber_status') );
foreach($collection->getData() as $customer){
if($customer['substatus']!=1){
print_r($customer);
}
}
您可以根据您的要求修改条件。