How do I add a template for account pages only?How do I add a customer logged in menu to a page from the local.xml fileHow can I know which .css file is used for a certain template?how to display a new root category except default category in magento?Adding template File in customer account pageTemplate/block only showing if customer logged in, not as default or guestAdd extra display mode and template for categoryAdd store code to body as class on all pagesMagento 1.8.1 Shopper 'My Account' menu for mobile versionHow to use Customer Account menu on custom pageAdd customer session object and use in templates

Why does a 97 / 92 key piano exist by Bosendorfer?

Is this saw blade faulty?

Taking the numerator and the denominator

Offset in split text content

Is divisi notation needed for brass or woodwind in an orchestra?

Why didn’t Eve recognize the little cockroach as a living organism?

Can you take a "free object interaction" while incapacitated?

Is there any common country to visit for persons holding UK and Schengen visas?

How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?

How do I lift the insulation blower into the attic?

Extract substring according to regexp with sed or grep

Is there a POSIX way to shutdown a UNIX machine?

Using an older 200A breaker panel on a 60A feeder circuit from house?

Unfrosted light bulb

How to get directions in deep space?

How do you justify more code being written by following clean code practices?

Travelling in US for more than 90 days

How to split IPA spelling into syllables

Make a Bowl of Alphabet Soup

A seasonal riddle

What is the tangent at a sharp point on a curve?

Does capillary rise violate hydrostatic paradox?

Asserting that Atheism and Theism are both faith based positions

Would a primitive species be able to learn English from reading books alone?



How do I add a template for account pages only?


How do I add a customer logged in menu to a page from the local.xml fileHow can I know which .css file is used for a certain template?how to display a new root category except default category in magento?Adding template File in customer account pageTemplate/block only showing if customer logged in, not as default or guestAdd extra display mode and template for categoryAdd store code to body as class on all pagesMagento 1.8.1 Shopper 'My Account' menu for mobile versionHow to use Customer Account menu on custom pageAdd customer session object and use in templates













2















I have a template that needs to be only on account pages and checkout pages.



I have got a menu in the local.xml that is shown when a customer is logged in but I want to show it only on certain pages aswell.










share|improve this question




























    2















    I have a template that needs to be only on account pages and checkout pages.



    I have got a menu in the local.xml that is shown when a customer is logged in but I want to show it only on certain pages aswell.










    share|improve this question


























      2












      2








      2








      I have a template that needs to be only on account pages and checkout pages.



      I have got a menu in the local.xml that is shown when a customer is logged in but I want to show it only on certain pages aswell.










      share|improve this question
















      I have a template that needs to be only on account pages and checkout pages.



      I have got a menu in the local.xml that is shown when a customer is logged in but I want to show it only on certain pages aswell.







      magento-1.7 template blocks menu






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 19 mins ago









      Teja Bhagavan Kollepara

      3,00641949




      3,00641949










      asked Sep 13 '13 at 13:41









      M dunbavanM dunbavan

      179139




      179139




















          1 Answer
          1






          active

          oldest

          votes


















          2














          You can target specific pages by using their respective handles.



          Add the following to your local.xml



          <checkout_cart_index>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </checkout_cart_index>

          <checkout_onepage_index>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </checkout_onepage_index>

          <customer_account>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </customer_account>

          <customer_logged_out>
          <remove name="custom_menu"/>
          </customer_logged_out>


          Guessing the menu would be added in the header of your webshop this will add it to the cart, checkout and customer account section ONLY for logged in users.



          I've used the customer_logged_out handle to remove the menu when a user is not logged in. Somewhat along the lines of what you've discribed in your question.



          Now you can call the menu by adding the following code in your header.phtml where you want to display the menu.



          <?php echo $this->getChildHtml('custom_menu');?>





          share|improve this answer




















          • 1





            Does this go into local.xml?

            – M dunbavan
            Sep 13 '13 at 13:53











          • Yes it does, should have mentioned this :)

            – Sander Mangel
            Sep 13 '13 at 13:54











          • Will this automatically show in the header or will I need to call <?php echo $this->getChildHtml('my_account_menu_block') ?>?

            – M dunbavan
            Sep 13 '13 at 13:55











          • You will need to call it. It will only be automatically added of a PHTML file has echo $this->getChildHtml() without a key in it.

            – Sander Mangel
            Sep 13 '13 at 13:57











          • So adding <?php echo $this->getChildHtml('my_account_menu_block') ?> into my header will call the block but only on account pages and checkout pages?

            – M dunbavan
            Sep 13 '13 at 13:59










          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f7958%2fhow-do-i-add-a-template-for-account-pages-only%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          You can target specific pages by using their respective handles.



          Add the following to your local.xml



          <checkout_cart_index>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </checkout_cart_index>

          <checkout_onepage_index>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </checkout_onepage_index>

          <customer_account>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </customer_account>

          <customer_logged_out>
          <remove name="custom_menu"/>
          </customer_logged_out>


          Guessing the menu would be added in the header of your webshop this will add it to the cart, checkout and customer account section ONLY for logged in users.



          I've used the customer_logged_out handle to remove the menu when a user is not logged in. Somewhat along the lines of what you've discribed in your question.



          Now you can call the menu by adding the following code in your header.phtml where you want to display the menu.



          <?php echo $this->getChildHtml('custom_menu');?>





          share|improve this answer




















          • 1





            Does this go into local.xml?

            – M dunbavan
            Sep 13 '13 at 13:53











          • Yes it does, should have mentioned this :)

            – Sander Mangel
            Sep 13 '13 at 13:54











          • Will this automatically show in the header or will I need to call <?php echo $this->getChildHtml('my_account_menu_block') ?>?

            – M dunbavan
            Sep 13 '13 at 13:55











          • You will need to call it. It will only be automatically added of a PHTML file has echo $this->getChildHtml() without a key in it.

            – Sander Mangel
            Sep 13 '13 at 13:57











          • So adding <?php echo $this->getChildHtml('my_account_menu_block') ?> into my header will call the block but only on account pages and checkout pages?

            – M dunbavan
            Sep 13 '13 at 13:59















          2














          You can target specific pages by using their respective handles.



          Add the following to your local.xml



          <checkout_cart_index>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </checkout_cart_index>

          <checkout_onepage_index>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </checkout_onepage_index>

          <customer_account>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </customer_account>

          <customer_logged_out>
          <remove name="custom_menu"/>
          </customer_logged_out>


          Guessing the menu would be added in the header of your webshop this will add it to the cart, checkout and customer account section ONLY for logged in users.



          I've used the customer_logged_out handle to remove the menu when a user is not logged in. Somewhat along the lines of what you've discribed in your question.



          Now you can call the menu by adding the following code in your header.phtml where you want to display the menu.



          <?php echo $this->getChildHtml('custom_menu');?>





          share|improve this answer




















          • 1





            Does this go into local.xml?

            – M dunbavan
            Sep 13 '13 at 13:53











          • Yes it does, should have mentioned this :)

            – Sander Mangel
            Sep 13 '13 at 13:54











          • Will this automatically show in the header or will I need to call <?php echo $this->getChildHtml('my_account_menu_block') ?>?

            – M dunbavan
            Sep 13 '13 at 13:55











          • You will need to call it. It will only be automatically added of a PHTML file has echo $this->getChildHtml() without a key in it.

            – Sander Mangel
            Sep 13 '13 at 13:57











          • So adding <?php echo $this->getChildHtml('my_account_menu_block') ?> into my header will call the block but only on account pages and checkout pages?

            – M dunbavan
            Sep 13 '13 at 13:59













          2












          2








          2







          You can target specific pages by using their respective handles.



          Add the following to your local.xml



          <checkout_cart_index>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </checkout_cart_index>

          <checkout_onepage_index>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </checkout_onepage_index>

          <customer_account>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </customer_account>

          <customer_logged_out>
          <remove name="custom_menu"/>
          </customer_logged_out>


          Guessing the menu would be added in the header of your webshop this will add it to the cart, checkout and customer account section ONLY for logged in users.



          I've used the customer_logged_out handle to remove the menu when a user is not logged in. Somewhat along the lines of what you've discribed in your question.



          Now you can call the menu by adding the following code in your header.phtml where you want to display the menu.



          <?php echo $this->getChildHtml('custom_menu');?>





          share|improve this answer















          You can target specific pages by using their respective handles.



          Add the following to your local.xml



          <checkout_cart_index>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </checkout_cart_index>

          <checkout_onepage_index>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </checkout_onepage_index>

          <customer_account>
          <reference name="header">
          <block type="menu/block" name="custom_menu" template="custommenu/template.phtml"/>
          </reference>
          </customer_account>

          <customer_logged_out>
          <remove name="custom_menu"/>
          </customer_logged_out>


          Guessing the menu would be added in the header of your webshop this will add it to the cart, checkout and customer account section ONLY for logged in users.



          I've used the customer_logged_out handle to remove the menu when a user is not logged in. Somewhat along the lines of what you've discribed in your question.



          Now you can call the menu by adding the following code in your header.phtml where you want to display the menu.



          <?php echo $this->getChildHtml('custom_menu');?>






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Sep 13 '13 at 14:01

























          answered Sep 13 '13 at 13:48









          Sander MangelSander Mangel

          34.9k570137




          34.9k570137







          • 1





            Does this go into local.xml?

            – M dunbavan
            Sep 13 '13 at 13:53











          • Yes it does, should have mentioned this :)

            – Sander Mangel
            Sep 13 '13 at 13:54











          • Will this automatically show in the header or will I need to call <?php echo $this->getChildHtml('my_account_menu_block') ?>?

            – M dunbavan
            Sep 13 '13 at 13:55











          • You will need to call it. It will only be automatically added of a PHTML file has echo $this->getChildHtml() without a key in it.

            – Sander Mangel
            Sep 13 '13 at 13:57











          • So adding <?php echo $this->getChildHtml('my_account_menu_block') ?> into my header will call the block but only on account pages and checkout pages?

            – M dunbavan
            Sep 13 '13 at 13:59












          • 1





            Does this go into local.xml?

            – M dunbavan
            Sep 13 '13 at 13:53











          • Yes it does, should have mentioned this :)

            – Sander Mangel
            Sep 13 '13 at 13:54











          • Will this automatically show in the header or will I need to call <?php echo $this->getChildHtml('my_account_menu_block') ?>?

            – M dunbavan
            Sep 13 '13 at 13:55











          • You will need to call it. It will only be automatically added of a PHTML file has echo $this->getChildHtml() without a key in it.

            – Sander Mangel
            Sep 13 '13 at 13:57











          • So adding <?php echo $this->getChildHtml('my_account_menu_block') ?> into my header will call the block but only on account pages and checkout pages?

            – M dunbavan
            Sep 13 '13 at 13:59







          1




          1





          Does this go into local.xml?

          – M dunbavan
          Sep 13 '13 at 13:53





          Does this go into local.xml?

          – M dunbavan
          Sep 13 '13 at 13:53













          Yes it does, should have mentioned this :)

          – Sander Mangel
          Sep 13 '13 at 13:54





          Yes it does, should have mentioned this :)

          – Sander Mangel
          Sep 13 '13 at 13:54













          Will this automatically show in the header or will I need to call <?php echo $this->getChildHtml('my_account_menu_block') ?>?

          – M dunbavan
          Sep 13 '13 at 13:55





          Will this automatically show in the header or will I need to call <?php echo $this->getChildHtml('my_account_menu_block') ?>?

          – M dunbavan
          Sep 13 '13 at 13:55













          You will need to call it. It will only be automatically added of a PHTML file has echo $this->getChildHtml() without a key in it.

          – Sander Mangel
          Sep 13 '13 at 13:57





          You will need to call it. It will only be automatically added of a PHTML file has echo $this->getChildHtml() without a key in it.

          – Sander Mangel
          Sep 13 '13 at 13:57













          So adding <?php echo $this->getChildHtml('my_account_menu_block') ?> into my header will call the block but only on account pages and checkout pages?

          – M dunbavan
          Sep 13 '13 at 13:59





          So adding <?php echo $this->getChildHtml('my_account_menu_block') ?> into my header will call the block but only on account pages and checkout pages?

          – M dunbavan
          Sep 13 '13 at 13:59

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f7958%2fhow-do-i-add-a-template-for-account-pages-only%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

          How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2

          Nissan Patrol Зміст Перше покоління — 4W60 (1951-1960) | Друге покоління — 60 series (1960-1980) | Третє покоління (1980–2002) | Четверте покоління — Y60 (1987–1998) | П'яте покоління — Y61 (1997–2013) | Шосте покоління — Y62 (2010- ) | Посилання | Зноски | Навігаційне менюОфіційний український сайтТест-драйв Nissan Patrol 2010 7-го поколінняNissan PatrolКак мы тестировали Nissan Patrol 2016рвиправивши або дописавши її