Grav Snipcart Plugin
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
You should now have all the plugin files under
In order to use Snipcart you need to have an
API key. You first need to register, if you aren't already.
Once you have signed up and confirmed your account, log in and head to the
Account > Credentials section, where you will find your
Notice that you’ll be in test mode by default, thus using your test
Reference: Snipcart Documentation.
When you have the
API key you can now edit the plugin to use it. To do so go to the user/plugins/snipcart/ folder and create the file
snipcart.yaml, if it doesn't exist already, and copy the contents of the file snipcart.yaml in it.
Edit the file and replace
YOUR_API_KEY with the key that Snipcart provides you with.
Note: If you want to see this plugin in action, have a look at our Shop Site Skeleton