How to create admin user via Command Line in Magento 2?

If you want to create a new admin user via CLI, You can create a new admin user through CLI by typing the below command.

The admin:user:create command is used to create a new admin user via the command line interface.

This post will help when you are facing login with the admin panel and want to create a new user for admin. Continue reading “How to create admin user via Command Line in Magento 2?”

HOW TO CREATE A TAB IN Admin CUSTOMER EDIT PAGE IN MAGENTO 2?

In Magento 2, You can add a new custom tab on the Customer Edit page.

If you want to add a new tab in the Customer edit section for your custom requirement, You can add easily a customer tab in the Customer edit section.

You need to create a simple module to add an extra tab in the customer edit section.

Refer to the code snippet for adding an extra tab,
I have taken Rbj as Packagename and CustomerTab as modulename for simplicity. Continue reading “HOW TO CREATE A TAB IN Admin CUSTOMER EDIT PAGE IN MAGENTO 2?”

How to apply OR conditions to searchCriteria filter Magento 2?

Third Party Platform interact with Magento 2 by API. When you are working for API related stuff and using SearchCriteriaBuilder Object for your query and if you want to apply OR conditions for custom query, You need to define setFilterGroups([Object]) for OR query.

Whenever you are dealing with SearchCriteriaBuilder in Magento 2, You might be need to query with OR conditions for custom requirement, You can give OR conditions to Magento\Framework\Api\SearchCriteriaBuilder by simple code snippets.

Let’s imagine, We built a query using OR conditions for Products. Continue reading “How to apply OR conditions to searchCriteria filter Magento 2?”