Magento 2 product attributes have many values, you can update them directly from the Database if you are having any difficulties updating from the admin.
Continue reading “Magento 2 Update Product Attribute Values from Database”Magento 2 Redirect Customer to Login Page if Not Logged In
Adobe Commerce provides a feature to restrict guest users’ access by enabling Website Restriction Mode. If users try to access any page without login, they will be redirected to the login page and asked to log in before accessing the website’s page.
Continue reading “Magento 2 Redirect Customer to Login Page if Not Logged In”How to Whitelist Inline Script for CSP | Content Security Policies
Content Security Policy is an extra layer of security to reduce attacks of Cross-Site Scripting. Magento supports CSP from Magento 2.3.5 version. Magento_Csp native module has logic in Magento to manage the CSP. In Magento, if you want to whitelist any script and style then you can easily do it by creating one file csp_whitelist.xml under your custom module’s \etc directory and then you can add any script and style to that file and that script and style which will be bypassed from CSP. Click here to check the csp_whitelist.xml sample file.
Continue reading “How to Whitelist Inline Script for CSP | Content Security Policies”Magento 2 Get Vault Payment Token from Order
If Magento 2 website has a feature to save credit cards for future use, then in reality, full credit card data is never saved to Magento database, but each payment gateway generates one token for the credit card and Magento saves that payment token.
Sometimes merchant wants to fetch that saved payment token with an order and pass that payment token to some ERP or somewhere else then you can get that payment token using order data.
Continue reading “Magento 2 Get Vault Payment Token from Order”How to Get Magento Quality Patch Files in .patch format
Patch (we can say diff) files are text files that contain the details of the file to be changed. Magento 2 quality patches has the new code which will be replaced with the old one to fix Magento 2 core module issues.
Continue reading “How to Get Magento Quality Patch Files in .patch format”How to Comment Multiple Lines in Visual Studio Code
One of the most widely used code editors for developers worldwide is Visual Studio Code (VS Code). It offers a number of strong features to improve your coding skills. The ability to rapidly remark on many lines of code is one of these capabilities, which facilitates debugging, testing, and code documentation.
Whether you’re working with PHP, JavaScript, Python, C++, or any other programming language that Visual Studio Code supports, we’ll show you how to comment on multiple lines in this blog post.
Continue reading “How to Comment Multiple Lines in Visual Studio Code”Magento 2 Disable Remote Shopping Assistance
The success of any online firm in the e-commerce industry depends on offering a smooth and safe buying experience. One of the most potent e-commerce platforms, Magento 2, provides a number of features to improve store functionality and client experience. Remote shopping assistance is one of these features.
Although the purpose of this technology is to provide live support to customers during their purchasing experience, some store owners may want to turn it off for security or better control reasons. We will walk you through the process of turning off Magento 2’s Remote Shopping Assistance in this blog post.
Continue reading “Magento 2 Disable Remote Shopping Assistance”Create Custom Cron Job in Magento 2 Commerce Cloud
Adobe commerce cloud provides a feature to create a custom cron job by adding them to .magento.app.yaml file. You can execute any command by adding it to .magento.app.yaml file.
Continue reading “Create Custom Cron Job in Magento 2 Commerce Cloud”How to Update etc/env.php file in Adobe Commerce Cloud
The etc/env.php file differs for each environment, such as your local, staging, and production. That means you can not edit this file and push this file from your local setup to the cloud environment as this is ignored by Git. In some situations, you have to add some variables or edit values in the /app/etc/env.php file. If you are considering how to edit the env.php file in Magneto 2 commerce cloud or Adobe commerce cloud then this blog post by Dhairvi Solutions is for you.
Continue reading “How to Update etc/env.php file in Adobe Commerce Cloud”Warning: file_put_contents in plugin-list.php and PluginListGenerator.php in Magento 2 while compiling
While you are running your Magento 2 website in XAMPP and you run “php bin/magento setup:di:compile” and you see the error in line number 412 in vendor/magento/framework/Interception/PluginListGenerator.php file then this blog post helps you to fix this issue in your localhost Magento setup.
Continue reading “Warning: file_put_contents in plugin-list.php and PluginListGenerator.php in Magento 2 while compiling”
