Category: Magento 2 (page 21 of 33)

How to Create a Configurable Product in Magento 2

In this article we’ll show you, how to create a Configurable product in Magento 2. Follow this simple guideline… To add configurable products in Magento First of all we have to create attribute. Let’s see how to create attribute in Magento 2 Step 1: Get Started Login into Magento Admin Panel and select the Store…

How to Create a Simple Product in Magento 2

In this article we’ll show you, how to create a simple product in Magento 2. Follow this simple guideline… Step 1: Get Started Login into Magento Admin Panel and select the Catalog from left hand side menu. Then click on Product. Step 2: Choose the Product type Now click on Add Product button and select…

Prepare Your Store For The Holiday Season With Our Free Halloween & Christmas Templates

The holiday season is a great opportunity for your ecommerce business to make money. It’s almost end of the year, and you know what it means? The countdown is beginning of holiday seasons. Halloween and Christmas has widely celebrated holidays around the world. As an ecommerce store owner, Now is the time to focusing on…

Magento 2 – How to Get All Guest Orders

In this post I am going to explain how to get guest orders collection in Magento 2. 1. Using Dependency Injection Add below code snippet in Block class. protected $_orderCollectionFactory; public function __construct( \Magento\Backend\Block\Template\Context $context, \Magento\Sales\Model\ResourceModel\Order\CollectionFactory $orderCollectionFactory, array $data = [] ) { $this->_orderCollectionFactory = $orderCollectionFactory; parent::__construct($context, $data); } public function getGuestOrderCollection() { $orderCollecion =…

Magento2 – How to Add or Generate Language Translation CSV

In this post I am going to explain how to add or generate language translation csv in Magento 2. In order to add translation csv file in magento2, first you need to create one folder named “i18n” inside your module’s folder. For Example, app/code/Namespace/Module/i18n Next to that, create a csv file name of language code….

Magento 2 – How to Add Custom Links in Footer Links

In this post I am going to explain how to add custom links in footer in Magento 2. Here, I am using my custom module – Ht_Mymodule First you need to add default.xml file in your extension and add below code in it. File Path: app/code/Ht/Mymodule/view/frontend/layout/default.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceBlock name=”footer_links”> <block…

Magento 2 – How to Remove Containers or Blocks from Layout

In this post I am going to explain how to remove containers or blocks from layout in Magento 2. First you need to add one layout file in your extension or theme. In this, you need to use referenceBlock for the blocks, and referenceContainer for the containers. To remove the Container: <referenceContainer name=”footer-container” remove=”true”/> To…

Magento 2 – How to Add Custom Tab on Product View Page

In this post I am going to explain how to add custom tab on product detail page in Magento 2. Here, I am using my custom module – Ht_Mymodule First, create product page layout file catalog_product_view.xml and add following code in it. File Path: app/code/Ht/Mymodule/view/frontend/layout/catalog_product_view.xml <?xml version=”1.0″?> <page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”> <body> <referenceBlock name=”product.info.details”> <block class=”Magento\Catalog\Block\Product\View”…

Magento 2 – How to Create or Edit Admin User via Command Line

In this post I am going to explain how to create new admin user or edit existing user via command line in Magento 2 Execute below command to create new admin user. php bin/magento admin:user:create –admin-user=’johndoe’ –admin-password=’john@123′ –admin-email=’[email protected]’ –admin-firstname=’John’ –admin-lastname=’Doe’ After successful execution of command you will get below message Note: If you are editing…

Magento 2 – How to Add More Variable to Window.checkoutConfig on Checkout Page

Sometimes we need to add some custom variables to the Window.checkoutConfig which we can get on checkout page and can use to implement some custom functionality or develop some custom logic. So here I am going to explain how you can add custom variable to Window.checkoutConfig. Here, I am using my custom module – Ht_Mymodule…

Older posts Newer posts