2017 © Pedro Peláez
 

magento-module magerun-addons

Addon commands for N98 MageRun

image

gmdotnet/magerun-addons

Addon commands for N98 MageRun

  • Wednesday, September 14, 2016
  • by giuseppemorelli
  • Repository
  • 1 Watchers
  • 8 Stars
  • 108 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 3 Open issues
  • 7 Versions
  • 1 % Grown

The README.md

stable version stable version develop license, (*1)

GMdotnet_MagerunAddons

Additional commands for n98-magerun., (*2)

This is a tools only for develop environment. Please, do not use in production environment!

Installation

Official guide: n98-magerun docs, (*3)

A global folder for the system

Clone the repository inside the folder:, (*4)

/usr/local/share/n98-magerun/modules/

A folder inside the user’s home dir

Clone the repository inside the folder:, (*5)

~/.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:, (*6)

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), (*7)

Commands

Create Dummy Products

(experimental). Create dummy products with all default vanilla magento or your custom values., (*8)

Interactive mode or via shell arguments or mixed., (*9)

$ n98-magerun.phar product:create:dummy
Argument Description Accepted Values
website-id Website ID (default: 1) only integer
attribute-set-id Attribute Set Id (default: Default with ID 4) only integer
product-type Product Type (default: simple) simple
configurable
[grouped - work in progress]
sku-prefix Prefix for product's sku (default: MAGPROD-) any
category-ids Categories for product association (comma separated - default null) only integer with comma separated
product-status Product Status (default: enabled) only integer
1 - for enabled
2 - for disabled
product-visibility Product Visibility (default: visibile_both) only integer
1 - for not visible
2 - for visible in catalog
3 - for visible in search
4 - for visible in both
product-number Number of products to create only integer

Extra options asked only for configurabile products (actually only in interactive mode), (*10)

Argument Description Accepted Values
attribute-configurable-number Number of configurable attributes to use ("super attributes") only integer
attribute-configurable-codes Attribute codes for configurable products ("super attributes") only text
product-children-number Number of products children only integer

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., (*11)

Interactive mode or via shell arguments or mixed., (*12)

$ n98-magerun.phar category:create:dummy
Argument Description Accepted Values
store-id Id of Store to create categories (default: 1) only integer
category-number Number of categories to create (default: 1) only integer
children-categories-number Number of children for each category created (default: 0 - use '-1' for random from 0 to 5) only integer or -1 for random number from 0 to 5
category-name-prefix Category Name Prefix (default: 'My Awesome Category') any

Create Dummy Attribute Values

(This command was included in n98-magerun 1.97.23)

Create dummy attribute values (ONLY FOR DROPDOWN ATTRIBUTE), (*13)

Interactive mode or via shell arguments or mixed., (*14)

$ n98-magerun.phar eav:attribute:create-dummy-values
Argument Description Accepted Values
locale Locale value in ISO standard like en_US only string
attribute-id Attribute ID to add values only integer
values-type Types of Values to create (default int) int
string
color
size
designer
values-number Number of Values to create (default 1) only integer

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., (*15)

$ n98-magerun.phar db:maintain:clean-table

List of tables:, (*16)

Name
dataflow_batch_export
dataflow_batch_import
log_customer
log_quote
log_summary
log_summary_type
log_url
log_url_info
log_visitor
log_visitor_info
log_visitor_online
report_event
report_viewed_product_index

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, (*17)

License

OSL - Open Software Licence 3.0, (*18)

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., (*19)

The Versions

14/09 2016

dev-develop

dev-develop https://github.com/gmdotnet/GMdotnet_MagerunAddons

Addon commands for N98 MageRun

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

by Giuseppe Morelli

cli installer magerun magento

24/08 2016

dev-master

9999999-dev https://github.com/gmdotnet/GMdotnet_MagerunAddons

Addon commands for N98 MageRun

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

by Giuseppe Morelli

cli installer magerun magento

24/08 2016

0.1.0

0.1.0.0 https://github.com/gmdotnet/GMdotnet_MagerunAddons

Addon commands for N98 MageRun

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

by Giuseppe Morelli

cli installer magerun magento

08/08 2016

0.0.4

0.0.4.0 https://github.com/gmdotnet/GMdotnet_MagerunAddons

Addon commands for N98 MageRun

  Sources   Download

OSL-3.0

The Requires

 

The Development Requires

by Giuseppe Morelli

cli installer magerun magento

14/07 2016
11/07 2016
01/07 2016