1

Is it Possible to add a sub menu in customer account dashboard? Example:

ACCOUNT DASHBOARD
ACCOUNT INFORMATION
...
...
...
CUSTOM LINK
    -sub menu 1
    -sub menu 2
    -sub menu 3

Could anybody help me on this?

navigation.phtml

 <ul>
        <?php $_links = $this->getLinks(); ?>
        <?php $_index = 1; ?>
        <?php $_count = count($_links); ?>
        <?php foreach ($_links as $_link): ?>
            <?php $_last = ($_index++ >= $_count); ?>
            <?php if ($this->isActive($_link)): ?>
                <li class="current<?php echo ($_last ? ' last' : '') ?>"><a href="<?php echo $_link->getUrl() ?>"><strong><?php echo $_link->getLabel() ?></strong></a><ul><li>aaaa</li></ul></li>
            <?php else: ?>
                <li<?php echo ($_last ? ' class="last"' : '') ?>><a href="<?php echo $_link->getUrl() ?>"><?php echo $_link->getLabel() ?></a><ul><li>aaaa</li></ul></li>
                <li<?php echo ($_last ? ' class="last"' : '') ?>><a href="<?php echo $_link->getUrl() ?>"><?php echo $_link->getLabel() ?></a><ul><li>aaaa</li></ul></li>
            <?php endif; ?>
        <?php endforeach; ?>
    </ul>
  • Not possible in default magento.Need some customization in file default\template\customer\account\navigation.phtml – Abdul Dec 3 '15 at 9:03
  • what sort of customization ? cause I tried there to put nested list but it didn't work – Akash Dec 3 '15 at 9:15
  • can you share your code – Abdul Dec 3 '15 at 9:15

Your Answer

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

Browse other questions tagged or ask your own question.