Thursday 15 April 2010

magento - Show CMS block only for customers who have not subscribed to a Newsletter -



magento - Show CMS block only for customers who have not subscribed to a Newsletter -

i'm looking way show cms block customers (who logged in anyways) have not subscribed newsletter.

could help me code? know how implement cms block, not sure how check whether client has subscribed or not.

thanks lot, johannes

magento check client email exits or not below code

class="snippet-code-html lang-html prettyprint-override">$status = mage::getmodel('newsletter/subscriber')->subscribe($email); $subscriber = mage::getmodel('newsletter/subscriber')->loadbyemail($email); if($subscriber->getid()) { if ($status == mage_newsletter_model_subscriber::status_not_active) { // 'confirmation request has been sent.'; } else { //thank subscription; } } else{ //no subcription }

magento newsletter subscriber

No comments:

Post a Comment