Skip to content

Commit

Permalink
Initial Release
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasfabian committed Apr 1, 2019
0 parents commit ce725df
Show file tree
Hide file tree
Showing 208 changed files with 20,292 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Merx

Merx is a plugin to create online shops with [Kirby 3](https://getkirby.com).

## Documentation

[merx.wagnerwagner.de/docs](https://merx.wagnerwagner.de/docs)

## Issues

Please report issues on Github: [wagnerwagner/merx](https://github.com/wagnerwagner/merx)

## Ideas & Feature Requests

Please use Github issues to submit your ideas and wishes: [wagnerwagner/merx](https://github.com/wagnerwagner/merx).

Alternatively we can discuss ideas at [Kirby Forum](https://forum.getkirby.com).

## License

The Merx plugin is not free software. In order to run on a public server you must purchase a valid [Kirby license](https://getkirby.com/buy) **and** a valid [Merx license](https://merx.wagnerwagner.de/buy).
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/vendor/**/.*
/vendor/**/*.json
/vendor/**/*.txt
/vendor/**/*.md
/vendor/**/*.yml
/vendor/**/*.yaml
/vendor/**/*.xml
/vendor/**/*.dist
/vendor/**/readme.php
/vendor/**/LICENSE
/vendor/**/COPYING
/vendor/**/VERSION
/vendor/**/docs/*
/vendor/**/example/*
/vendor/**/examples/*
/vendor/**/test/*
/vendor/**/tests/*
/vendor/**/php4/*
/vendor/getkirby/composer-installer
20 changes: 20 additions & 0 deletions blueprints/pages/order.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
title: Order

status:
draft: Error
unlisted: Incomplete
listed: Complete

options:
changeSlug: false
changeTemplate: false
changeTitle: false
delete: false

tabs:
overview:
sections:
order: sections/order
payment:
sections:
payment-method: sections/payment-method
16 changes: 16 additions & 0 deletions blueprints/pages/orders.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
title: Orders

status:
draft: Draft
unlisted: Invisible

options:
changeSlug: false
changeStatus: false
changeTemplate: false
delete: false
preview: false
update: false

sections:
orders: sections/orders
22 changes: 22 additions & 0 deletions blueprints/pages/product.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
title: Product

options:
changeSlug: false
changeTemplate: false
delete: false

fields:
price:
label: Price
type: number
required: true
step: .01
min: 0
tax:
label: Tax
type: number
required: true
step: 1
min: 0
max: 100
after: %
32 changes: 32 additions & 0 deletions blueprints/sections/order.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
type: fields
fields:
headlineOrder:
label: Order
type: headline
numbered: false
items:
label: Items
type: structure
width: 2/3
fields:
id:
label: ID
type: text
quantity:
label: Quantity
type: text
price:
label: Price
type: text
tax:
label: Tax
type: text
infoOrder:
label: Info
type: info
width: 1/3
text: >
Invoice Number: {{ page.invoiceNumber }}<br>
Sum: {{ page.formattedSum }}<br>
Invoice Date: {{ page.invoiceDate }}<br>
Payed Date: {{ page.payedDate }}<br>
6 changes: 6 additions & 0 deletions blueprints/sections/orders.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: pages
parent: site.find("orders")
template: order
sortBy: num desc
text: "#{{ page.invoiceNumber }}"
info: "{{ page.formattedSum }}"
14 changes: 14 additions & 0 deletions blueprints/sections/payment-method.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
type: fields
fields:
paymentMethod:
label: Payment Method
type: text
required: true
width: 1/2
paymentComplete:
label: Payment Complete
type: toggle
width: 1/2
text:
- "No"
- "Yes"
37 changes: 37 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "wagnerwagner/merx",
"description": "A toolkit to create online shops with Kirby 3",
"version": "1.0.0-beta.1",
"license": "proprietary",
"homepage": "https://merx.wagnerwagner.de",
"type": "kirby-plugin",
"authors": [
{
"name": "Tobias Wolf",
"email": "[email protected]"
}
],
"support": {
"issues": "https://github.com/wagnerwagner/merx/issues",
"source": "https://github.com/wagnerwagner/merx"
},
"require": {
"stripe/stripe-php": "^6.28",
"paypal/paypal-checkout-sdk": "1.0.0"
},
"require-dev": {
"phpunit/phpunit": "^7",
"getkirby/cms": "^3.1"
},
"autoload": {
"psr-4": {
"Wagnerwagner\\Merx\\": "src/"
}
},
"scripts": {
"test": "./vendor/bin/phpunit --bootstrap vendor/autoload.php tests"
},
"config": {
"optimize-autoloader": true
}
}
Loading

0 comments on commit ce725df

Please sign in to comment.