Return to Snippet

Revision: 17371
at September 2, 2009 11:31 by nico65


Initial Code
if ($customerSession->isLoggedIn()) {
            $this->setStoreId($customerSession->getCustomer()->getStoreId());
            $this->setStatus(self::STATUS_NOT_ACTIVE);
            $this->setCustomerId($customerSession->getCustomerId());
        } else if ($customer->getId()) {
            $this->setStoreId($customer->getStoreId());
            $this->setSubscriberStatus(self::STATUS_NOT_ACTIVE);
            $this->setCustomerId($customer->getId());
        } else {
            $this->setStoreId(Mage::app()->getStore()->getId());
            $this->setCustomerId(0);
            $isNewSubscriber = true;
        }

Initial URL
http://jerie.de/magento/magento-newsletter-fur-deutschland/

Initial Description
Damit meine Änderungen bei einem nächsten Update von Magento nicht überschrieben werden, kopiere ich mir die Datei inklusive Verzeichnisstruktur aus dem “core” ins “local” Verzeichnis.

Quelle: app/code/core/Mage/Newsletter/Model/Subscriber.php

Ziel: app/code/local/Mage/Newsletter/Model/Subscriber.php

Initial Title
Magento Newsletter mit double opt. in auch bei bestandskunden

Initial Tags


Initial Language
Other