How to create a new admin user in Magento via the terminal

To create a new admin user in Magento via the terminal, follow these steps: Access Your Server: Open your terminal or SSH into your server. Navigate to Your Magento Installation: Change to the Magento root directory: Create a New Admin User: Use the following command to create a new admin user. Replace <new_username>, <new_email>, and… Continue reading How to create a new admin user in Magento via the terminal

Overide the product description componenet in magento PWA

In the project, create a new component that extends or replaces the default product description component. For example, you might create a custom component called CustomProductDescription: import React from ‘react’; import { useProductDescription } from ‘@magento/peregrine/lib/talons/ProductFullDetail/useProductDescription’; import defaultClasses from ‘@magento/peregrine/lib/talons/ProductFullDetail/productFullDetail.css’; import { mergeClasses } from ‘@magento/venia-ui/lib/classify’; const CustomProductDescription = props => {  const classes =… Continue reading Overide the product description componenet in magento PWA

What is a fetch event in Magento PWA?

After a service worker is installed and the user navigates to a different page or refreshes, the service worker will begin to receive.  A event fires every time any resource controlled by a service worker is fetched, which includes the documents inside the specified scope, and any resources referenced in those documents (for example if… Continue reading What is a fetch event in Magento PWA?

Show category image programmatically in magetno 2

There are two options on the Magento to show the category image on the description page In your layout.xml file add below After creating a new file this file add the ViewModel folder and add the code below.file name is CategoryList.php and your template file add the below code. file name is template.phtml 2nd option… Continue reading Show category image programmatically in magetno 2

Backorder Functionality-Magento

Backorders in Magento 2 Backorders functionality is supported by Magento 2 out-of-the-box. Go to Stores – Configuration – Catalog – Inventory – Product Stock Options tab. In the ‘Backorders’ section select the necessary option: No backorders disables backorders in your store; Allow Qty Below 0 shows the product as In Stock even when the product reaches qty = 0;… Continue reading Backorder Functionality-Magento