How to copy a module in Magento2?
-
05-03-2021 - |
题
I have created a new module in app/code/namespace/Mymodule
. Now, I'm trying to display the information about Custom_order
or exactly.
I want to copy module sales in vendor/magento/module-sales
. I tried to research, but I can't find any guides specific to the problem I'm having.
This picture show at namespace/sales/order/view/order_id/4/
How can I show in another module?
解决方案
- Go to root > vendor > magento > module-sales
- Download all files from this location
- Created your module at app > code like app/code/namespace/mymodule
- Upload all files from your storage to your newly created module's folder
Then run the following commands:
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f php bin/magento cache:clean