Category: Magento 2 (page 2 of 33)

Magento 2 – How to Get Product Stock Information

In this post I am going to explain How to Get Product Stock Information in Magento 2. Use below methods to get product stock information in Magento 2 such as stock status, minimum stock quantity, minimum sale quantity, minimum quantity, etc. Using below code snippet you can get product stock data by passing product id….

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”…

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…

Special Sale on Etrend – High Converting Theme, Additional 20% OFF!

As a PrestaShop & Magento merchant, you probably spend a lot of time thinking about how to scale your business and generate more sales. You could buckle down on advertising, social media or launch a referral program to promote your brand to new audiences. But instead of trying everything, why not try the fundamental ideas…

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 Premium Magento 2 Themes 2021

Today we are introducing powerful premium Magento 2 themes and their essential features for launching your ecommerce website. These premium Magento themes are designed with ecommerce store development in mind. These all Magento 2 themes are compatible with the latest Magento version. Let’s have a look… 1. Etrend – Premium Multipurpose Magento 2 Theme Let’s…

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 Newer posts