First of all, need to add facet fields to the website list for that go to Commerce > websites > website list > edit the domain > search index > facet fields > add all needed facets For setting Facet Header on UI go to configuration record > shopping catalog> facets > Add the same… Continue reading Set up Facests on the sidebar of PLP page
Month: December 2021
To Run Default NetSuite Extension Locally on your System
If you want to run the Netsuite Extension local like FeaturedCategory. First on Go to Netsuite and file cabinet SuiteScripts > extensions > NetSuite > FeaturedCategory@1.2.0 choose the extension from the path like here we have chosen FeaturedCategory@1.2.0. Download the file and add it to the workspace you have fetched and run locally so we can get the default Netsuite Extension… Continue reading To Run Default NetSuite Extension Locally on your System
How to use different layouts for different category levels.
Sometimes we need to use different layouts or structures based on category levels. For this, we can able to use different layouts based on different category levels. Solution: To create different layout structures for different categories develop layout files under the Magento_Catalog. One option would be adding a layout handle based on the category depth… Continue reading How to use different layouts for different category levels.
Adding Custom Item field in PDP Page
Created an item field of type ‘Free form text’ in NetSuite labelled ‘ITEM SPECIFICATIONS’. We need to add this field to store the data. Go to Customization > Lists, Records & Fields > Item Fields > New to create a new field as follows: Label — ITEM SPECIFICATIONS ID — custitem_tsandcd Type — Free form text Store Value — (checked) Applies… Continue reading Adding Custom Item field in PDP Page
Adding custom classes to Magento shipping page address fields
Create plugin after Attribute merge Plugin to add custom classes to shipping address page In your module create MODULE/NAME/etc/di.xml Then in \MODULE\NAME\Model\Plugin create a php file AttributeMergerPlugin.php Example: <?php namespace JJ\Catalog\Plugin\Checkout\Block; class AttributeMergerPlugina { public function afterMerge(\Magento\Checkout\Block\Checkout\AttributeMerger $subject, $result) { if (array_key_exists(‘checkout-step-shipping’, $result)) { $result[‘checkout-step-shipping’][‘additionalClasses’] = ‘checkout-shipping-address’; } if (array_key_exists(‘telephone’, $result)) { $result[‘telephone’][‘additionalClasses’] = ‘mobile-number-validation’; ]; return… Continue reading Adding custom classes to Magento shipping page address fields
The Higher Order Components.
When do we need a Higher Order Component?While developing React applications, we might develop components that are quite similar to each other with minute differences.In most cases, developing similar components might not be an issue but, while developing larger applications we need to keep our code DRY, therefore, we want an abstraction that allows us to define this… Continue reading The Higher Order Components.
NetSuite SCA customization for Cart, checkout, shipping cost updates
Proposal summary The proposal covers the updates in cart, checkout, my account, and shipping cost calculations. Requirement Link to FedEx On the production test account ( crossfit@goodearthdist.com / GoodEarth123!) we have a shipped item fulfillment (80143) that is listed on SCA purchase history but the link to the FedEx website is broken. The link currently… Continue reading NetSuite SCA customization for Cart, checkout, shipping cost updates
Magento Adding custom validations-(Phone Number)
Magento doesn’t have any validation for a ten digit mobile number validation.For getting this there are some many ways.This method is taking about overriding the inbuilt validation rules. For this we have to Create a custom module for the theme , for reference: https://devdocs.magento.com/guides/v2.3/frontend-dev-guide/themes/theme-create.html after that inside the create path Magento Ui >Magento_Ui/web/js/lib/validation/rules.js Here we… Continue reading Magento Adding custom validations-(Phone Number)
Call javascript function after script is loaded
To call a js function after load a script we can use the function loadScript()
How to Create the category template and Create category record
How we can add the category in the Commerce Category implementation for the NetSuite and this will show in the Webstore as well. For this we’ve to use CSV files in the three levels i.e. level1, level2 and level3. And here these three level means Parent Category, Sub Category and Child Category of implementation. In… Continue reading How to Create the category template and Create category record