hectorromo / grav-plugin-shoppingcart-pay-what-you-want

Simple Grav Plugin for Shoppingcart by @hectorromo that adds "Pay What You Want" functionality

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Join the chat at https://gitter.im/flaviocopes/grav-plugin-shoppingcart

For more info about the Shopping Cart plugin refer to the documentation on the Shopping Cart Plugin site

Pay What You Want add-on for the Grav Shopping Cart

This plugin adds Pay What You Want functionality to products in your Shopping Cart.

Installation

To install this plugin, just download the zip version of this repository and unzip it under /your/site/grav/user/plugins. Then, rename the folder to shoppingcart-pay-what-you-want.

You should now have all the plugin files under

/your/site/grav/user/plugins/shoppingcart-pay-what-you-want

Usage

In the Admin, go to Plugins and configure the plugin with the required information, then enable it.

In each product page you can activate "pay what you want", and add ","-separated pricing suggestions (e.g. 5, 10, 20, 100).

Add this to the product template file

{% include 'partials/shoppingcart-pay-what-you-want.html.twig' %}

This will display a dropdown with your pricing suggestions.

About

Simple Grav Plugin for Shoppingcart by @hectorromo that adds "Pay What You Want" functionality

License:MIT License


Languages

Language:PHP 80.6%Language:JavaScript 8.8%Language:HTML 8.1%Language:CSS 2.4%