KB Category: Operations

  • How to include new command line to Magento 2

    In this article, I will show you how to include new command line to Magento 2 CLI (php bin/Magento). Firstly, construct etc/di.xml: <?xml version=”1.0″?>  <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”>  <type name=”Magento\Framework\Console\CommandList”>  <arguments>  <argument name=”commands” xsi:type=”array”>  <item name=” Webnexs_cli” xsi:type=”object”>Webnexs\Console\Console\Command\CustomCommand</item>  </argument>  </arguments>  </type>  </config> Next, please create CustomCommand.php File in Webnexs \Console\Console\Command folder: <?php namespace Webnexs\Console\Console\Command; use Symfony\Component\Console\Output\OutputInterface;…

  • What are the two Common jQuery Widgets in Magento 2 platform?

    Do you know Magento 2 enables multiple jQuery widgets? They are very useful when you’re coding extensions on Magento 2. In this article, I will establish two common jQuery widgets in Magento 2. They are Confirmation and Alert widgets. Looking to build a customized online marketplace? If so, click here and get started at just…

  • How to use WYSIWYG Editor in Configuration Section in Magento 2?

    In this blog, We will clearly explain to you how to use WYSIWYG editor in the configuration section in Magento 2 through the following steps: Step 1: Form your system.xml Step 2: Next we outline the editor class in file Editor.php Build your Amazon-like multi-vendor marketplace website @ $249/- now!!! Get your free live demo…

  • How to test multiple websites in Magento 2

    If you have multiple website and you need to test them on your development environment. How do you do that? In case multiple store, Magento 2 permit you to test the stores through nav bar on header or footer. But nothing for multiple websites To do that, you can follow the below steps: Step 1:…

  • How to install Magento 2 on Ubuntu server?

    Learn how to install Magento 2 on Ubuntu server with a few steps. Let’s explain to you how to install Magento 2 on an Ubuntu server, before you get to install Magento 2 on an Ubuntu server, you should practice: Magento installation Filezilla(to upload the sourcecode) Putty (to connect to the ssh console) Build your…

  • How to switch among multiple websites in Magento 2

    If you have multiple website and you need to test them on your development environment. How do you do that? In case multiple store, Magento 2 permit you switch among stores through nav bar on header or footer. But nothing for multiple websites To do that, you can follow the below steps: Step 1: Build…

  • How to build a new customer programmatically in Magento 2?

    To build a new customer, we have multiple and add new customer address through the admin interface, customer register on the frontend here, I will show you how to build a new customer and add customer address programmatically in Magento 2. Build your dream Multi-vendor marketplace platform like Amazon here, check this out!!! Here, the…

  • How to override a block/model in Magento 2

    In this tutorial, I will explain you how to override a block/model in Magento 2. The following steps are: Step 1: Override a block Override catalog product block Form di.xml file in app/code/[Name_Space]/[Your_Module]/etc <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:ObjectManager/etc/config.xsd”>    <preference for=”Magento\Catalog\Block\Product\ListProduct” type=”[Name_Space]\[Your_Module]\Block\Rewrite\Product\ListProduct” /> </config> Create ListProduct.php Block file in app/code/[Name_Space]/[Your_Module]/Block/Rewrite/Product <?php    namespace [Name_Space]\[Your_Module]\Block\Rewrite\Product;    class ListProduct extends…

  • How to configure FedEx carrier in Magento 2

    In this post I will show you How to Configure FedEx Carrier in Magento 2 through 2 steps: build a FedEx merchant account Apply FedEx Setup the Packaging Description Setup Handling Fees Assign Allowed Methods and Applicable Countries While the FedEx Carrier comes with many ways to send your products to clients regardless of distance like air,…

  • How to exploit all commands in Magento 2 CLI (Part 10)

    In this Article we going to discuss about the Magento 2 Command line (CLI) Part 10: Deploy static view files Everyone knows Magento 2 has a powerful command-line interface tools (CLI). It permits you to complete task including installation, configuration, database backups, compiling LESS etc. Here I will show you how to modernize deployment config…

  • How to exploit all commands in Magento 2 CLI (Part 9)

    In this Article we going to discuss about the Magento 2 Command line Part 9: Modernize deployment configuration Everyone knows Magento 2 has a powerful command-line interface tools (CLI). It permits you to complete task including installation, configuration, database backups, compiling LESS etc. Here I will show you how to modernize deployment config using command-line…

  • How to exploit all commands in Magento 2 CLI (Part 8)

    In this Article we going to discuss about the Magento 2 Command line (CLI) Part 8: Install Magento Everyone knows Magento 2 has a powerful command-line interface tools (CLI). It permits you to complete task including installation, configuration, database backups, compiling LESS etc. Here I will show you how to install Magento using command-line in…