Skip to content

Commit

Permalink
First release
Browse files Browse the repository at this point in the history
  • Loading branch information
Stepzero.Solutions committed Apr 24, 2017
1 parent f7a8fdd commit 4f3736b
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 0 deletions.
23 changes: 23 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "stepzerosolutions/affiliate",
"description": "Magento 2 affiliate program",
"require": {
"php": "~5.5.0|~5.6.0|~7.0.0",
"stepzerosolutions/base":"1.0.1"
},
"type": "magento2-module",
"version": "0.0.1",
"license": [
"OSL-3.0",
"AFL-3.0"
],
"minimum-stability":"stable",
"autoload": {
"files": [
"registration.php"
],
"psr-4": {
"Stepzerosolutions\\Affiliate\\": ""
}
}
}
30 changes: 30 additions & 0 deletions etc/acl.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2015 Stepzero.solutions. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">

<resource id="Magento_Backend::marketing">
<resource id="Stepzerosolutions_Affiliate::affiliate" title="Affiliate" sortOrder="197" >
<resource id="Stepzerosolutions_Affiliate::dashboard" title="Affiliate Dashboard" sortOrder="197" />
</resource>
</resource>

<resource id="Magento_Backend::stores">
<resource id="Magento_Backend::stores_settings">
<resource id="Magento_Config::config">
<resource id="Stepzerosolutions_Affiliate::config" title="Affiliate Configurations" sortOrder="200" />
</resource>
</resource>
</resource>

</resource>
</resources>
</acl>
</config>
13 changes: 13 additions & 0 deletions etc/adminhtml/menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2016 Stepzero.solutions. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../Backend/etc/menu.xsd">
<menu>
<add id="Stepzerosolutions_Affiliate::affiliate" title="Affiliate" module="Stepzerosolutions_Affiliate" sortOrder="100" parent="Magento_Backend::marketing" resource="Stepzerosolutions_Affiliate::affiliate"/>
<add id="Stepzerosolutions_Affiliate::dashboard" title="Dashboard" module="Stepzerosolutions_Affiliate" sortOrder="0" parent="Stepzerosolutions_Affiliate::affiliate" action="affiliate/dashboard" resource="Stepzerosolutions_Affiliate::dashboard"/>
</menu>
</config>
23 changes: 23 additions & 0 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2015 Stepzero.solutions. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../Config/etc/system_file.xsd">
<system>
<section id="affiliate" translate="label" type="text" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Affiliate</label>
<tab>stepzerotab</tab>
<resource>Stepzerosolutions_Affiliate::config</resource>
<group id="general" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General Options</label>
<field id="active" translate="label" type="select" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
</group>
</section>
</system>
</config>
14 changes: 14 additions & 0 deletions etc/module.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2015 Stepzero.solutions. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Stepzerosolutions_Affiliate" setup_version="0.0.1">
<sequence>
<module name="Stepzerosolutions_Base"/>
</sequence>
</module>
</config>
19 changes: 19 additions & 0 deletions registration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
/**
* Affiliate (http://stepzero.solutions/)
*
* Module
*
* PHP version 5
*
* @category Module
* @package Affiliate
* @author Don Nuwinda <nuwinda@gmail.com>
* @license GPL http://stepzero.solutions
* @link http://stepzero.solutions
*/
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Stepzerosolutions_Affiliate',
__DIR__
);

0 comments on commit 4f3736b

Please sign in to comment.