Blog Posts

Magento 2.3.1: Everything you need to know about the Latest Release

Magento 2.3.1: Everything you need to know about the Latest Release

After witnessing the major Magento 2.3.0 release in November 2018, we are all prepped up to get going with Magento 2.3.1! The Magento geeks were waiting to discover the surprises that were in the store for them in Magento Open Source 2.3.1 and Magento Enterprise, and it’s out now on March 26, 2019. The latest Magento 2.3.1 includes Page Builder Content editing tool, developer and security updates, inventory and performance enhancements and much more! #MagentoCommerce 2.3.1 is now available! New features

Continue Reading

How to Create Plugin in Magento 2

How to Create Plugin in Magento 2

As defined by the official document, “A plugin or interceptor is a class that modifies the behavior of public class functions by intercepting a function call and running code before, after, or around that function call and allows to substitute or extend the behavior of original, public methods for any class or interface.” Simplifying the words, “A plugin or interceptor is a way to insert code dynamically without changing the original class behavior. It allows extending the core functionality without any modification to

Continue Reading

How to Enable Magento Error Log

How to Enable Magento Error Log

It is frustrating when errors don’t leave your code 😰 Even more, you don’t know what is going wrong and where! Been there? Me too. The Magento, by default, does not keep a track of errors and exceptions. However, you can always enable Magento error log to debug the issues. It is a way to tell Magento to save the error logs, which can be later used to audit and solve the errors! Method to Enable Magento Error Log: Log

Continue Reading

9 Ways to Check Magento Version

9 Ways to Check Magento Version

Magento, a popular and widely used E-commerce platform, keeps on releasing the updated versions with improvement and bug fixing. The store owners are expected to keep in pace with these updates to be able to offer the latest features and enhanced security to the shoppers. However, to update the Magento version requires proficiency and thorough information about the current version. To kickstart with the upgrade process, I have compiled a list of methods to check Magento version. Pick any one

Continue Reading

How to Get Simple Product from Magento 2 Configurable Product Before Add to Cart

How to Get Simple Product from Magento 2 Configurable Product Before Add to Cart

As a Magento 2 developer, you come across a variety of business demands that need to be fulfilled to optimize the profit or customer service. As a Magento 2 developer myself, I recently came across a client who sells the configurable products having a different combination of the simple products offering different payment methods. A combination can be bought with recurring payment method and another can be bought as a one time purchase. Now, as the recurring product cannot be combined

Continue Reading

How to Create Console Command in Magento 2

How to Create Console Command in Magento 2

There are certain tasks that you do in a Magento 2 store that are mundane and repetitive and, unfortunately, they’re also often the most important. For example, running a custom cron after a fixed time period, or remove a directory after caching. However, you can turn many of these boring processes into one-command affairs by using the below method to create console command in Magento 2. The custom console commands in Magento 2 are very helpful when you want to

Continue Reading

How to Sort Magento 2 Layered Navigation Attributes Programmatically

How to Sort Magento 2 Layered Navigation Attributes Programmatically

The following post is a solution for the order of the attributes in layered navigation on the category list page. For example, you want to change the sorting in 1-9 and a-z of the layered navigation attributes on the category page. The sole purpose of this sorting is to ease the search of the users and provide them with better user experience. Let’s understand this with an example: If you have a store selling mobile phones of the various brands

Continue Reading

How to Get Magento 2 URL in JS File

How to Get Magento 2 URL in JS File

The post shows the method to get Magento 2 URL in the JS file. For example, you are stuck in a situation where you want to get url from .js file and append it with your module controller link from. Well, it is not possible to use the block to get the url. You may require to get the URL in JS file and it is not recommended to use the static URL as with time, the URL key may change

Continue Reading

How to Add Additional Options in Magento 2

How to Add Additional Options in Magento 2 4

Magento 2 is a feature-rich platform that helps improve the shopping experience. However, many times it lacks in fulfilling the business requirements now that various types of business have its online presence. Luckily, the developers can offer customization to implement out of box functionalities. As a part of such customization, you may want to add additional options in Magento 2 product page, cart page, etc. For example, you want to display a text box to allow customers to add comment

Continue Reading

How to Change Theme in Magento 2

How to Change Theme in Magento 2

If you are a consistent reader of my blog posts, you know what a Magento theme is as I’ve already talked about it. Earlier, I showed how to install a theme in Magento 2 and how to create child theme in Magento 2. A quick recap, the theme in Magento 2 is what defines the appearance of the store in the backend as well as the frontend. Installing the theme in Magento 2 makes your store user-friendly and professional which

Continue Reading

How to Add Custom Field in Address Form in Magento 2

How to Add Custom Field in Address Form in Magento 2

Magento 2 is a widely used platform by various types of businesses. Hence, the checkout page, shipping or billing page may not be the same as the default Magento 2 for every store. According to the business requirement, the address forms may vary. For example, implementing the Indian GST tax in Magento 2 store requires to add Buyer GST number field in the checkout form. It is a custom field that needs to be programmatically added to get buyer GSTIN

Continue Reading