-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stepzero.Solutions
committed
Apr 24, 2017
1 parent
f7a8fdd
commit 4f3736b
Showing
6 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\\": "" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__ | ||
); |