The PricesMassUpdate module was realized as an exercise to allow updating all product prices in bulk with the same target value via a console command.
This module was inspired by the M.academy course named Magento Code That Sucks created by Mark Shust. The course compares different ways of updating prices for a large number of products to highlight best practices.
You should use this module to get a practical example of how to use batch processing to update the price attribute for all products. It updates all product prices in bulk with the same target value, via a console command. This module also explores the creation of a console command, including data validation and translation issues.
composer require majerome/magento2-module-pricesmassupdate
bin/magento module:enable Majerome_PricesMassUpdate
bin/magento setup:upgrade
- After installing this module, try the console command
bin/magento majerome:mass-update:prices
, - 1st chose your language EN or FR,
- Then enter a target price to update the whole catalog.