majerome/magento2-module-pricesmassupdate

The PricesMassUpdate module allows to update all product prices in bulk with the same target value via a console command.

1.0.3 2025-01-28 13:53 UTC

This package is auto-updated.

Last update: 2025-03-28 14:13:58 UTC


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.

Supported Magento Versions Latest Stable Version Composer Downloads Maintained - No

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.

Demo

License

MIT