How to Add the Delivery Date Field on a Checkout Page in Magento

Dec 13, 2016825
How to Add the Delivery Date Field on a Checkout Page in Magento

To add a new field on a checkout page you need to use the Dependency Injection mechanism. For that let’s add the file di.xml to the frontend configuration of the module. Here is the path to the file:

<VENDOR_NAME>/<MODULE_NAME>/etc/frontend/di.xml

The content of the file di.xml:

Next, we need to add the implementation of LayoutProcessorPlugin into the module by adding the following file:

VENDOR_NAME/MODULE_NAME/Model/Checkout/LayoutProcessorPlugin.php

Here is how the final implementation looks like:

Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Andrey


Partner With Us Looking for a partner to grow your business? We are the right company to bring your webstore to success. Talk to Andrey

2 Comments

  1. Nice Information. But how to save these in sales table and display anywhere?

Post a new comment

top
BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *