KB Category: Magento2

  • How do I upgrade to Magento 2 without changing URLs?

    It’s time to upgrade to Magento 2 without changing URLs.  Migrating is not a simple update of the platform. It has a completely new architecture, but it has nothing to do with URLs. The migration routine should be on the local server. It’s like an installation from scratch and includes setting up all the extensions as in Magento…

  • How to edit Magento 2 product page template and layout in 2022?

    In this blog, let’s look at how to edit Magento 2 product page template and layout. The product layout and design template showcase information about the site’s product. It includes the product name, images, description, add-to-cart, and so on. Templates and layouts play a vital role in Magento 2 website. These layouts need not be…

  • How to Add a Custom Discount in Magento 2?

    Add Magento 2 Custom Discount Here are the steps that you will follow in this How to add a custom discount in Magento 2? Register a total in the file xml Add discount to change the grand total in the model Add the total in the layout file View model knockout Add a Custom Discount in Magento…

  • How to Setup Refer Email to a Friend in Magento 2?

    In this tutorial, we will explain to you how to Setup Refer Email to a Friend in Magento 2. Email a Friend link shows together with an envelope icon directly on the product page for the simple way. Did you know? Customers can navigate email to a friend page by clicking on the link, and…

  • How to include a Custom Template in the UI Component in Magento 2?

    In this article, I will show you how to include a custom template into the UI component fieldset in Magento 2 by the following steps: Step 1: Generate a form with a UI component file Step 2: Include a fieldset with code block Step 3: Form a file Webnexs\InventorySuccess\Block\Adminhtml\Warehouse\Edit\Tab\Stock Step 4: Set a template for…

  • How to perform the UI pagination Component in Magento 2?

    Learn how to perform the UI pagination component in Magento 2 platform with these easy steps. UI Pagination Component is a list/grid secondary component. It is responsible for providing the pagination UI and using the pagination principle to the assortment. This will help to select the number of items to show on a page and…

  • How to disable forced password change in Magento 2?

    In this article, I will show you How to disable forced password change in Magento 2. This new feature will increase your Magento 2 online store security, but for developers, it is very frustrating to change the password from time to time. With our development settings, we disable it. Build your Amazon-like multi-vendor marketplace website…

  • How to register module and form database in Magento 2

    In this tutorial, we will discuss how to register module and form database in Magento 2, the following steps are: Step 1: Classify some basic information about the component Step 2: In our module all source code will located at: app/code/Webnexs/Company. Step 3: Now we start by creating two file in app/code/Webnexs/Company folder Step 4:…

  • How to Make a Simple Grid List for Magento 2 Admin with UI Component?

    Learn how to make a simple grid list in Magento 2 admin with UI component in this blog, Get offers custom Magento development services for higher conversions!!! How to Make a Simple Grid List for Magento 2 Admin with UI Component? Here, the following steps help you how to make a Simple Grid List for…

  • How to execute API in Magento 2

    Here are the following steps which help you how to execute API in Magento 2: Announce new Magento 2 API function in xml Announce the API Inteface Activate the interface StaffRepositoryInterface Announce the interface & model in DI file It Supports Magento REST (Representative State Transfer) and SOAP (Simple Object Access Protocol) API, which allows them to…

  • How to call children in Magento 2 templates knockout?

    Here are the following steps which explain to you how to call children in Magento 2 templates knockout: Step 1: Register Child_ a and Child_b in the layout of the Magento template Step 2: Call all children in the file list.html by using command Hire expert Magento 2 solution for adaptive benefits!!! You may observe…

  • How to generate an event in Magento 2

    Here I will show you how to generate an event in your extension for Magento 2 This guide is very easy to do, so follow these simple steps The following examples: <?php .. $event_data_array  =  [‘cid’ => ‘123’]; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $eventManager = $objectManager->create(‘\Magento\Framework\Event\Manager’); $this->_eventManager->dispatch(‘my_custom_event’, $event_data_array); .. ?> As you can observe it’s quite simple…