How to update etc/env.php file in Magento 2 commerce cloud

The etc/env.php file is different for each environment, like for 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 Magento 2 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”

Magento 2 Get Currency Symbol in JS File.

If you are looking to get the current currency symbol in Magento 2 JavaScript file and want a formatted price in Magento 2 JS file then this blog post is for you.

When you add the custom price somewhere on your Magento 2 quote, that price should be in the proper formats, like with a currency symbol, current store currency, and 2 decimal points. Magento provides Magenot_Catalog/js/price-utils JS file which does this for you.

Continue reading “Magento 2 Get Currency Symbol in JS File.”