majerome / magento2-module-pricesmassupdate
The PricesMassUpdate module allows to update all product prices in bulk with the same target value via a console command.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:magento2-module
Requires
- php: ^8.1
- magento/framework: ^103
Requires (Dev)
- roave/security-advisories: dev-latest
README
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.
Table of contents
Summary
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.
Why
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.
Installation
composer require majerome/magento2-module-pricesmassupdate
bin/magento module:enable Majerome_PricesMassUpdate
bin/magento setup:upgrade
Usage
- 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.