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
Tag: Magentho 2.3
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?
How to find if the target path in custom url rewrite exists in Magento 2
check if the target path for the custom URL is present in the URL rewrite table in Magento 2.
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
Adding CSS for specific CMS Page via Layout Update XML – Magento 2.4
Layout Update XML is no longer useful in Magento 2.4 so the alternate solution is just to add the new file in the child theme. Where, cmsurl is the url of CMS Page & LandingPG can be anything that will come visible under the Design -> Custom Update XML
Overriding an Existing Observer and Event
Sometimes we may not be able to call an event in an external module. So this happens due to some event or observer may be functioning for default function.in order to override these observers or events we need to create an external module with a di.xml file here we can give preference to the observer… Continue reading Overriding an Existing Observer and Event
Method to Show Address Fields in Registration Form in Magento 2
To show the address fields in the registration form Add below code in your customer_account_create.xml file This will the address fields on the registration form
Magento 2 Pre-order and Backorder
A pre-order is used for the products that haven’t been released yet. A backorder option is available for items that are out-of-stock, but have been in stock lately. Magento doesn’t have a pre-order feature by default. So to make it work on your website, you need either an extension for that or a customization. To… Continue reading Magento 2 Pre-order and Backorder
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