fspringveldt/checio-integration

A SilverStripe module which integrates with chec.io.

1.1.0 2017-08-03 02:51 UTC

This package is auto-updated.

Last update: 2024-12-13 11:26:57 UTC


README

Build Status scrutinizer

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.