First, add or update the following file app/code/Examples/FirstModule/etc/di.xml Add the following:Note: If you followed the Magento 2: CRUD Models, Repositories & Interfaces post you will have this file and already have some preferences set. Next, add the menu item to point to the index listing… Read More »Magento 2: Admin Grid UI Component
CRUD, (Create, Read, Update, Delete) models are used to manage data contained in the database, simple implementations can be written quite quickly, ideally, the basic CRUD implementation would be backed by corresponding interfaces. It’s always best to work with the interface as opposed to concrete… Read More »Magento 2: CRUD Models, Repositories & Interfaces
When moving between environments you might want to clear down any test data that has been generated. The below SQL commands have been tested with Magento 2.3.5-p1. Start with this command SET FOREIGN_KEY_CHECKS = 0; To clear quotes and orders Remove customer data Remove reviews… Read More »Magento 2: Removing Test Data
/etc/php/php7.3/cli/php.ini settings: xdebug.remote_enable=1 xdebug.idekey=PHPSTORM xdebug.remote_autostart=1 xdebug.remote_handler=dbg xdebug.remote_mode=req xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.max_nesting_level=300 xdebug.ide_key=’PHPSTORM’ xdebug.remote_connect_back=1 Run script with : php -d xdebug.mode=debug -d xdebug.client_host=127.0.0.1 -d xdebug.client_port=9003 bin/magento
In this post we look at installing various versions of PHP and the extensions required for a Magento 2 installation. First we will add the ondrej/php repository to the OS and then install PHP. *Change the php7.3 command to your desired version. If the installation… Read More »Ubuntu: Installing PHP 7.3 with Magento 2 extensions
A solid understanding of the Magento 2 platform would not be complete without a foundation on the principles of best practice front-end design and development practises.