Author: John
How To Enable Debugging Mode in Magento 2.x
Magento 2 Debug Mode only works in Developer Mode, so Magento 2 Application must be developer mode to enable Debug Mode.
php bin/magento deploy:mode:set developer
The following below two method , we can enable Magento 2 Debug Mode.
Method [1] – Magento 2 Admin Settings To Enable Debug Mode
Method [2] – Magento 2 CLI Command To Enable Debug Mode
Let us explain one by one
Method [1] Magento 2 Admin Settings To Enable Debug Mode
The following below admin setting required to enable Debug Mode.
Step [1] – Go To STORES > Configuration, redirects on configuration.
Step [2] – on the Configuration panel Click on Advance > Developer
Click on Right Panel tab Debug
By default all Debug mode disable
Enable Template Path Hints for Storefront:: This is used to enable Template Path Hints for Storefront by default selected No
Enable Template Path Hints for Admin:: This is used to enable Template Path Hints for Admin by default selected No
Block Class Type to Hints:: This is used to enable Block Class Type Hints for Storefront by default selected No –
Step [3] – Once click drop down menu & select Yes for all Debug mode
Enable Template Path Hints for Storefront:: — Select Yes, once select Yes, Enable Hints for Storefront with URL auto displayed & selected Yes by default
Enable Template Path Hints for Admin:: — Select Yes
Block Class Type to Hints:: — Select Yes
Step [4] – Finally Debug mode has been enabled , run CLI command flush
Step [5] – Go to storefront to view debug format
Method [2] – Magento 2 CLI Command To Enable Debug Mode
Run below CLI Command
To Enable Debug Mode
php bin/magento setup:config:set --enable-debug-logging=true
To Disable Debug Mode
php bin/magento setup:config:set --enable-debug-logging=false
How To Install Elasticsearch in Xampp
Elasticsearch allows big store, search, and analyze huge volumes of data quickly and in near real-time and give results of search query in milliseconds. It’s able to achieve fast search responses.
Since release of Magento 2.4, Elasticsearch must be installed in Xampp to work with Magento 2.4 & Magento 2.4.x
The following below steps need to follow to install Elasticsearch in Xampp
Continue reading “How To Install Elasticsearch in Xampp”Magento 2.4.x Error “The stock item was unable to be saved. Please try again.”
Magento 2.4.x essentially need Elasticsearch, before start Magento 2.4.x, your machine must be start Elasticsearch, once Elasticsearch start, your machine run perfectly with Magento 2.4.x
Continue reading “Magento 2.4.x Error “The stock item was unable to be saved. Please try again.””How To Enable or Disable Email sending in Magento 2.x
There are following below Admin setting to do Enable or Disable Email sending in Magento 2.x
Step [1] – Go To STORES > Configuration, redirects on configuration.
Continue reading “How To Enable or Disable Email sending in Magento 2.x”How To Add Custom Block on Cart Page in Magento 2.x
The following below custom module code snippet need to follow
Step [1] – Create Custom module, as we have already explained previous topic follow below link
Magento 2.x Custom Module Steps
Step [2] – Once custom module files, registration.php & module.xml created.
Continue reading “How To Add Custom Block on Cart Page in Magento 2.x”Magento 2.x
How To Remove Company Field From Checkout by programmatically in Magento 2.x
The following below custom module code snippet need to follow
Step [1] – Create Custom module, as we have already explained previous topic follow below link
Magento 2.x Custom Module Steps
Step [2] – Once custom module files registration.php & module.xml created, we need to create di.xml & LayoutProcessor.php
Continue reading “How To Remove Company Field From Checkout by programmatically in Magento 2.x”How To Remove Unused JS and CSS in Magento 2.x To Speed UP Website Performance
Magento 2.x using multiple set of JS & CSS, while running website These (set of JS & CSS) responsible for website load time, calling numbers of requests and increasing page loading speed,
While calling numbers of requests and increasing page loading speed time. After analysis the page speed, you need to remove unused JS and CSS in Magento 2.x, which no longer useful/support and after removing unused JS and CSS, increase website speed performance as well as page loading speed time decrease.
Continue reading “How To Remove Unused JS and CSS in Magento 2.x To Speed UP Website Performance”How To Call CMS Static Block in Magento 2.x
There are three methods to call CMS Static Block, defined step by step below.
Method [1] – How to call CMS Static Block in CMS page
Continue reading “How To Call CMS Static Block in Magento 2.x”