Snipcart is a shopping cart platform for developers.
This recipe will guide you through enabling ecommerce on your Gatsby site.
If you do not already have a Snipcart account, please register here.
You can use this account for FREE to test things out as long as you like!
<GatsbyPlugin name="gatsby-plugin-snipcart-advanced" options={{ publicApiKey:"[YOUR_PUBLIC_API_KEY]" }} />
Snipcart has been installed to your gatsby site!
The documentation of the plugin can be found here.
Please set your account's public API key in the plugin config to get started.
OPTIONAL: To automate the plugin configuration, you can run this command in your terminal: npm run snipcart-setup
.
Here's how to add your first Snipcart buy button: https://docs.snipcart.com/v3/setup/products.
Happy selling!