Magento 2 Estimated Delivery Date Manual Configuration

Estimated Delivery Date module will automatically add "Delivery Dates" on Product Page if enabled in back-end. However, you can change standard "Delivery Date" display or position in the front-end. To do this follow the instructions below.

Product Page

In order to have the Delivery Date displayed on the product page - please make the following steps on your server :
1. Create file:

after="-" means that block with estimated delivery dates has been placed into container.
CONTAINER_OR_BLOCK_NAME after all the blocks.
before=”-” can be used, if you need to place it before other blocks. Instead of “-” you can use name of specific block, if you need to place estimated delivery dates before or after it.

Allows to get the product for which the dates will be shown. Note: If no product was indicated manually - current product will be returned on Product Page.

getCategory()

Allows to get the category the dates will be shown for. Note: If no category was indicated manually - current category will be returned on Product Page or Category Page.

reset()

Allows to clear all current settings. After calling this method, the other methods (getProduct and getCategory) will return current product (on Product Page) and current category (on Product Page or Category Page) accordingly.
This method comes handy for displaying dates of custom products (categories) on the product (category) page, and for returning to default settings.

Example code of layout.xml file:

Let's display block with date for the product by inserting it into the layout: