news api How to use News API with examples What is the purpose of News api?Before we jump into this it is worth understanding what the News api can do for us. Have you ever used Google News? Now imagine that you can search it’s history based on keywords, phrases or
Magento 2 How to create comments box for Magento 2 shipping methods - part 2 This is the second part of the article. In the first article we created the user interface for inputting the shipping comment, prepared the structure for passing the data as an extension attribute and set the input field to be visible only when specific
Magento 2 How to hide attributes in admin product edit view in Magento 2 Sometimes store owners value simplicity and by default the product edit form is anything but that. If you couple that with the fact that usually stores have dozens of custom attributes and sections for 3rd party vendors we are looking at a very large
Magento 2 How to add new route in Magento 2.4 the correct way In this article lets explore how to add a new route to Magento 2. Before we dive in we need to understand how the routes are built. This will allow you to easily read the code and directory structure and understand what needs to
Magento 2 How to use global search in Magento 2 admin Global search is an under the radar addition in Magento 2 admin panel. The feature allows you to search for a string in various entities like products, orders, customers, configuration
Magento 2 How to debug Magento 2 events and add logs In this article we will explore how to inspect and debug information about events that are being fired. We will also take a look on how we can create a log file with all the events. A better approach would be to use the
Magento 2 How to disable an event observer in Magento 2 As a Magento 2 developer sometimes you might need to completely disable a specific event that is implemented either in native code or a 3rd party module. One option would be to override the observer method however that is not a good practice. Instead
Magento 2 How to configure and pre-select default payment method in Magento 2 checkout In this article we will explore how to create a module that allows you to configure and pre-select any payment method in Magento 2 checkout. Often times it is important
Magento 2 How Magento 2 generates javascript translations during static content deploy Lets dive deeper into how Magento 2 generates the translations. Lets start at the very surface - the one thing we can see from the browser. We know that in
wordpress Make copyright year dynamic in Wordpress It is common to have a year in websites copyright section. Often times you will forget about this area for months or even years - meaning the date often gets
Magento 2 Magento 2 add custom attribute to recently viewed products widget First you will need to create a module. Create the directory structure. In our case it is going to be app/code/Techflarestudio/Recently First you will need to register the module: <?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE,