This file contains hidden or 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
| <?php | |
| /** | |
| * Example Adjuster. | |
| * Place in: `/myplugin/adjusters/Test.php` (and rename as such) | |
| * | |
| * @link https://oof.studio/ | |
| * @copyright Copyright (c) 2018 oof. Studio | |
| */ | |
| namespace oofbar\test\adjusters; |
This file contains hidden or 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
| <?php | |
| namespace craft\commerce\adjusters; | |
| use Craft; | |
| use craft\commerce\base\AdjusterInterface; | |
| use craft\commerce\elements\Order; | |
| use craft\commerce\models\OrderAdjustment; | |
| use craft\commerce\Plugin; |
This file contains hidden or 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
| {% if cart.paymentMethodId %} | |
| <form method="POST" class="form" {% if cart.paymentMethod.class == 'Stripe' %}id="payment-form"{% endif %}> | |
| <input type="hidden" name="action" value="commerce/payments/pay"/> | |
| <input type="hidden" name="redirect" value="/checkout/complete?number={number}"/> | |
| <input type="hidden" name="cancelUrl" value="/checkout/cancelled"/> | |
| {{ getCsrfInput() }} | |
| {% if errors is defined %} |
This file contains hidden or 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
| var mandrill = require('mandrill-api/mandrill'); | |
| var mandrill_client = new mandrill.Mandrill('YOUR MANDARILL KEY'); | |
| var FROM_EMAIL = 'info@ourstandup.com'; | |
| var FROM_NAME = 'Our Standup'; | |
| var db = require('./database'); | |
| var invitationsRef = db.ref("invitations"); | |
| var teamsRef = db.ref("teams"); | |
| var usersRef = db.ref("users"); |
This file contains hidden or 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
| // No Security | |
| { | |
| "rules": { | |
| ".read": true, | |
| ".write": true | |
| } | |
| } |
This file contains hidden or 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
| @include (.*?)\((.*?)\); |