How to know the correct path to extend in Magento?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





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







up vote
1
down vote

favorite












I am new in Magento. I am having a lot of problems to achieve each step in the learning curve.
I needed to add a custom shipping method. I was fallowging this tutorial:
https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/
Is not working for me, maybe because multiple causes. But for example, I see the class Shipping is extending from "MagentoShippingModelCarrierAbstractCarrier" but I don´t have this path in my Magento folder.
I have Magento CE 2.1.
That changes for each version? I am really confused, :(.
Thank you very much










share|improve this question







New contributor




Daniel Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    up vote
    1
    down vote

    favorite












    I am new in Magento. I am having a lot of problems to achieve each step in the learning curve.
    I needed to add a custom shipping method. I was fallowging this tutorial:
    https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/
    Is not working for me, maybe because multiple causes. But for example, I see the class Shipping is extending from "MagentoShippingModelCarrierAbstractCarrier" but I don´t have this path in my Magento folder.
    I have Magento CE 2.1.
    That changes for each version? I am really confused, :(.
    Thank you very much










    share|improve this question







    New contributor




    Daniel Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I am new in Magento. I am having a lot of problems to achieve each step in the learning curve.
      I needed to add a custom shipping method. I was fallowging this tutorial:
      https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/
      Is not working for me, maybe because multiple causes. But for example, I see the class Shipping is extending from "MagentoShippingModelCarrierAbstractCarrier" but I don´t have this path in my Magento folder.
      I have Magento CE 2.1.
      That changes for each version? I am really confused, :(.
      Thank you very much










      share|improve this question







      New contributor




      Daniel Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I am new in Magento. I am having a lot of problems to achieve each step in the learning curve.
      I needed to add a custom shipping method. I was fallowging this tutorial:
      https://www.mageplaza.com/devdocs/magento-2-create-shipping-method/
      Is not working for me, maybe because multiple causes. But for example, I see the class Shipping is extending from "MagentoShippingModelCarrierAbstractCarrier" but I don´t have this path in my Magento folder.
      I have Magento CE 2.1.
      That changes for each version? I am really confused, :(.
      Thank you very much







      magento-2.1 shipping-methods folder






      share|improve this question







      New contributor




      Daniel Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Daniel Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Daniel Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 42 mins ago









      Daniel Silva

      1083




      1083




      New contributor




      Daniel Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Daniel Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Daniel Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          if you looking for path for Magento core modules, you could check on this folder :



          <magento_root>/vendor/magento/*



          especially for the module that you mention MagentoShippingModelCarrierAbstractCarrier you could get that class file on this path<magento_root>/vendor/magento/module-shipping/model/carrier/AbstractCarrier.php






          share|improve this answer




















          • Great @mrfizh sounds good. Thanks for your answer. I realized now that this notation(a/b/c/d) is for namespacing nesting and not related with the file path.
            – Daniel Silva
            27 mins ago










          • you're welcome glad to help you. yes that right, magento 2 uses that notation as namespacing, you will get same case with 3rd plugin that installed from the composer
            – mrfizh
            22 mins ago











          • Hey @mrfizh sorry for bother you. I am receiving this error now, after follow steps of the tutorial. Any Ideas? (or do you have better tutorial to read to add custom shipping methos? I really need to add them dinamically). "Fatal error: Class MagentoFrameworkConfigFileIterator contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Countable::se) in C:xampphtdocsmagentovendormagentoframeworkConfigFileIterator.php"
            – Daniel Silva
            13 mins ago










          • hmm, I think it's better for you to create new question again, and post your code that already you wrote, it will make easy for me and other users to help you :)
            – mrfizh
            8 mins ago

















          up vote
          2
          down vote













          When you extend any file ( which is in vendor/magento/module-x folder ) its path is always start with MagentoX so in your case if you are extending file from module-shipping then its path would be MagentoShipping.



          so here you will see module is replaced with Magento and module name will be named with first letter capital i.e shipping will become Shipping.






          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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );






            Daniel Silva is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f246000%2fhow-to-know-the-correct-path-to-extend-in-magento%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted










            if you looking for path for Magento core modules, you could check on this folder :



            <magento_root>/vendor/magento/*



            especially for the module that you mention MagentoShippingModelCarrierAbstractCarrier you could get that class file on this path<magento_root>/vendor/magento/module-shipping/model/carrier/AbstractCarrier.php






            share|improve this answer




















            • Great @mrfizh sounds good. Thanks for your answer. I realized now that this notation(a/b/c/d) is for namespacing nesting and not related with the file path.
              – Daniel Silva
              27 mins ago










            • you're welcome glad to help you. yes that right, magento 2 uses that notation as namespacing, you will get same case with 3rd plugin that installed from the composer
              – mrfizh
              22 mins ago











            • Hey @mrfizh sorry for bother you. I am receiving this error now, after follow steps of the tutorial. Any Ideas? (or do you have better tutorial to read to add custom shipping methos? I really need to add them dinamically). "Fatal error: Class MagentoFrameworkConfigFileIterator contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Countable::se) in C:xampphtdocsmagentovendormagentoframeworkConfigFileIterator.php"
              – Daniel Silva
              13 mins ago










            • hmm, I think it's better for you to create new question again, and post your code that already you wrote, it will make easy for me and other users to help you :)
              – mrfizh
              8 mins ago














            up vote
            1
            down vote



            accepted










            if you looking for path for Magento core modules, you could check on this folder :



            <magento_root>/vendor/magento/*



            especially for the module that you mention MagentoShippingModelCarrierAbstractCarrier you could get that class file on this path<magento_root>/vendor/magento/module-shipping/model/carrier/AbstractCarrier.php






            share|improve this answer




















            • Great @mrfizh sounds good. Thanks for your answer. I realized now that this notation(a/b/c/d) is for namespacing nesting and not related with the file path.
              – Daniel Silva
              27 mins ago










            • you're welcome glad to help you. yes that right, magento 2 uses that notation as namespacing, you will get same case with 3rd plugin that installed from the composer
              – mrfizh
              22 mins ago











            • Hey @mrfizh sorry for bother you. I am receiving this error now, after follow steps of the tutorial. Any Ideas? (or do you have better tutorial to read to add custom shipping methos? I really need to add them dinamically). "Fatal error: Class MagentoFrameworkConfigFileIterator contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Countable::se) in C:xampphtdocsmagentovendormagentoframeworkConfigFileIterator.php"
              – Daniel Silva
              13 mins ago










            • hmm, I think it's better for you to create new question again, and post your code that already you wrote, it will make easy for me and other users to help you :)
              – mrfizh
              8 mins ago












            up vote
            1
            down vote



            accepted







            up vote
            1
            down vote



            accepted






            if you looking for path for Magento core modules, you could check on this folder :



            <magento_root>/vendor/magento/*



            especially for the module that you mention MagentoShippingModelCarrierAbstractCarrier you could get that class file on this path<magento_root>/vendor/magento/module-shipping/model/carrier/AbstractCarrier.php






            share|improve this answer












            if you looking for path for Magento core modules, you could check on this folder :



            <magento_root>/vendor/magento/*



            especially for the module that you mention MagentoShippingModelCarrierAbstractCarrier you could get that class file on this path<magento_root>/vendor/magento/module-shipping/model/carrier/AbstractCarrier.php







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 33 mins ago









            mrfizh

            3971320




            3971320











            • Great @mrfizh sounds good. Thanks for your answer. I realized now that this notation(a/b/c/d) is for namespacing nesting and not related with the file path.
              – Daniel Silva
              27 mins ago










            • you're welcome glad to help you. yes that right, magento 2 uses that notation as namespacing, you will get same case with 3rd plugin that installed from the composer
              – mrfizh
              22 mins ago











            • Hey @mrfizh sorry for bother you. I am receiving this error now, after follow steps of the tutorial. Any Ideas? (or do you have better tutorial to read to add custom shipping methos? I really need to add them dinamically). "Fatal error: Class MagentoFrameworkConfigFileIterator contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Countable::se) in C:xampphtdocsmagentovendormagentoframeworkConfigFileIterator.php"
              – Daniel Silva
              13 mins ago










            • hmm, I think it's better for you to create new question again, and post your code that already you wrote, it will make easy for me and other users to help you :)
              – mrfizh
              8 mins ago
















            • Great @mrfizh sounds good. Thanks for your answer. I realized now that this notation(a/b/c/d) is for namespacing nesting and not related with the file path.
              – Daniel Silva
              27 mins ago










            • you're welcome glad to help you. yes that right, magento 2 uses that notation as namespacing, you will get same case with 3rd plugin that installed from the composer
              – mrfizh
              22 mins ago











            • Hey @mrfizh sorry for bother you. I am receiving this error now, after follow steps of the tutorial. Any Ideas? (or do you have better tutorial to read to add custom shipping methos? I really need to add them dinamically). "Fatal error: Class MagentoFrameworkConfigFileIterator contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Countable::se) in C:xampphtdocsmagentovendormagentoframeworkConfigFileIterator.php"
              – Daniel Silva
              13 mins ago










            • hmm, I think it's better for you to create new question again, and post your code that already you wrote, it will make easy for me and other users to help you :)
              – mrfizh
              8 mins ago















            Great @mrfizh sounds good. Thanks for your answer. I realized now that this notation(a/b/c/d) is for namespacing nesting and not related with the file path.
            – Daniel Silva
            27 mins ago




            Great @mrfizh sounds good. Thanks for your answer. I realized now that this notation(a/b/c/d) is for namespacing nesting and not related with the file path.
            – Daniel Silva
            27 mins ago












            you're welcome glad to help you. yes that right, magento 2 uses that notation as namespacing, you will get same case with 3rd plugin that installed from the composer
            – mrfizh
            22 mins ago





            you're welcome glad to help you. yes that right, magento 2 uses that notation as namespacing, you will get same case with 3rd plugin that installed from the composer
            – mrfizh
            22 mins ago













            Hey @mrfizh sorry for bother you. I am receiving this error now, after follow steps of the tutorial. Any Ideas? (or do you have better tutorial to read to add custom shipping methos? I really need to add them dinamically). "Fatal error: Class MagentoFrameworkConfigFileIterator contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Countable::se) in C:xampphtdocsmagentovendormagentoframeworkConfigFileIterator.php"
            – Daniel Silva
            13 mins ago




            Hey @mrfizh sorry for bother you. I am receiving this error now, after follow steps of the tutorial. Any Ideas? (or do you have better tutorial to read to add custom shipping methos? I really need to add them dinamically). "Fatal error: Class MagentoFrameworkConfigFileIterator contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Countable::se) in C:xampphtdocsmagentovendormagentoframeworkConfigFileIterator.php"
            – Daniel Silva
            13 mins ago












            hmm, I think it's better for you to create new question again, and post your code that already you wrote, it will make easy for me and other users to help you :)
            – mrfizh
            8 mins ago




            hmm, I think it's better for you to create new question again, and post your code that already you wrote, it will make easy for me and other users to help you :)
            – mrfizh
            8 mins ago












            up vote
            2
            down vote













            When you extend any file ( which is in vendor/magento/module-x folder ) its path is always start with MagentoX so in your case if you are extending file from module-shipping then its path would be MagentoShipping.



            so here you will see module is replaced with Magento and module name will be named with first letter capital i.e shipping will become Shipping.






            share|improve this answer
























              up vote
              2
              down vote













              When you extend any file ( which is in vendor/magento/module-x folder ) its path is always start with MagentoX so in your case if you are extending file from module-shipping then its path would be MagentoShipping.



              so here you will see module is replaced with Magento and module name will be named with first letter capital i.e shipping will become Shipping.






              share|improve this answer






















                up vote
                2
                down vote










                up vote
                2
                down vote









                When you extend any file ( which is in vendor/magento/module-x folder ) its path is always start with MagentoX so in your case if you are extending file from module-shipping then its path would be MagentoShipping.



                so here you will see module is replaced with Magento and module name will be named with first letter capital i.e shipping will become Shipping.






                share|improve this answer












                When you extend any file ( which is in vendor/magento/module-x folder ) its path is always start with MagentoX so in your case if you are extending file from module-shipping then its path would be MagentoShipping.



                so here you will see module is replaced with Magento and module name will be named with first letter capital i.e shipping will become Shipping.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 26 mins ago









                Naveed Asim

                2,2521213




                2,2521213




















                    Daniel Silva is a new contributor. Be nice, and check out our Code of Conduct.









                     

                    draft saved


                    draft discarded


















                    Daniel Silva is a new contributor. Be nice, and check out our Code of Conduct.












                    Daniel Silva is a new contributor. Be nice, and check out our Code of Conduct.











                    Daniel Silva is a new contributor. Be nice, and check out our Code of Conduct.













                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f246000%2fhow-to-know-the-correct-path-to-extend-in-magento%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    What does second last employer means? [closed]

                    Installing NextGIS Connect into QGIS 3?

                    One-line joke