Save time by duplicating records such as Catalog and Cart Price Rules, CMS Pages and Blocks or Categories.
- Magento 2.4.x
- PHP 7.x
- Update your composer.json
composer require "magenizr/magento2-duplicate":"1.0.0" --no-update
- Use
composer update magenizr/magento2-duplicate --no-install
to update your composer.lock file.
Updating dependencies
Lock file operations: 1 install, 1 update, 0 removals
- Locking magenizr/magento2-duplicate (1.0.0)
- And then
composer install
to install the package.
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 1 install, 0 update, 0 removals
- Installing magenizr/magento2-duplicate (1.0.0): Extracting archive
- Enable the module and clear static content.
php bin/magento module:enable Magenizr_Duplicate --clear-static-content
php bin/magento setup:upgrade
- Download the code.
- Extract the downloaded tar.gz file. Example:
tar -xzf Magenizr_Duplicate_1.0.0.tar.gz
. - Copy the code into
./app/code/Magenizr/Duplicate/
. - Enable the module and clear static content.
php bin/magento module:enable Magenizr_Duplicate --clear-static-content
- Enable / Disable module in
Stores > Configuration > General > Content Management > Duplicate
- Duplicate Catalog and Cart Price Rules, CMS Pages and Blocks or Categories
- Copied items must be manually enabled
Simply go and edit your Catalog Price Rule, Cart Price Rule, CMS Page, CMS Block or Category and hit the Duplicate
button.
If you experience any issues, don't hesitate to open an issue on Github.
This module is available for free on GitHub.
Follow us on GitHub, Twitter and Facebook.
===== 1.0.0 =====
- Stable version