Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 599

denotes questions related to the customers module

22 votes
Accepted

How to check if customer is already subscribed to newsletter

this, if you have the customer's email address: $subscriber = Mage::getModel('newsletter/subscriber')->loadByEmail($email); if ($subscriber->getId()) { // put your logic here... } Or if you have customer … ID then you can directly check in newsletter_subscriber table to check if customer ID exists or not. …
Mufaddal's user avatar
  • 3,903
0 votes

Getting customer collection with only those that are subscribed to newsletters

Query against newsletter_subscriber table and get customer_id, so you have customer id then load customer data with this id. …
Mufaddal's user avatar
  • 3,903