Skip to content

Commit c1c01c1

Browse files
committed
Basic setup
1 parent d3965fd commit c1c01c1

8 files changed

+169
-1
lines changed

.gitattributes

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
README.md export-ignore
2+
CHANGELOG.md export-ignore
3+
/resources export-ignore
4+
.gitignore export-ignore
5+
.gitattributes export-ignore
6+
/.idea export-ignore
7+
.editorconfig export-ignore

.gitignore

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
### OSX
2+
.DS_Store
3+
.AppleDouble
4+
.LSOverride
5+
6+
# Icon must end with two \r
7+
Icon
8+
9+
# Thumbnails
10+
._*
11+
12+
# Files that might appear in the root of a volume
13+
.DocumentRevisions-V100
14+
.fseventsd
15+
.Spotlight-V100
16+
.TemporaryItems
17+
.Trashes
18+
.VolumeIcon.icns
19+
20+
# Directories potentially created on remote AFP share
21+
.AppleDB
22+
.AppleDesktop
23+
Network Trash Folder
24+
Temporary Items
25+
.apdisk
26+
27+
vendor
28+
node_modules
29+
hot
30+
mix-manifest.json
31+
/.idea

.idea/Mailchimp for Craft Commerce.iml

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## [Unreleased] 1.0.0
2+
### Changed
3+
- Initial Release

LICENSE.md

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Copyright © Ether Creative
2+
3+
Permission is hereby granted to any person obtaining a copy of this software
4+
(the “Software”) to use, copy, modify, merge, publish and/or distribute copies
5+
of the Software, and to permit persons to whom the Software is furnished to do
6+
so, subject to the following conditions:
7+
8+
1. **Don’t plagiarize.** The above copyright notice and this license shall be
9+
included in all copies or substantial portions of the Software.
10+
11+
2. **Don’t use the same license on more than one project.** Each licensed copy
12+
of the Software shall be actively installed in no more than one production
13+
environment at a time.
14+
15+
3. **Don’t mess with the licensing features.** Software features related to
16+
licensing shall not be altered or circumvented in any way, including (but
17+
not limited to) license validation, payment prompts, feature restrictions,
18+
and update eligibility.
19+
20+
4. **Pay up.** Payment shall be made immediately upon receipt of any notice,
21+
prompt, reminder, or other message indicating that a payment is owed.
22+
23+
5. **Follow the law.** All use of the Software shall not violate any applicable
24+
law or regulation, nor infringe the rights of any other person or entity.
25+
26+
Failure to comply with the foregoing conditions will automatically and
27+
immediately result in termination of the permission granted hereby. This
28+
license does not include any right to receive updates to the Software or
29+
technical support. Licensees bear all risk related to the quality and
30+
performance of the Software and any modifications made or obtained to it,
31+
including liability for actual and consequential harm, such as loss or
32+
corruption of data, and any necessary service, repair, or correction.
33+
34+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER
38+
LIABILITY, INCLUDING SPECIAL, INCIDENTAL AND CONSEQUENTIAL DAMAGES, WHETHER IN
39+
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
40+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# mailchimp-commerce
1+
# Mailchimp for Craft Commerce
22
Mailchimp integration with Craft Commerce

composer.json

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "ether/mailchimp-commerce",
3+
"description": "Mailchimp integration with Craft Commerce",
4+
"version": "1.0.0",
5+
"type": "craft-plugin",
6+
"keywords": [
7+
"mailchimp",
8+
"commerce",
9+
"abandoned",
10+
"carts"
11+
],
12+
"license": "proprietary",
13+
"authors": [
14+
{
15+
"name": "Ether",
16+
"homepage": "https://ethercreative.co.uk"
17+
}
18+
],
19+
"support": {
20+
"email": "[email protected]",
21+
"issues": "https://github.com/ethercreative/mailchimp-commerce/issues?state=open",
22+
"source": "https://github.com/ethercreative/mailchimp-commerce",
23+
"docs": "https://github.com/ethercreative/mailchimp-commerce/blob/master/README.md"
24+
},
25+
"require": {
26+
"craftcms/cms": "^3.1.0",
27+
"guzzlehttp/guzzle": "^6.3.3",
28+
"ext-json": "*"
29+
},
30+
"autoload": {
31+
"psr-4": {
32+
"ether\\mc\\": "src/"
33+
}
34+
},
35+
"extra": {
36+
"handle": "mailchimp-commerce",
37+
"name": "Mailchimp Commerce",
38+
"documentationUrl": "https://github.com/ethercreative/mailchimp-commerce/blob/master/README.md",
39+
"class": "ether\\mc\\MailchimpCommerce"
40+
}
41+
}

src/MailchimpCommerce.php

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
/**
3+
* Mailchimp for Craft Commerce
4+
*
5+
* @link https://ethercreative.co.uk
6+
* @copyright Copyright (c) 2019 Ether Creative
7+
*/
8+
9+
namespace ether\mc;
10+
11+
use craft\base\Plugin;
12+
13+
/**
14+
* Class MailchimpCommerce
15+
*
16+
* @author Ether Creative
17+
* @package ether\mc
18+
*/
19+
class MailchimpCommerce extends Plugin
20+
{
21+
22+
// Properties
23+
// =========================================================================
24+
25+
public $hasCpSettings = true;
26+
27+
// Craft
28+
// =========================================================================
29+
30+
public function init ()
31+
{
32+
parent::init();
33+
}
34+
35+
}

0 commit comments

Comments
 (0)