Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. $collection = Mage::getResourceModel('customer/customer_collection');
  2. $collection->addAttributeToFilter('customer_products_changedate', 'OLDER THAN 14 DAYS');
  3.  
  4. $date = date('Y-m-d', strtotime('-14 day'));
  5.  
  6. $collection->addFieldToFilter(
  7. 'customer_products_changedate',
  8. array(
  9. 'lt'=>$date
  10. )
  11. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement