Magento 2 Tutorials

How To Get A Product By REST API and GraphQL In Magento 2?

No comments

Today, let’s learn how to get a product from your Magento website by using the REST API and GraphQL. 1. Get A Product With REST API You can use a tool to access the API. In this situation, we will use Postman. We need to get the access token of the admin user to get a product.

Tiffany ClaireHow To Get A Product By REST API and GraphQL In Magento 2?
read more

How To Use Custom Local Storage & Cookie Storage In Magento 2?

No comments

In this tutorial, we will show you 7 easy steps to use Local Storage and 4 simple steps to utilize Cookie Storage in Magento 2. Let’s figure out now! A. Custom Local Storage Step 1: Create a module.xml file: app/code/Tigren/CustomStorage/etc/module.xml <?xml version=”1.0″ ?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Module/etc/module.xsd”> <module name=”Tigren_CustomStorage” setup_version=”1.0.0″/> </config> Step 2: Create Registration file of the Module:

April LeeHow To Use Custom Local Storage & Cookie Storage In Magento 2?
read more

How To Index Product Attributes With Source Model In Flat Table In Magento 2?

No comments

First of all, the product attributes might not be added to the flat table in Magento 2 since it lacks some methods: Magento\Eav\Model\Entity\Attribute\Source\Table. In this tutorial, we will help you to add missing products attributes with the source model to the flat table. Let’s get started! Step 1: Enable the flat catalog (Accessing your admin panel >

SamHow To Index Product Attributes With Source Model In Flat Table In Magento 2?
read more

Magento 2: Placing Billing Address Right Under Shipping Address In Checkout

No comments

In order to increase customer experience in Magento 2 websites, many store owners want to change the order of the billing address in the checkout page. To be more specific, they want to move/ place the billing address right under the shipping address in the first step of checkout. As a result, the buyer can

TobyMagento 2: Placing Billing Address Right Under Shipping Address In Checkout
read more

How To Configure & Install Elasticsearch In Magento 2?

No comments

What Is Elasticsearch? We guess that most of us have heard about the Elasticsearch, but not everyone thoroughly understands what Elasticsearch is. Elasticsearch is a powerful open-source search and analytics engine using Apache Lucene. It is able to handle a large number of use cases, support multiple tenancies and full-text search on HTTP web interface.

TobyHow To Configure & Install Elasticsearch In Magento 2?
read more

How To Add Custom Validate Field In Magento 2 Form?

No comments

In today blog post, we will show you three easy-to-follow steps to add a custom validate field in your Magento 2 form. Let’s get started! Step 1: Add Custom Validate Method First, in the data-mage-init attribute, you must add a custom method named tigrenValidateMethod. <form class=”form contact” action=”<?= $block->escapeUrl($block->getFormAction()) ?>” id=”contact-form” method=”post” data-hasrequired=”<?= $block->escapeHtmlAttr(__(‘* Required

April LeeHow To Add Custom Validate Field In Magento 2 Form?
read more

How To Display Order Information In Checkout Success Page In Magento 2?

No comments

In Magento 2, you will be able to add more order information to the checkout success page. In order to declare a new theme, let’s create the following files: 1. Create the file app/design/frontend/Tigren/tigren/registration.php: <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::THEME, ‘frontend/Tigren/tigren’, __DIR__ ); 2.

April LeeHow To Display Order Information In Checkout Success Page In Magento 2?
read more

How To Add Extension Attribute To Order In Magento 2?

No comments

There are six simple steps to add the extension attribute to order in Magento 2: Step 1: Let’s create the extension_attributes.xml file First and foremost, you need to declare your extension attributes in one XML file: <!– etc/extension_attributes.xml –> <?xml version=”1.0″?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Api/etc/extension_attributes.xsd”> <extension_attributes for=”Magento\Sales\Api\Data\OrderInterface”> <attribute code=”tigren_attribute” type=”Tigren\Example\Api\Data\TigrenAttributeInterface” /> </extension_attributes> </config> By this way, you are

TobyHow To Add Extension Attribute To Order In Magento 2?
read more