0

I wants to change My Account to Log in Button in header beside cart option. when user made log in then it should show log out option in header.

Please tell me the code with path.

0

Just going in app\design\frontend\rwd\default\template\page\html and open header.phtml file

Here you see top links div so just add below code for you login and logout.

<?php if (!Mage::getSingleton('customer/session')->isLoggedIn()): ?>
<a href="<?php echo Mage::helper('customer')->getLoginUrl(); ?>"><?php echo $this->__('Login') ?></a>
<?php else: ?>
<a href="<?php echo Mage::helper('customer')->getLogoutUrl(); ?>"><?php echo $this->__('Logout') ?></a>

Just add above code in your theme header file. it's working.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.