We use cookies to make your experience better. To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies. Learn more.
Magento 2
-
How to Assign Attribute to All Attribute Sets in Magento 2 Programmatically
Method to Programmatically Assign Attribute to All Attribute Sets in Magento 2 Create the PHP file in your Magento 2 root directory. If the product attributes are already created then just assign them to the attribute sets. <?phperror_reporting(E_ALL);ini_set('display_errors', 1);$ATTRIBUTE_CODE = 'attribute_text';$ATTRIBUTE_GROUP = 'General'; -
How to Change Default Admin Logo in Magento 2
Method to Change Default Admin Logo in Magento 2 For the Admin Login Page Create the admin_login.xml to change the Admin logo. Directory view/adminhtml/layout/admin_login.xml Content of admin_login.xml <?xml version="1.0"?><page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-login"xsi:noNamespaceSchemaLocation=" -
Magento 2 Page Builder – Everything you Need to Know
Magento has a Page Builder that allows you to create content using pre-built drag-and-drop controls. "Content Types" is another name for these controls. The page builder in Magento 2 makes it simple to manage content. It also makes creating content-rich sites with bespoke layouts a breeze. By dragging pre-designed rows, columns, blocks, buttons, -
How to Set and Get Admin Session Quote in Magento 2 Programmatically
Add the following code to set and get admin session qoute in magento 2 store. <?php namespace VendorName\ModuleName\Helper; use Magento\Framework\App\Helper\AbstractHelper;use Magento\Framework\App\Helper\Context;use Magento\Backend\Model\Session\Quote as BackendModelSession; class Data extends AbstractHelper{protected $backendModelSession; -
How to Configure Currency in Magento 2
Follow the following steps to configure Currency in Magento 2 Select the Allowed Currencies Set the Import Connection Complete the Scheduled Import Settings Modify the currency symbols Update Currency Rates Select the Allowed Currencies Go to Admin Panel, Stores > Settings > Configuration. Under the General click on the Currency -
Magento 2 Admin Panel: Admin Dashboard and General Settings
Magento 2 Admin Panel, also known as Magento 2 backend, contain a dashboard where the store the owner can access and perform data. The dashboard contains many menus and tabs that perform various tasks. The left sidebar of the Magento admin panel contains these options: Admin Dashboard Sales Tab Catalog Tab Customers Tab Marketing Tab -
How Indexing works in Magento 2 admin panel
Overview To enhance the performance of your storefront, indexing is how Magento transforms data like products and categories. When data changes, then the data must be updated or reindexed. Magento architecture is very sophisticated that stores merchant data like catalog data, prices, users and stores etc. So the Magento use indexers to enhance the -
How to Indexing and Reindex in Magento 2 programmatically
Follow the following steps to create a custom indexer in Magento 2: Create the Indexer configuration file Create Mview configuration file Create Indexer class Create the Indexer Configuration file The indexer will be defined in the indexer.xml file. Directory app/code/VendorName/ModuleName/etc/indexer.xml Content of indexer.xml <? -
How to add rich snippets to Magento 2 products using Schema.org tags
<h2>What are schema.org tags?</h2> <p>Schema.org tags allow us to define our page content by structured microdata. Providing search engine spiders as much data of our page allows site indexing to be further accurate and provide better search results. The most useful thing about attaching microdata to your Magento product pages is -
How to Create System.xml Configuration in Magento 2
<h3>Steps To Create System.xml Configuration in Magento 2</h3> <h3>Create System.xml</h3> <p><strong>Directory</strong></p> <p>app/code/VendorName/ModuleName/etc/adminhtml/system.xml</p> <p><strong>Content for this file</strong></p> <pre class="highlight">