Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $collection = Mage::getResourceModel('customer/customer_collection');
- $collection->addAttributeToFilter('customer_products_changedate', 'OLDER THAN 14 DAYS');
- $date = date('Y-m-d', strtotime('-14 day'));
- $collection->addFieldToFilter(
- 'customer_products_changedate',
- array(
- 'lt'=>$date
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement