fspringveldt / checio-integration
A SilverStripe module which integrates with chec.io.
Installs: 651
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 2
Open Issues: 0
Type:silverstripe-module
Requires
- silverstripe/cms: ^3.2
- silverstripe/framework: ^3.2
README
Introduction
This module adds a [BuyNow][/BuyNow]
shortcode to the SilverStripe CMS which can integrate with chec.io
Requirements
- SilverStripe 3.2+
Installation
$ composer require fspringveldt/checio-integration
Loading the chec.io javascript
This extension automatically tries to load the chec.io javascript file, but for some reason should your active template block requirements, ChecIOExtension::getChecIOJs()
fetches and loads this
javascript content inline for you.
Placing this before the closing body tag (e.g. $ChecIOJs</body>
) in either your mysite or themes' templates/Page.ss ensures that it always
gets loaded.
Usage
The below short code should be placed in your the content section of your CMS page editor window
[BuyNowButton,data-chec-product-id="<your product id>",class="btn"]<your button text>[/BuyNowButton]
replacing <your product id>
with your chec.io product id and <your button text>
with the text you want displayed in your button/link.
Maintainer
Franco Springveldt - fspringveldt@gmail.com
License
This module is licensed under the MIT license.