magento-hackathon / module-eavcleaner-m2
Purpose of this project is to check for different flaws that can occur due to EAV and provide cleanup functions.
Installs: 255 417
Dependents: 1
Suggesters: 0
Security: 0
Stars: 75
Watchers: 19
Forks: 24
Open Issues: 7
Type:magento2-module
pkg:composer/magento-hackathon/module-eavcleaner-m2
Requires
- php: ~7.3||~8.0
- magento/magento2-base: ~2.3
README
Purpose of this project is to check for different flaws that can occur due to EAV and provide cleanup functions.
Usage
Run bin/magento in the Magento 2 root and look for the eav: commands.
Commands
eav:config:restore-use-default-valueCheck if config admin value and storeview value are the same, so "use default" doesn't work anymore. Delete the storeview values.eav:attributes:restore-use-default-valueCheck if product attribute admin value and storeview value are the same, so "use default" doesn't work anymore. Delete the storeview values.eav:attributes:remove-unusedRemove attributes with no values set in products and attributes that are not present in any attribute sets.eav:media:remove-unusedRemove unused product images.eav:clean:attributes-and-values-without-parentRemove orphaned attribute values - those which are missing a parent entry (with the correspondingbackend_type) ineav_attribute.
Dry run
Use --dry-run to check result without modifying data.
Force
Use --force to skip the confirmation prompt before modifying data.
Installation
Installation with composer:
composer require magento-hackathon/module-eavcleaner-m2
Contributors
- Nikita Zhavoronkova
- Anastasiia Sukhorukova
- Peter Jaap Blaakmeer
Special thanks to
- Benno Lippert
- Damian Luszczymak
- Joke Puts
- Ralf Siepker