Installation
Follow the instructions below to setup Snipcart for Statamic.
Last updated
Was this helpful?
Follow the instructions below to setup Snipcart for Statamic.
Last updated
Was this helpful?
Install the addon with Composer:
The installation process will automatically publish the addon's config to config/snipcart.php
. Open the config and perform the following configuration:
Sites: Add the desired currency, length, and weight units for each of your sites.
Collections & Taxonomies: Add the collections and taxonomies you want to use for your products.
After configuring your Sites and Collections & Taxonomies, you may run the setup
command. This will create all the necessary collections, taxonomies, and blueprints to get you started.
After running the command, make sure to customize the configuration of the created collections and taxonomies to define the sites, templates, routes, etc.
Add your Snipcart API keys to your .env
file. You can find them in your .
Add the following tag to your layout view. Snipcart recommends adding it directly after the <body>
element.
Add the absolute URL of the configured Snipcart webhook to your , eg. https://my-shop.com/webhooks/snipcart
You can in the config. The default route is webhooks/snipcart
.