Magento 2 Create Customer Programmatically

In Magento 2, there are some ways to create a new customer, fill the form in register page, create customer in backend, checkout … However, if you want to create account in some automation process, you will have to do it with code. This tutorial will…

Magento 2 Indexer – Manage indexer using command line Magento 2

Magento 2  Indexer – Indexing is how Magento transforms data ( products, categories … ) to improve the performance of your storefront. Magento stores lots of data (including catalog data, prices, users, stores … ) in many database tables. To optimize storefront performance, Magento accumulates data…

Magento 2 Compile error: “No tokens were provided”

Magento 2 Compile error: “No tokens were provided” In Magento 2, when you run “setup:di:compile” you may get error message: “No tokens were provided” That error message is caused by an empty file. You can find it using command:

It usually comes from an…

Magento 2 Render WYSIWYG content

Render WYSIWYG Magento 2 – In this tutorial, we’re going to tell you how to render WYSIWYG Magento 2. Some cases, you save your data using WYSIWYG editor then you want to render it in frontend. With Magento 1, you can do it in this…

Magento 2 send email programmatically

Magento 2 send email programmatically – In this post, let’s find out how to send email programmatically in Magento 2. It will be useful for you in your custom module or new feature. What we need to do: Create your email template in a html…