Magento 2 Extensions, Themes & Services

Sonice Best Responsive Magento 2 Theme

Magento 2 – How to add calendar in admin configuration options?

Recently I have found one solution to add calendar in system configuration options. Lets discuss in detail.

Sonice Best Responsive Magento 2 Theme

In order to add calendar in system configuration options, we have to add one system field and require one Block file.

Use below code to add system field.

Now lets create Block file – Calendar.php

Download Free Most Viewed Products Extension

Lets discuss some terms used in this block.
Magewallet – Vendor Name
SytemCalendar – Module Name
calendar.png – add calendar icon image at pub/media/systemcalendar/ directory

Thats it. Enjoy Magento 2!! Enjoy Magewallet!!!

Mahendra Paladiya
Mahendra is a Web Developer whose passions includes web development, technical blog writing, and database management. His passion for web development pushed him into learning how to handle different platforms like Core PHP, Magento, Prestashop, WordPress, CodeIgniter, CakePHP and Oracle.

1 Comment

  1. Kiley Dilliard

    May 21, 2016 at 12:36 pm

    Thanks for the very useful post!! It helps me to solve one case in my custom project..on more thing can you please write tips to add color picker in system configuration.

Leave a Reply

Your email address will not be published.



© 2019 Magewallet

Theme by Anders NorenUp ↑