giuseppemorelli / magerun-addons
Addon commands for N98 MageRun
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 1
Forks: 0
Open Issues: 3
Type:magento-module
Requires
- php: >=5.3.3
- fzaninotto/faker: ^1.6
- magento-hackathon/magento-composer-installer: *
Requires (Dev)
- phpunit/phpunit: ~4.1
This package is auto-updated.
Last update: 2024-10-25 07:39:34 UTC
README
GMdotnet_MagerunAddons
Additional commands for n98-magerun.
This is a tools only for develop environment. Please, do not use in production environment!
Installation
Official guide: n98-magerun docs
A global folder for the system
Clone the repository inside the folder:
/usr/local/share/n98-magerun/modules/
A folder inside the user’s home dir
Clone the repository inside the folder:
~/.n98-magerun/modules/
A folder inside the Magento installation (manually)
Copy the repository (not clone in case you have already git on your project) inside the folder:
MAGENTO_ROOT/lib/n98-magerun/modules/
A folder inside the Magento installation (with composer)
composer require giuseppemorelli/magerun-addons <last version>
(you need modman as a pre-requisite)
Commands
Create Dummy Products
(experimental). Create dummy products with all default vanilla magento or your custom values.
Interactive mode or via shell arguments or mixed.
$ n98-magerun.phar product:create:dummy
Extra options asked only for configurabile products (actually only in interactive mode)
####INFO
#####IMAGES
- Product's temp images are saved into
MAGENTO_ROOT/media/import/
folder with this filename:<SKU-PREFIX><COUNTER>."-".sha1(<SKU-PREFIX><COUNTER>).".jpg"
After creation you can clean the folder if you want.
#####CONFIGURABLE PRODUCTS
- You need to create configurable attributes and insert same values. Then add these attributes to attribute set you want use
Create Dummy Categories
(This command was included in n98-magerun 1.97.23)
Create dummy categories with all default vanilla magento or your custom values.
Interactive mode or via shell arguments or mixed.
$ n98-magerun.phar category:create:dummy
Create Dummy Attribute Values
(This command was included in n98-magerun 1.97.23)
Create dummy attribute values (ONLY FOR DROPDOWN ATTRIBUTE)
Interactive mode or via shell arguments or mixed.
$ n98-magerun.phar eav:attribute:create-dummy-values
Clean log tables
Clean (truncate mysql command) all tables that are used only for statistics or log. If you need to reduce database size, this is the command to execute. Attention! If you use Magento statistics about visitors, maybe with this command you can lose some data.
$ n98-magerun.phar db:maintain:clean-table
List of tables:
Requirements
- (tested with n98-magerun > 1.96.1)
- (tested with magento 1.9.x)
- (tested with php 5.6)
WORK IN PROGRESS
- create dummy grouped products
- create dummy virtual products
- create dummy bundle products
Contribution
Any contribution is highly appreciated. The best way to contribute code is to open a pull request on GitHub.
Please create your pull request against the develop
branch
License
OSL - Open Software Licence 3.0
Credits
Thanks to NETZ98 for creating this incredible tool.
Thanks to Kalen Jordan and Peter Jaap Blaakmeer to start contributing n98-magerun with their addons.
Thanks to lorempixel.com for the sample images.