Book Image

Magento 2 Development Cookbook

Book Image

Magento 2 Development Cookbook

Overview of this book

With the challenges of growing an online business, Magento 2 is an open source e-commerce platform with innumerable functionalities that gives you the freedom to make on-the-fly decisions. It allows you to customize multiple levels of security permissions and enhance the look and feel of your website, and thus gives you a personalized experience in promoting your business.
Table of Contents (13 chapters)
12
Index

Adding the module in the frontend


In the previous recipes, we created configurations for a new shipping method. We have seen that we can configure this in the backend. Now, it is time to test the shipping method in the frontend. We will create a test order with the shipping method that we have created in this chapter.

Getting ready

We need the shipping module that we created in the previous recipes. Ensure you have the right files installed.

How to do it...

The following steps describe how the order flow works in Magento:

  1. Log in to the backend.

  2. Navigate to the configuration of the shipping method. You can find this by navigating to Stores | Configuration | Sales | Shipping Methods | Shipme.

  3. Check whether all the values are correct for the Shipme - Express method. Ensure that everything is enabled.

  4. Save the configuration.

  5. In the frontend, add a product to the shopping cart and proceed to checkout.

    Note

    In Chapter 7, Event Handlers and Cronjobs, we created an event that checks whether the quantity is...