How to Loader Widget in Magento 2

Hello everyone. Loader is very useful for you when you make some Ajax request. It is very important when you develop a website. In Magento 2, it provide you a Loader widget Javascript. So you can call it for your purpose. You can define ‘mage/loader’ in your js to call the widget. The loader widget […]

Read More

Magento 2 – Debug in Command Line Mode

When use command line in magento 2, in file bin/magento with some code ex: setup, cache, indexer,… Some time you can get error but nothing to debug. Let try command follow: php -d display_errors bin/magento >log.txt Example: when I run sudo php bin/magento setup:upgrade, I get an error: “There are no commands defined in the […]

Read More

How to Fix No Tokens were Provided error When run Setup:di:compile in Magento 2

Magento 2 uses setup:di:compile to generate all source code var/generation folder. It increases speed of magento 2 website (production mode). In developing an extension we can get bug with setup:di:compile command: No tokens were provided error and nothing description. How to fix it? This topic will give you some solutions Solution 1: Check all xml […]

Read More

The Relationship between Order, Shipment and Package in Magento 2

Hi everyone, today I’m going to talk about some important definitions in Magento world. Today I’m going to talk about some important definitions in Magento world. They are ORDER, SHIPMENT and PACKAGE. In short, one ORDER can have multiple SHIPMENTS, and one SHIPMENT can have multiple PACKAGES. As we already know, ORDER is the thing […]

Read More

How to Add Top Link in Magento 2

In this topic we will show you How to Add Top Link in Magento 2 through 2 steps: Step 1: Create/ custom default.xml file Step 2: Create Link.php file Top links section in Magento is the default block generally used to create a personal area like My Account, My Wishlist, Log in etc. In this post, […]

Read More

Sticky Header Component in Magento 2

The sticky header component is a Listing/Grid Secondary Component. It is responsible for rendering additional grid header and grid toolbar. It is displayed when the persistent header gets hidden during vertical scrolling. The persistent header reactivates when you scroll back up. You can see it like You can see the js constructor in the file […]

Read More

How to Use Cookie in Magento 2

    In this article, we learn how to Create a cookie in Magento 2 We will create a test controller to create cookie : app/code/[Name_Space]/[Your_Module]/Controller/Cookie/Addcookie.php

1.Read Cookie We will create a Readcookie.php controller to create cookie : app/code/[Name_Space]/[Your_Module]/Controller/Cookie

2.Delete Cookie We will create a Deletecookie.php controller to create cookie : app/code/[Name_Space]/[Your_Module]/Controller/Cookie

[…]

Read More

How to Create Form in Magento 2 with UI Component

  To  Create Form in Magento 2 with UI Component, you need to follow these steps: Step 1: Create controller file Step 2: Create layout file Step 3: Create ui component file Step 4: Create provider file Normally, the default configuration can not satisfy retailer demand. Therefore,  Create Form in Magento 2 with UI Component […]

Read More

Why Magento Owners Leave Magento 2.0?

  Why Magento owners leave Magento 2.0? That’s an interesting question! Magento 2 is rule the world nowadays but some Magento owners leave Magento 2.0. So why? You know? Magento 2.0 have many advantages but it has many disadvantages too.   In this post, we will find out what are common pros and cons of Magento […]

Read More

Create composer.json File to Upload Magento 2 Extensions to Marketplace

Nice day my friends, today I will show you how to create composer .json file to upload your Magento 2 extension  to Magento Market Place. Let’s start to create composer.json file to upload your Magento 2 extensions in following steps: Understanding the composer package structure Understanding your package  Fill in your composer.json file by data […]

Read More