オブザーバーファイルを含むカスタムモジュールを作成しました。ログインしているユーザーに関するすべての情報を表示する必要があります。
オブザーバーファイルを含むカスタムモジュールを作成しました。ログインしているユーザーに関するすべての情報を表示する必要があります。
回答:
イベントを使用するcustomer_login:
<customer_login>
    <observers>
        <yourobservername>
            <type>model</type>
            <class>yourmodule/path_to_class</class>
            <method>customerLogin</method>
        </yourobservername>
    </observers>
</customer_login>オブザーバークラスは次のようになります。
class YourCompany_YourModule_Model_Observer
{
    public function customerLogin($observer)
    {
        $customer = $observer->getCustomer();
    }
}これを試して
    if($customer = Mage::getSingleton('customer/session')->isLoggedIn()) {
$customer =  Mage::getSingleton('customer/session')->getCustomer();
       $customerData = Mage::getModel('customer/customer')->load($customer->getId())->getData();
       //for firstname
       $customerFirstName = $customerData['firstname'];
    }Mage::getSingleton('customer/session')->getCustomer()顧客の詳細を取得するには十分なのに、なぜ顧客インスタンスを再度リロードするのですか?