This module adds a [BuyNow][/BuyNow]
shortcode to the SilverStripe CMS which can integrate with chec.io
- SilverStripe 3.2+
$ composer require fspringveldt/checio-integration
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.
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.
Franco Springveldt - fspringveldt@gmail.com
This module is licensed under the MIT license.