- Magento 2 – How to enable template path hints?Enable Disable
- Magento 2 – How to remove Two-Factor Authorization in admin login?Error:You need to configure Two-Factor Authorization in order to proceed to your store’s admin areaAn E-mail was sent to you with further instructions Solution: Now flush the cache and you are in!!
- Magento 2 – How To Get Product Rating Summary?
- How to get subcategories of specific parent category?
- How to call Static Block in PHTML file directly?
- how to set a new password for the existing customer using MySql query?UPDATE customer_entity SET password_hash = CONCAT(SHA2(‘cryptkeyAdmin@#$123’, 256), ‘:cryptkey:1’) WHERE entity_id = 1; You can find the crypt key in the below file: Magento_Root/app/etc/env.php ‘crypt’ => [ ‘key’ => ’82df4fe20ecf9af24614a2f6b76ac7b6′]
- how to set a new admin Password of the existing admin user using MySql query?You can find the crypt key in the below file: Magento_Root/app/etc/env.php
- How to Install and Configure PHP 8 (for magento)?Add a Linux repository that includes all PHP versions: $ sudo apt install software-properties-common$ sudo add-apt-repository ppa:ondrej/php Install PHP in Apache$ sudo apt update$ sudo apt install php8.0 libapache2-mod-php8.0$ sudo systemctl restart apache2 Installing PHP extensions:$… Read more: How to Install and Configure PHP 8 (for magento)?
- Magento 2 : How to run custom script on magento root?Create a file on magento root and use object manager for using dependencies, In below example you can see how we get product collection of a particular category using root script. After creating the file run… Read more: Magento 2 : How to run custom script on magento root?
- Magento 2 : How to add custom Menu with sub-menu in admin?
- Magento 2 : How to Delete test data of Orders, Customer, Products and categories using MySql query?Delete all the order and quotes Delete all products data Delete all categories Delete all customers Delete All reviews
- How to Install Magento 2 using command line?Install Magento 2 using command line using below command:
- Magento 2 – How to add custom logs in Magento 2 for debugging?Use below code anywhere is Magento (Only for debugging) NOTE: The above code is only for debugging purpose only, you should remove once you done debugging.
- Magento 2 – How to get Current Cart Items?Use the session to get the current cart quote items NOTE : Magento\Checkout\Model\Cart is deprecated.
- Magento 2 – How to Check If Customer Login Or Not?use isLoggedIn() method to get value
- Magento 2 – Speed Optmization tips, increase your magento website speed21 Tips to improve Magento 2 Application performance Production Mode– Run below command in terminal to get current application mode:$ bin/magento deploy:mode:show– Now set the application mode to production:$ bin/magento deploy:mode:set productionIt will take a while to switch… Read more: Magento 2 – Speed Optmization tips, increase your magento website speed
- Magento 2 : How to disable MSI in magento 2? (Ver. 2.3.4)Add below code on composer : Then run composer update
- Magento 2 – Get Controller name, Module name, Action name and Router name
- Magento 2 – Call Static Block Using XMLFor calling static block using xml use below code in your XML layout files:
- Magento 2 – Enable other options in TinyMCECreate plugin of Wysiwyg configuration file in your module etc/di.xml Now create plugin class in your module: Company/Module_Name/Plugin/Config.php