Magento
CategoryMagento 2.x – Add log within one single line of code
If you are trying to debug in a remote server, or just want to temporary add a debug message. Then the following snippet would help you, a..
Magento 2.x – Import customers csv with encrypted passwords
Hi there,
If you are trying to import customers with an assigned password, or just modify a customer password trough the Magento csv im..
Magento 2.4.3 upgrade – fix Integrity constraint violation: 1062 Duplicate entry for key ‘PRIMARY’, query was: ALTER TABLE `catalog_url_rewrite_product_category` ADD CONSTRAINT PRIMARY KEY (`url_rewrite_id`) – error message on setup:upgrade
Hi there,
If you are trying to update your store the last Magento version (once this post was written 2.4.3 is latest), and you are get..
Magento 2.x – Rebuild sales_order_grid table
If you are working on the sales order grid, for instance adding a new column, you will see that you need to keep beside the sales_order ta..
Reset Magento 2 admin password via database
This easy code snippet will help you to easily reset or change you admin user password through database.
The xxxxxxx character sequence..
Run Magento 2 Code Externally
Working with Magento 2 its pretty usual, that you often needs to test or run any piece of code outside Magento. To do so, the following sn..
Images links broken in Gmail
If you are working on an email sending development, and for any reason, you are wondering why the images are bronken when you receive the ..
Magento 2.x – Incompatibility with PHP XDebug Version >= 3.0.1 – Workaround
After an upgrade of my php-xdebug library, i figured out that Magento, in particular the “magento2-functional-testing-framework” module, i..
Magento 2.x – Override HTML files
If you need to override a HTML file, ie, used on a uiComponent, you have a couple of ways to sort it, in this tutorial i will show you how..
PHPCS coding standards
A pretty way to get your code withing the PHP Coding standards is using the PHP Code Sniffer tool.
If you are working in a Magento 2 si..