Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

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

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published