Magento 2 – How to enable template path hints?
Enable Disable
Magento 2 – How to enable template path hints? Read More »
Magento 2 Custom Development, Magento 2 tutorials, Adobe Commerce Tutorials, Magento for beginners, Adobe, Adobe Commerce
Using Model Factory Using Model Using Repositories (Service Contracts)
Magento 2 – How to get product collection using Model Factory, Model, Repository? Read More »
Using Model Factory Using Model Using Repositories (Service Contracts)
Magento 2 – How to get order collection using order model Factory, model and Repository? Read More »
How to get Magento 2 customer collection? UsingFactory method Using Model Add Filter in collection
Magento 2 – How to get customer collectiom using customer factory or model? Read More »
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 remove Two-Factor Authorization in admin login? Read More »
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 password for the existing customer using MySql query? Read More »
You can find the crypt key in the below file: Magento_Root/app/etc/env.php
how to set a new admin Password of the existing admin user using MySql query? Read More »
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:$ sudo apt install php8.0-{Extension-Name} Example$ sudo apt install php8.0-xml php8.0-intl For Magento install below PHP extensions: ext-bcmath ext-ctype ext-curl
How to Install and Configure PHP 8 (for magento)? Read More »
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 the script on browser or using cli NOTE : This is not a best practice to build any feature
Magento 2 : How to run custom script on magento root? Read More »
Delete all the order and quotes Delete all products data Delete all categories Delete all customers Delete All reviews
Install Magento 2 using command line using below command:
How to Install Magento 2 using command line? Read More »
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 add custom logs in Magento 2 for debugging? Read More »
Use the session to get the current cart quote items NOTE : Magento\Checkout\Model\Cart is deprecated.
Magento 2 – How to get Current Cart Items? Read More »
use isLoggedIn() method to get value
Magento 2 – How to Check If Customer Login Or Not? Read More »
21 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 the modeIf you want to skip the compilation for any reason use below command :$ bin/magento deploy:mode:set production -s Minify
Magento 2 – Speed Optmization tips, increase your magento website speed Read More »
Add below code on composer : Then run composer update
Magento 2 : How to disable MSI in magento 2? (Ver. 2.3.4) Read More »