In some cases you may want to show a date field in Magento. It is very important to validate the date input in the frontend side. For this, Magento has predefined validation rules. The most common rule for a date…
Tag: magento-2
A composer patch is inevitable when you desperately need a core modification in order to fix a troublesome issue in your end but, the same fix is not available for Magento 2 or the release in which the fix appears…
After hearing the great talk of Willem in Reacticon, I had a plan to explore Alpinejs in a Magento site. I spent some time exploring his idea in a Magento 2 site without removing the requirejs trouble we have right…
We all know that recently viewed products are easy to show anywhere on a Magento 2 website. There are many ways to show recently viewed products. The easiest way would be the widget way. For example, if you add the…
As we all know, there is a feature in Magento1 to set a product as new for a date duration. This feature is available in Magento 2 also. However, I could not find a single place in Magento 2 to…
Magento 2 introduced <head /> and <body /> nodes which we can use in our layout update xml file in order to change it’s contents. However this raises lot of confusions. Here I would like to discuss about a loosely…
If you are a Magento 1 developer, then it would be familiar that M1 has default controller (IndexController.php) and default method (indexAction()). This means, if there is nothing specified after a frontname, for example, a URL looks like www.example.com/frontname/ instead…