これが専門家にとっては非常に単純な質問であることを願っていますが、私にとってはそうではありません。
サイトの URL を開くと、顧客のログイン ページに自動リダイレクトされますが、顧客がログインし、ホーム リンクをクリックすると、顧客のダッシュボードまたは顧客情報が表示されます。
誰かが私に解決策を提供してください、私はmagento 1.7.Xを使用しています
前もって感謝します
これが専門家にとっては非常に単純な質問であることを願っていますが、私にとってはそうではありません。
サイトの URL を開くと、顧客のログイン ページに自動リダイレクトされますが、顧客がログインし、ホーム リンクをクリックすると、顧客のダッシュボードまたは顧客情報が表示されます。
誰かが私に解決策を提供してください、私はmagento 1.7.Xを使用しています
前もって感謝します
私の問題は解決しました。cmsページを作成し、このコードを入力してください
{{block type='core/template' template='page/html/custom_login.phtml'}}
次に、ページとコードを作成しました-
`<?php //Check If Customer Is Logged In Or Not.
if (!Mage::getSingleton("customer/session")->isLoggedIn())
{
$session = Mage::getSingleton("customer/session");
// Store The Current Page Url Where User will be redirected once loggedin
$session->setBeforeAuthUrl(Mage::helper("core/url")->getCurrentUrl());
$customerLoginURL = $this->getBaseUrl() . "customer/account/login";
Mage::app()->getFrontController()->getResponse()>setRedirect($customerLoginURL)- >sendResponse();
}else{
//redirect to login
$customerLoginURL = $this->getBaseUrl() . "customer/account/login";
Mage::app()->getFrontController()->getResponse()->setRedirect($customerLoginURL)->sendResponse();
}
?>`
誰かがこれを手伝いたい場合は、これについてコメントしてください