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

Add Custom developments to add to cart

This is based on the event happening before adding a product to the cart. Using this event we may modify the qty and price of the product if the requirements are pointed out. This can be achieved with a help of a module Create a module with etc/frontend/di.xml After that create an observer to modify… Continue reading Add Custom developments to add to cart