How to Create Customer and Add Address Programmatically

We have alot of way to create new customer. Add new customer via admin interface, customer register on frontend and now I will show you how to create new customer and add customer addess programmatically. 1.Create new customer:

2.Add address to customer:

 

Read More

How to Add a Custom Template into UI Component Fieldset in Magento 2

  In this topic, I will guide you How to Add a Custom Template into UI Component Fieldset in Magento 2 in these 5 steps: Create a form with UI component file Add a fieldset with code block Create a file Magestore\InventorySuccess\Block\Adminhtml\Warehouse\Edit\Tab\Stock Set a template for this block throws a variable Create a file and implement […]

Read More

How to Insert a New Tab in User Editing Page in Magento 2

Allow me to share the actual steps that you’re going to do  in this How to Insert a New Tab in User Editing Page in Magento 2: Create the file \app\code\Magestore\InventorySuccess\ etc\adminhtml\events.xml Create the file  \app\code\Magestore\InventorySuccess\Observer\ Permission\Warehouse\ViewBlockAbstractToHtmlBefore.php In this topic, we will try to insert a new tab in to user editing page in magento 2. We […]

Read More

How to Create a Module in Magento 2

  In this topic ,we will create a module in Magento 2. It’s following by 6 steps: Step 1: Create a module folder: Step 2: Declare the module by module.xml Step 3: Register the module by registration.php Step 4: Install Setup, Enable the module Step 5: Create a route for the module. Step 6: Create controller […]

Read More

How to Insert/Update Multiple Records to Database in Magento 2

  In this article I will show you a good performance solution to to Insert/Update Multiple Records to Database in Magento 2. In my example, I create a new table in Mysql: my_custom_table with two fields: id: primary key, item Id qty: int(11), the number of item In Magento 2, almost the Records  have some […]

Read More

Create a new attribute for category

Create a new attribute for category There is some ways to extend functionality of Magento categories, I will show you how it might be done. By modifying and adding data into some of tables directly, You might do that , but if you don’t know what you are doing, it might be waste of time […]

Read More

(7). How to set up Tax Rates in Magento 2?

Hi friends, As you know, Tax rates generally apply to transactions that take place within a specific geographical area. In Magento 2, the Tax Zones and Rates tool enables you to specify the tax rate for each geographical area from which you collect and remit taxes. Because each tax zone and rate has a unique identifier, you […]

Read More

(6). Magento 2: How to create Tax Rules?

In Magento, we can create Tax Rules that determine the amount of tax that a customer pays, based upon the shipping address, product class, and customer class. Each customer is assigned to a customer class, and each product is assigned a product class. Magento 2 analyzes the shopping cart of each customer and calculates the appropriate tax according to […]

Read More