O'Reilly logo

Magento 2 Development Cookbook by Bart Delvaux

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Initializing module configurations

In Chapter 4, Creating a Module, you learned how to create a custom module. In this recipe, we will create a new module where we will add the required settings for a shipping module.

In the later recipes of this chapter, we will extend this module with more shipping features.

Getting ready

Open your IDE with the Magento 2 project. We will also need the backend, where we will check some configurations.

How to do it...

The following steps describe how we can create the configuration for a shipping module:

  1. First, we have to create the following folders:
    • app/code/Packt/
    • app/code/Packt/Shipme/
    • app/code/Packt/Shipme/etc/
    • app/code/Packt/Shipme/Model/
    • app/code/Packt/Shipme/Model/Carrier/
  2. Create a module.xml file in the app/code/Packt/Shipme/etc/ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required