/ Published in: Other

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
Quelle: app/code/core/Mage/Newsletter/Model/Subscriber.php
Ziel: app/code/local/Mage/Newsletter/Model/Subscriber.php
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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; }
URL: http://jerie.de/magento/magento-newsletter-fur-deutschland/
Comments
