|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
For safety reasons, please merge
Setup\UpgradeSchema-{{Version Number}}.php to Setup\UpgradeSchema.php
before installing this module.
|
|
|
|
|
* Model Name |
* Table Name |
* Primary Key |
Need Backend Model Manager |
Need Report |
Need Frontend Data Table |
Action |
|
|
|
|
* Attribute Code |
* Label |
* Input Type |
Scope |
Default Value |
Note |
Class |
Values Required |
Action |
|
|
|
|
* Entity Type |
* Attribute Code |
* Label |
* Input Type |
Show on Frontend |
Forms to Use In |
Default Value |
Note |
Values Required |
* Sort Order |
Action |
|
|
|
|
* Entity Type |
* Attribute Code |
*Data Type |
Action |
|
|
|
|
* Order Status Name |
* Order Status Code |
* States |
Action |
|
|
|
|
|
$myObject = new \Magento\Framework\DataObject(array('text' => 'value'));
$this->_eventManager->dispatch('silksoftware_dispatch_event_example', ['obj' => $myObject]);
|
* Magento Event Code/Custom Event Code (Magento 2 Events List) |
* Class Name ('Observer/{{Class Name}}.php' ) |
* Event Area |
Action |
|
|
|
|
*Title |
*Method Name |
*Displayed Error Message |
*Code |
*Sort Order |
*Active |
Action |
|
|
|
|
*Class Name (Cron/{{Class Name}}.php) |
*Cron Syntax Magento Cron Syntax Tool |
Action |
|
For example: (*/5 * * * *) Every 5 minute run cron job. |
|
|
|
|
Instruction |
*Name |
*Description |
*Code |
*Add Parameters Demo |
Action |
|
|
|
|
*Label |
*Code |
*Amount |
Action |
Define extra fee logic in path 'Model\Quote\Total\{Code}.php'.
|
|
|
|
*Label |
*Method |
Action |
Define method content in path 'Model\Api.php'.
Demo in php
SOAP
$client = new SoapClient('http://yourhost/api/soap/?wsdl');
$session = $client->login('******', '******');
$date = $client->call($session, 'yourmodulename_api.yourmethod');
XML-RPC
$client = new Zend_XmlRpc_Client('http://yourhost/api/xmlrpc/');
$session = $client->call('login', array('******', '******'));
$date=$client->call('call', array($session, 'yourmodulename_api.yourmethod'));
|
|
|
|
*Class Name |
Action |
Example:
Magento\Checkout\Helper\Data
Magento\Checkout\Model\Cart
Magento\Checkout\Controller\Cart
Magento\AdminNotification\Block\System\Messages
|
|
|
|
|
* Tab Code |
* Tab Label |
* Sort Order |
Action |
|
|
|
|
* Tab Code |
* Section Code |
* Section Label |
* Show In Default |
* Show In Website |
* Show In Store |
* Sort Order |
Action |
- Magento Default Tabs
- general
- catalog
- customer
- sales
- service
- advanced
|
|
|
|
* Section Code |
* Group Code |
* Group Label |
* Show In Default |
* Show In Website |
* Show In Store |
* Sort Order |
Action |
|
|
|
|
* Section Code |
* Group Code |
* Field Code |
* Field Label |
* Field Type |
Comment |
* Show In Default |
* Show In Website |
* Show In Store |
* Sort Order |
Action |
|
|
|
|
|
|
*Entity Type Code |
* Model Name |
* Table Name |
Need Backend Model Manager |
Need Report |
Need Frontend Data Table |
Action |
|
|
|
|
* Entity Type Code |
* Attribute Code |
*Data Type |
Action |
|
|
|
* Required Fields
|
Instructions
Magento 2x Module Creator is a magento 2 online module tool.
Click button 'Create Magento Module' start create a new magento 2 module.
You may define your module name, company name etc.
Through the different options you can create different functional module.
Function Include:
- Update Version
- Create a Frontend Page
- Create a Backend Page
- Create a data module, Create a 'Backend Model Manager' for add delete change search this data module.
- Add new category attribute
- Add new customer attribute
- Add new customer address attribute
- Add new sales attribute
- Run sql in the magento database
- Run installing php code in the magento system
- Add Magento Event
- Add New Shipping Method
- Add Magento Cron Job
- Add New Order Total (fee or discount)
- Rewrite Magento Class (Helper , Block , Model and Controller)
|