When we create a customer custom attribute from admin and we add a custom attribute in the frontend form, after form submission if any error would occur and the form would redirect to the same page, the form field values should be pre-filled in the same form, but the problem is that the customer custom […]
How to keep the customer custom attribute filled in case of validation error Magento 2
After upgrading to Magento version 2.4.6, many times we get an error of ZendClient class is deprecated like the following screenshot: 1 exception(s): Exception #0 (Exception): User Deprecated Functionality: Class is deprecated in /var/www/html/vendor/magento/framework/HTTP/ZendClient.php on line 27 Exception #0 (Exception): User Deprecated Functionality: Class is deprecated in /var/www/html/vendor/magento/framework/HTTP/ZendClient.php on line 27 <pre>#1 trigger_error() called at […]
Create Custom Js Component – Magento2
3 years ago
To create a custom Js component we need to create the below file as per folder structure. first, we create our test-component.js(view/web/js/test-component.js) file, define([ 'jquery', 'uiComponent', 'ko' ], function ($, Component, ko) { 'use strict'; let testComponent = Component.extend({ self: this, defaults: { template: 'Mage2_CustomRouter/test' }, initialize: function () { let self = this; this._super(); […]
How to add products to a custom product link type grid in Magento 2? The dataprovider is set to $scope . '_product_listing' in vendor/magento/module-catalog/Ui/DataProvider/Product/Form/Modifier/Related.php – getGrid($scope) function, we need to create UI component like, so as per our example the custom link type code is ‘parts’ we need to create parts_product_listing.xml UI component. File Path: […]
How to create a custom product link type grid in Magento 2? As we see how to add a custom product link type using Data Patch in the previous blog, now we will get an idea of how to create a custom product link type UI grid and how to change the label of the […]
How to add a custom product link type using Data Patch in Magento 2? There are three types of product link types in Magento, Related, Upsell, and Cross-sell, which define product relation. You can refer to more about product link types here. In this blog, we get an idea of how we can create a […]
There are many types of product attributes like text, dropdown, yes/no, text swatch, visual swatch, etc. There is only one function to remove any type of product attribute. In this blog, we get an idea of how to remove product attributes using a data patch. The following snippet is a full code example of a […]
The swatch attributes can be used on the category page, product page, and layered navigation. The swatches make the product attributes very attractive on the website and easy to choose for customers. For example, size, color, length, etc. In this blog, we get an idea of how to create a custom visual swatch-type product attribute […]
The swatch attributes can be used on the category page, product page, and layered navigation. The swatches make the product attributes very attractive on the website and easy to choose for customers. For example, size, color, length, etc. In this blog, we get an idea of how to create a custom text swatch-type product attribute. […]
In this blog, we get an idea of how to create select and multiselect type product attributes. Following is a sample code example of a data patch to create a select type product attribute. You can get the full code example from our last blog: How to create custom product attribute using Data Patch in […]

