Open seansan opened 6 years ago
https://github.com/Turiknox/magento-checkout-newsletter/blob/master/app/code/community/Turiknox/CheckoutNewsletter/Model/Observer.php
this one
if (!$customerEmail) { $customer = Mage::getSingleton('customer/session')->getCustomer(); $customerEmail = $customer->getEmail(); }
here
$quote = Mage::getSingleton('checkout/session')->getQuote(); $customerEmail = $quote->getCustomerEmail(); if (!$customerEmail) { $customerEmail = $quote->getBillingAddress()->getEmail(); } if (!$customerEmail) { $customerEmail = $quote->getBillingAddress()->getEmail(); } if (!$customerEmail) { $customer = Mage::getSingleton('customer/session')->getCustomer(); $customerEmail = $customer->getEmail(); }
https://github.com/Turiknox/magento-checkout-newsletter/blob/master/app/code/community/Turiknox/CheckoutNewsletter/Model/Observer.php
this one
if (!$customerEmail) { $customer = Mage::getSingleton('customer/session')->getCustomer(); $customerEmail = $customer->getEmail(); }
here