Download the PHP package robbieaverill/silverstripe-chec without Composer
On this page you can find all versions of the php package robbieaverill/silverstripe-chec. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download robbieaverill/silverstripe-chec
More information about robbieaverill/silverstripe-chec
Files in robbieaverill/silverstripe-chec
Package silverstripe-chec
Short Description A Silverstripe 4 module which integrates with Chec
License BSD-3-Clause
Informations about the package silverstripe-chec
Chec integration for Silverstripe 4
Introduction
This module adds a [BuyNow][/BuyNow] shortcode to the Silverstripe CMS which can integrate with
Chec Platform in order to display a "buy now" button for your Chec products, with an
integrated checkout window.
This project is a fork of fspringveldt/silverstripe-checio-integration which should be used for SilverStripe 3.x projects.
Requirements
- PHP ^7.3
- Silverstripe CMS ^4.5
Installation
Loading the Chec JavaScript
This extension automatically tries to load the Chec JavaScript file, but for some reason should your active template
block requirements, ChecExtension::getJavaScript() fetches and loads this JavaScript content inline for you.
Placing this before the closing body tag (e.g. $ChecJavaScript</body>) in either your app 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:
Replace <your product permalink> with your Chec product permalink and <your button text> with the text you want
displayed in your button/link. You may also add a class="..." attribute to the permalink to control the classes
added to the button when it is rendered.
Maintainer
Robbie Averill [email protected]
License
This module is licensed under the BSD-3-Clause license. The project is a fork of fspringveldt/silverstripe-checio-integration, and the original license has been retained in accordance.
