How to know the correct path to extend in Magento?
Clash 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
magento-2.1 shipping-methods folder
New contributor
add a comment |Â
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
magento-2.1 shipping-methods folder
New contributor
add a comment |Â
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
magento-2.1 shipping-methods folder
New contributor
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
magento-2.1 shipping-methods folder
New contributor
New contributor
New contributor
asked 42 mins ago
Daniel Silva
1083
1083
New contributor
New contributor
add a comment |Â
add a comment |Â
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
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
add a comment |Â
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.
add a comment |Â
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
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
add a comment |Â
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
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
add a comment |Â
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
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
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
add a comment |Â
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
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered 26 mins ago
Naveed Asim
2,2521213
2,2521213
add a comment |Â
add a comment |Â
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.
Daniel Silva is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password