How to place custom template (phtml) file in local module direcotry instead of default template directoryMagento custom module - cannot load layout file via XMLMagento Custom theme template file is not callingMagento custom adminhtml template gets overwritten by default templateoverride payment/methods.phtml in custom extensionCustom module not loading .phtml fileHow to overwrite crosssell template in custom module?how to call another plugin block method in custom template file in magentoshow .phtml file in admin custom moduleHow to get the breadcrumbs in my custom module phtml file?Magento Override frontend template in custom module file

Do I care if the housing market has gone up or down, if I'm moving from one house to another?

What should I watch before playing Alien: Isolation?

Impact of throwing away fruit waste on a peak > 3200 m above a glacier

I have a domain, static IP and many devices I'd like to access outside my house. How to route them?

Why is there an extra "t" in Lemmatization?

How does mathematics work?

MITM on HTTPS traffic in Kazakhstan 2019

Cargo capacity of a kayak

Found more old paper shares from broken up companies

Count the identical pairs in two lists

Reissue US, UK, Canada visas in stolen passports

What do Unicorns want?

Can "Taking algebraic closure" be made into a functor?

Why didn't NASA launch communications relay satellites for the Apollo missions?

Is there an English word to describe when a sound "protrudes"?

Is it better to merge "often" or only after completion do a big merge of feature branches?

Can I make Ubuntu 18.04 switch between multiple windows of the program by just clicking the icon?

I am a dual citizen of United States and Mexico, can I use my Mexican license in california when visiting?

What does a black-and-white Puerto Rican flag signify?

Is there any direct train from LHR Airport to Newcastle Gateshead?

Does Mathematica 12 support GT 730 CUDA?

Oriented vector bundle with odd-dimensional fibers

You have no, but can try for yes

On a Gameboy, what happens when attempting to read/write external RAM while RAM is disabled?



How to place custom template (phtml) file in local module direcotry instead of default template directory


Magento custom module - cannot load layout file via XMLMagento Custom theme template file is not callingMagento custom adminhtml template gets overwritten by default templateoverride payment/methods.phtml in custom extensionCustom module not loading .phtml fileHow to overwrite crosssell template in custom module?how to call another plugin block method in custom template file in magentoshow .phtml file in admin custom moduleHow to get the breadcrumbs in my custom module phtml file?Magento Override frontend template in custom module file






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I am creating a new module for my Magento project where I have a few template files which get appended to >catalog_product_view catalog_category_default checkout_cart_index and few other pages.



Currently, I have placed my module configuration file in design/fontend/base/default/layout/modulename_subfolder.xml and template file is placed at



design/frontend/base/default/template/modulename/subfolder/my_product_view.phtml


I want to move this XML and phtml files to local/modulename/subfolder



I have tried creating the same folder structure in my module folder but it didn't work



design/fontend/base/default/layout/modulename_subfolder.xml



<layout version="0.1.0">
<catalog_product_view>
<reference name="content">
<block type="core/template" name="modulename_subfolder_product_view_block" template="modulename/subfolder/my_catalog_product_view.phtml" />
</reference>
</catalog_product_view>
</layout>









share|improve this question






























    0















    I am creating a new module for my Magento project where I have a few template files which get appended to >catalog_product_view catalog_category_default checkout_cart_index and few other pages.



    Currently, I have placed my module configuration file in design/fontend/base/default/layout/modulename_subfolder.xml and template file is placed at



    design/frontend/base/default/template/modulename/subfolder/my_product_view.phtml


    I want to move this XML and phtml files to local/modulename/subfolder



    I have tried creating the same folder structure in my module folder but it didn't work



    design/fontend/base/default/layout/modulename_subfolder.xml



    <layout version="0.1.0">
    <catalog_product_view>
    <reference name="content">
    <block type="core/template" name="modulename_subfolder_product_view_block" template="modulename/subfolder/my_catalog_product_view.phtml" />
    </reference>
    </catalog_product_view>
    </layout>









    share|improve this question


























      0












      0








      0








      I am creating a new module for my Magento project where I have a few template files which get appended to >catalog_product_view catalog_category_default checkout_cart_index and few other pages.



      Currently, I have placed my module configuration file in design/fontend/base/default/layout/modulename_subfolder.xml and template file is placed at



      design/frontend/base/default/template/modulename/subfolder/my_product_view.phtml


      I want to move this XML and phtml files to local/modulename/subfolder



      I have tried creating the same folder structure in my module folder but it didn't work



      design/fontend/base/default/layout/modulename_subfolder.xml



      <layout version="0.1.0">
      <catalog_product_view>
      <reference name="content">
      <block type="core/template" name="modulename_subfolder_product_view_block" template="modulename/subfolder/my_catalog_product_view.phtml" />
      </reference>
      </catalog_product_view>
      </layout>









      share|improve this question
















      I am creating a new module for my Magento project where I have a few template files which get appended to >catalog_product_view catalog_category_default checkout_cart_index and few other pages.



      Currently, I have placed my module configuration file in design/fontend/base/default/layout/modulename_subfolder.xml and template file is placed at



      design/frontend/base/default/template/modulename/subfolder/my_product_view.phtml


      I want to move this XML and phtml files to local/modulename/subfolder



      I have tried creating the same folder structure in my module folder but it didn't work



      design/fontend/base/default/layout/modulename_subfolder.xml



      <layout version="0.1.0">
      <catalog_product_view>
      <reference name="content">
      <block type="core/template" name="modulename_subfolder_product_view_block" template="modulename/subfolder/my_catalog_product_view.phtml" />
      </reference>
      </catalog_product_view>
      </layout>






      magento-1.9 module phtml






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 13 at 7:01









      Rk Rathod

      2,6703 silver badges23 bronze badges




      2,6703 silver badges23 bronze badges










      asked Jul 13 at 6:59









      ParvezParvez

      32 bronze badges




      32 bronze badges




















          1 Answer
          1






          active

          oldest

          votes


















          0














          You can't.



          In Magento 1, module code (Models, Blocks, configuration etc) goes in app/code/local/ or app/code/community, frontend template files go in app/design/frontend/base/default/template and frontend layout files go in app/design/frontend/base/default/layout.



          Yes, this means modules are not self-contained and end up scattered through the Magento filesystem. It's one of the major shortcomings of Magento 1 and was thankfully rectified in Magento 2. There are workarounds including modman which is used extensively by extension developers, but they are only workarounds and don't fix the situation.






          share|improve this answer

























            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%2f281960%2fhow-to-place-custom-template-phtml-file-in-local-module-direcotry-instead-of-d%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









            0














            You can't.



            In Magento 1, module code (Models, Blocks, configuration etc) goes in app/code/local/ or app/code/community, frontend template files go in app/design/frontend/base/default/template and frontend layout files go in app/design/frontend/base/default/layout.



            Yes, this means modules are not self-contained and end up scattered through the Magento filesystem. It's one of the major shortcomings of Magento 1 and was thankfully rectified in Magento 2. There are workarounds including modman which is used extensively by extension developers, but they are only workarounds and don't fix the situation.






            share|improve this answer



























              0














              You can't.



              In Magento 1, module code (Models, Blocks, configuration etc) goes in app/code/local/ or app/code/community, frontend template files go in app/design/frontend/base/default/template and frontend layout files go in app/design/frontend/base/default/layout.



              Yes, this means modules are not self-contained and end up scattered through the Magento filesystem. It's one of the major shortcomings of Magento 1 and was thankfully rectified in Magento 2. There are workarounds including modman which is used extensively by extension developers, but they are only workarounds and don't fix the situation.






              share|improve this answer

























                0












                0








                0







                You can't.



                In Magento 1, module code (Models, Blocks, configuration etc) goes in app/code/local/ or app/code/community, frontend template files go in app/design/frontend/base/default/template and frontend layout files go in app/design/frontend/base/default/layout.



                Yes, this means modules are not self-contained and end up scattered through the Magento filesystem. It's one of the major shortcomings of Magento 1 and was thankfully rectified in Magento 2. There are workarounds including modman which is used extensively by extension developers, but they are only workarounds and don't fix the situation.






                share|improve this answer













                You can't.



                In Magento 1, module code (Models, Blocks, configuration etc) goes in app/code/local/ or app/code/community, frontend template files go in app/design/frontend/base/default/template and frontend layout files go in app/design/frontend/base/default/layout.



                Yes, this means modules are not self-contained and end up scattered through the Magento filesystem. It's one of the major shortcomings of Magento 1 and was thankfully rectified in Magento 2. There are workarounds including modman which is used extensively by extension developers, but they are only workarounds and don't fix the situation.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jul 13 at 14:17









                BlueCBlueC

                6795 silver badges15 bronze badges




                6795 silver badges15 bronze badges



























                    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%2f281960%2fhow-to-place-custom-template-phtml-file-in-local-module-direcotry-instead-of-d%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

                    Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

                    Log in Navigation menu

                    Invalid response line returned from server: HTTP/2 401 | ErrorPlease Please Help With Error 500 Internal Server Error after upgrading from 1.7 to 1.9Unable to place new customer orders in admin backendMagento - For “Manage Categories” Forbidden You do not have permission to access this documentHTTP ERROR 500 when using require(_once) app/Mage.phpMemcached causing Web Setup Wizard ErrorCould not create an acl object: Invalid XMLAn error occurred on the server. Please try to place the order againInvalid response line returned from server: HTTP/2 200 - message after update to 2.1.7Magento-CE 2.3.0 installation error on XamppMagento 2.2.6- After Migration all default Payment Methods are not working fine