How to add Datepicker for Custom option Date field in Magento 2?

In Magento 2 you can add Datepicker for a custom option Date Field in Product detail page using enable Javascript Calander. Native Magento doesn’t display Date picker for Date Custom Option field. They just show as a Dropdown option for Day, Month and Year.

You have to enable Javascript Calander from System Configuration.

Continue reading “How to add Datepicker for Custom option Date field in Magento 2?”

What is Unit Testing in Magento 2?

Unit Testing Definition:

— UNIT TESTING is a software development process where individual units from a functional(programming) file or components of the software are tested automatically using code level.
— Main Intention for a Unit test is to validate each unit of the software performs as logic designed.
— The unit testing process is completely automatic without any manual testing for functionality.

Continue reading “What is Unit Testing in Magento 2?”

What is the difference between Password and Obscure type in Magento 2?

Password and Obscure both field are the element types used for System.xml file.

1.  Obscure:  You can define Obscure type using type=”obscure”. Hide value to make sure it will not show in HTML.

When you forcefully change the type from Obscure to text using Inspect element still you can’t able to see actual value for an obscure type.

Continue reading “What is the difference between Password and Obscure type in Magento 2?”