M2 development with Docker

The story Although I have tried so many docker-compose projects, I didn’t find any project that matches my requirement: Uses only Official Images. Simply enough…

Environment variables from docker-compose .env to Dockerfile

1. Declare the variables in .env

2. Pass the variables to Dockerfile using args in docker-compose.yml

3. Use the keyword ARG to receive…

Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\App\ExceptionHandlerInterface

Environment: PHP 7.2 Magento 2.3.4 1. The error Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\App\ExceptionHandlerInterface in /var/www/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php:50 Stack trace: #0 /var/www/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create(‘Magento\\Framewo…’) #1 /var/www/vendor/magento/framework/App/Http.php(100):…

Query to get the top buyers in Magento 2

Note: If customer_id is NULL so it’s the guest user.

Standalone function get increment_id using order id

 

Fix Gravity Forms & Magento 2 WordPress Integration confliction

This is a very uncommon issue, the WordPress site has the plugin Magento 2 WordPress Integration. It checks the class name exists or not…