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…
Author: Rajeev K Tomy
jQuery Event Handler – Effect of Return Statement
Today, I need to discuss the effect of return false usage in an event handler if you are using jQuery. I am providing a simple HTML content to check this out in real time. Here is our HTML content. <!DOCTYPE…
Magento 2: How Products Are Showing in Recently Viewed Products Widget
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…
Magento 2: How to Check Product is New or Not
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: How Can Add Js/Css Through Layout Update XML File
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…
Magento 2: What is Default Controller
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…
Magento 1: Get Final Price of Configurable Associated Product
Here I will show you how we can get the final price of an associated product which is associated with a configurable product. Here above code is very simple to understand. Basically we have instances of both configurable product and…
Magento 1: Attention! Keep All of Your Select Attributes as INT
Yes, You heard it right. It is better to be keep all backend types of your select attributes in INT type. This is so important because that will avoid lot of headaches in future. If you want to know more…
Magento 1: Most Important Things While You Merge Js
Magento has some built-in configurations to merge all css and js files. This is highly helpful since it helps to improve page load speed and thus it improves the overall SEO of our site. How Can Do Merging of CSS…