Create a Custom GraphQl in Magento 2 – Part 3: Simplify query and mutations

Create a Custom GraphQl in Magento 2 – Part 3: Simplify query and mutations

In recent posts we discussed about creating a simple query and mutation. We used query to read the posts from posts table and mutation to create or update

Create a Custom GraphQl in Magento 2 – Part 2: How to create and use mutation

Create a Custom GraphQl in Magento 2 – Part 2: How to create and use mutation

Earlier we talked about creating and reading the posts using query. Today we will discuss creating new posts using Graphql. To learn more about creating query in graphql,

Magento2 How to create a custom email template

Magento2 How to create a custom email template

Creating an email template is simply a 2 step process: Creating and defining email_templates.xml config Creating the email template inside module view directory. Step 1: Go a head

Magento2 How to create a custom command

Magento2 How to create a custom command

To get started with the custom command, first create a type with name Magento\Framework\Console\CommandListInterface to define the command options. Vendor/Module/etc/di.xml : Next create a command class defined under

Magento2 – How to authenticate customer by email

Magento2 – How to authenticate customer by email

To authenticate customer using email and password, create an instance of \Magento\Customer\Api\AccountManagementInterface class and call authenticate(..) method. The authenticate method requires email and password parameters.

Magento2 How to create a custom GraphQL – Part1: Create a simple graphql query

Magento2 How to create a custom GraphQL – Part1: Create a simple graphql query

GraphQL is a query language for APIs, gives clients the power to ask for exactly what they need and nothing more. GraphQL uses mutations to perform CRUD operations.

Magento2 How to create a custom rest API

Magento2 How to create a custom rest API

Today we will talk about creating a custom REST API for your magento store. Before proceeding we assume you have already created a module and familiar with the

Magento2 How to add dynamic content on CMS pages

Magento2 How to add dynamic content on CMS pages

Sometimes we need to add a dynamic content to the CMS pages. We can use 2 possible ways to achieve that: Calling a custom phtml file directly from

Magento2  How to add customer attribute

Magento2 How to add customer attribute

Magento 2.3 introduces the new way to modify data using Data and schema patches. To add customer attribute we will implement \Magento\Framework\Setup\Patch\DataPatchInterface. Create a class CustomerCustomAttributePatcher in your

Magento2 – Add a custom CSS class to the body element

Magento2 – Add a custom CSS class to the body element

Sometimes we need to customize the whole layout. We can do this by adding a custom class over the body element. For example, in order to specify the

Create Dynamic Custom Tabs on Product Page – Part 2

Create Dynamic Custom Tabs on Product Page – Part 2

This article is 2nd part of Create Dynamic Custom Tabs on Product View Page. To get good understanding you should read first article before. In this article we

Add Steps Before and After Shipping and Payment Review

Add Steps Before and After Shipping and Payment Review

Customizing checkout page has always been trend to gain more sales. More you ease your customer, more you gain sales on your store. From day to day, the