How To Create / Configure Custom Email Template in Magento 2.x / Adobe Commerce 2.x

As per business need, multiple times need to configure Email Template as

New User Account Creation Email Template
User Forgot Password Email Template
User Remind Password Email Template
Payment Confirmation Email Template
Payment Failed Email Template
Sales Order Email Template
Sales Invoice Email Template
Sales Shipment Email Template

Here we are putting example ,

How To Configure New User Account Creation Email Template

Step [1] – Go To Admin Panel > Marketing > Communications > Email Templates.

Continue reading “How To Create / Configure Custom Email Template in Magento 2.x / Adobe Commerce 2.x”

Magento 2.x or Adobe Commerce 2.x List of Events

Magento 2 events are used to run custom code in response to any particular Magento 2 event or custom event. Events are dispatched by modules when certain actions are triggered. When an event is dispatched, it can pass data to any observers configured to watch that event.

The following below display list of Magento 2.x & Adobe Commerce 2.x List of Events.

Continue reading “Magento 2.x or Adobe Commerce 2.x List of Events”

How To Create Events & Observer Using Custom Module in Magento / Adobe Commerce 2.x

The following below steps to create custom module using Events & Observer

Step [1] – Nominate Module Name ::

Syntax as below

Namespace_Modulename =Mage2db_John

Magento2 Root Directory / app /code / Mage2db / John

Step [2] – Create a module’s registration file :: This file name is registration.php & used to registered module.

File Path as below

Magento2 Root Directory / app /code / Mage2db / John / registration.php

Write below code in registration.php

<?php

\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::MODULE,
    'Mage2db_John',
    __DIR__
);
Continue reading “How To Create Events & Observer Using Custom Module in Magento / Adobe Commerce 2.x”

How To Create Plugin Using Custom Module in Magento / Adobe Commerce 2.x

The following below steps to create custom module using plugin

Step [1] – Nominate Module Name ::

Syntax as below

Namespace_Modulename =Mage2db_John

Magento2 Root Directory / app /code / Mage2db / John
Continue reading “How To Create Plugin Using Custom Module in Magento / Adobe Commerce 2.x”

How To Create Preference Using Custom Module in Magento / Adobe Commerce 2.x

The following below steps to create custom module using preference

Step [1] – Nominate Module Name ::

Syntax as below

Namespace_Modulename =Mage2db_John

Magento2 Root Directory / app /code / Mage2db / John
Continue reading “How To Create Preference Using Custom Module in Magento / Adobe Commerce 2.x”

How To Create Magento 2.x / Adobe Commerce 2.x Custom Theme Design / Development

Frontend developers need to design the custom Magento themes to come with packages, custom themes, or extended default theme design directories located at the below path

app/design/frontend/<Vendor>/ CustomTheme structure.

Each theme follows the directory structure as:

├── <theme1>

├── <theme2>/

├── <theme3>

├--...

app/design/frontend/John/

├── <mytheme1>

├── <mytheme2>/

├── <mytheme3>

├--...

Custom Magento 2.x Theme Directory Structure

Continue reading “How To Create Magento 2.x / Adobe Commerce 2.x Custom Theme Design / Development”

Which Algorithm is used by Magento 2.x / Adobe commerce 2.x for Password Hashing

As we know Magento 1 generated hash by md5(salt + password) and save in database with the following below format

1 colon like

 $password-hash : $salt

Magento 2.x / Adobe Commerce 2.x has changed logic and logic has been written in file path as below


vendor/magento/framework/Encryption/Encryptor.php

Magento 2.x / Adobe Commerce 2.x generate hash like hash(‘sha256’, $salt . $password); and save with 2 colons in database with the following below format

Continue reading “Which Algorithm is used by Magento 2.x / Adobe commerce 2.x for Password Hashing”

How To Get Regions / State of Country By Using GraphQL

The following below Magento Open Source / Adobe Commerce 2.x GraphQL Query to get Regions / State of Country

Syntax::

{country(id: String) {Country}}

The following below two-letter abbreviation for the country ID (id: “US”), which returns all regions information about USA.

Continue reading “How To Get Regions / State of Country By Using GraphQL”

How To Get List of Categories By Using GraphQL in Magento 2.x

The following below Magento Open Source / Adobe Commerce 2.x GraphQL Query to get List of Categories

The category List query returns list of categories that match the criteria specified in filters

The categoryList query supports the following below filters. User can specify multiple filters in a query as per business need.

Category ID
Category name
Parent category ID
URL key
URL path

Continue reading “How To Get List of Categories By Using GraphQL in Magento 2.x”