Here we are mentioning to set the state code from the country code and state id from the Netsuite API. We are getting the state and country through the response/params from the API
Category: Magento
Magento 2: What is the difference between Cache Clean & Cache Flush?
Magento 2 Cache Clean & Cache Flush The Magento Cache Clean deletes all the enabled Magento-related caches. The clean cache does not clean other parts of the server which are not related to Magento. The Magento Cache Flush cleanses cache storage. It will impact other parts of the storage which is a part of the… Continue reading Magento 2: What is the difference between Cache Clean & Cache Flush?
CSP whitelist in Magetno 2
Content Security Policies (CSP) are a powerful tool to mitigate against Cross Site Scripting (XSS) and related attacks, including card skimmers, session hijacking, clickjacking, and more. By default, Content Security Policiy is configured in report-only mode, which allows merchants and developers to configure policies to work according to their custom code. Your browser is not showing… Continue reading CSP whitelist in Magetno 2
Section Source in Magento2
The section source class is responsible for retrieving data for the section. As a best practice, we recommend that you put your code within the Vendor/ModuleName/CustomerData namespace. Your classes must implement the Magento\Customer\CustomerData\SectionSourceInterface interface. The public method getSectionData must return an array with data for a private block. <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Customer:etc/sections.xsd”> <action name=”customer/account/editPost”> <section name=”*”/> </action> </config> Eg: <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Customer:etc/sections.xsd”>… Continue reading Section Source in Magento2
Varnish, Redis, and Memcached in Magento2
For Magento to perform well, you’ll need Redis and Varnish. Redis is a distributed key-value store that is used to cache information coming from the database Varnish is a reverse caching proxy that is used to cache entire pages Memcached, it performs the same role as Redis. Memcached is the predecessor of Redis and Redis… Continue reading Varnish, Redis, and Memcached in Magento2
Different layers in Magento2 Module architecture
Magento 2 Architecture can be divided into the following layers: Presentation layer Service layer Domain layer Persistence layer Thank you.
How to integrate Zoominfo with Magento?
Integrating ZoomInfo with Magento would typically involve leveraging ZoomInfo’s API to access and retrieve relevant data from ZoomInfo’s database and then incorporating that data into your Magento store or CRM system. As of my last update in September 2021, there was no official or pre-built integration between ZoomInfo and Magento. However, you can still create… Continue reading How to integrate Zoominfo with Magento?
Composer install and update in Magento2
composer update will update your dependencies as they are specified in composer.json For example, if you require this package as a dependency: and you have actually installed the 0.9.1 version of the package, running composer update will cause an upgrade of this package (for example to 0.9.2, if it’s already been released) in detail composer update will: Read composer.json Remove installed packages that are no… Continue reading Composer install and update in Magento2
The Scroll event listener in JavaScript
The Scroll event listener in JavaScript is a built-in event handler that allows you to detect and respond to scrolling actions performed by the user on a webpage. This event is triggered whenever the user scrolls the page, either by using the mouse scroll wheel, touchpad gestures, arrow keys, or any other method of scrolling.… Continue reading The Scroll event listener in JavaScript
How to remove the Invoices link from the Order View page Front area of Magento 2?
Order View Page in frontend Magento 2, Contains Multiple links related to Order flows like Invoices, shipments, and refunds. If you want to remove the Invoices link from the Order detail page, Customer Dashboard, and My Orders tab You need to override the sales_order_info_links.xml file. Responsible Block name for Invoice tab:sales.order.info.links.invoice Base File Path:vendor/magento/module-sales/view/frontend/layout/sales_order_info_links.xml sales_order_info_links.invoice contains the Invoices tab… Continue reading How to remove the Invoices link from the Order View page Front area of Magento 2?