Tag: Magento 2 (page 1 of 26)

Magento 2 – Issue Fix – CRITICAL Error: Unable To Serialize Value

In this post I am going to explain How to Unable to serialize value. Error : After Magento 2 version upgrade error on check page is as below. “report.CRITICAL: Unable to serialize value. Error: Malformed UTF-8 characters, possible incorrectly encoded.” Please follow the steps to resolve this issue. 1. Create registration.php file at below Path…

Magento 2 – How to Set System Configuration Value Using CLI Command

The SSH access or Command Line Interface (CLI) provides facility for developers to run commands provided by Magento 2 extensions. In this post I am going to explain How to Set System Configuration Value Using CLI Command in Magento 2. Using below commands, you can set or display configuration values To set the value of…

Magento 2 – How to Identify Current Page Type in phtml File

In this post I am going to explain How to Identify Current Page Type in Magento 2. Sometimes when you are working on custom development in Magento 2 then, you need to know what the current type of page being viewed is. You can identify whether the current page is a category page, product page,…

Magento 2 – How to Add Admin Menu

In this post I am going to explain How to add Admin Menu in Magento 2 In Magento 2, we use the menu.xml to add the menu. Follow the steps to create Admin Menu in Magento 2. Step 1: Create menu.xml on below path and add the below content. Path: app/code/<vendor>/<module>/etc/adminhtml/menu.xml <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”…

Top Magento Development Trends to Watch Out for in 2021

Website development has advanced manifolds in recent years as the popularity of digital marketing is growing rapidly. Every type of business can now profit from the online marketing trends, but it is important to have a specific website design suitable for the genre of the business. Magento as a platform is particularly gaining popularity because…

Best Free PWA Themes for Magento 2

Today we are highlighting the Best Free PWA Themes for Your Magento 2 Store. These themes typically offer great features. Using Free PWA Themes that are specially designed for Magento 2 can help them create a unique and functional website. Now, let’s take a look at some of the Best Free PWA Themes for Magento…

Magento 2 – How to Set Default Values for System Configuration Fields

In this post I am going to explain how to Set Default Values for System Configuration Fields in Magento 2. First we will make one “system.xml” file at below path. Path: app/code/<vendor>/<module>/etc/adminhtml/system.xml <?xml version=”1.0″ ?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Config:etc/system_file.xsd”> <system> <tab id=”ht” translate=”label” sortOrder=”999999″> <label>HT</label> </tab> <section id=”mymodulesection” translate=”label” type=”text” sortOrder=”30″ showInDefault=”1″ showInWebsite=”1″ showInStore=”1″> <class>separator-top</class> <label>My…

Top 9+ Free Magento 2 Themes for 2021

In this article, we presents the Top 9+ Free Magento 2 Themes for 2021. They include responsiveness across all devices, easy navigation, captivating interface, and more. It will maximize your user’s interaction with your website.Here, you can find best Free Magento 2 Themes for stores . Now, Let’s check out… 1. Etrend Lite – Free…

How to Add Readonly Field in ui_component Form in Magento 2

In this post I am going to explain how to add readonly field in ui_component form in Magento 2. Check the below example code snippet to add readonly field in ui_component. <field name=”identifier” formElement=”hidden”> <argument name=”data” xsi:type=”array”> <item name=”config” xsi:type=”array”> <item name=”dataType” xsi:type=”string”>text</item> <item name=”label” xsi:type=”string” translate=”true”>Identifier</item> <item name=”formElement” xsi:type=”string”>input</item> <item name=”source” xsi:type=”string”>identifier</item> <item name=”dataScope”…

Magento 2 – How to Get Creditmemo Details by Creditmemo Id

In this post I am going to explain how to get creditmemo details by creditmemo id in Magento 2. Using below code snippet you can get creditmemo details by passing creditmemo id. 1. Using Dependency Injection Add below code snippet in Block class. protected $_creditmemoRepositoryInterface; protected $_logger; public function __construct( \Magento\Framework\View\Element\Template\Context $context, \Magento\Sales\Api\CreditmemoRepositoryInterface $creditmemoRepositoryInterface, \Psr\Log\LoggerInterface…

Older posts