Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Date: 3/30/16
- * Time: 3:36 PM
- */
- class Swarming_Yardmaster_Block_Customer_Account_Dashboard_Hello extends Mage_Customer_Block_Account_Dashboard_Hello {
- public function getCustomerName()
- {
- if (Mage::getSingleton('customer/session')->getCustomer()->getName()) {
- return Mage::getSingleton('customer/session')->getCustomer()->getName();
- } else {
- $parts = explode('@', Mage::getSingleton('customer/session')->getCustomer()->getEmail());
- $user = $parts[0];
- echo ', ' . $user;
- }
- }
- }
Add Comment
Please, Sign In to add comment