Create a simple Knockout JS component in Magento 2

Create a simple Knockout JS component in Magento 2

Hey fellows, today we will discuss how we can create a simple knockout JS component in Magento 2. For simplicity we will create it at home page or

Display Net amount to the order totals in Magento 2

Display Net amount to the order totals in Magento 2

Today we will talk about adding a custom field between the order totals. This field calculates all totals except the tax amount. We call this field as Net

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