Configuration
You can configure Snipcart for Statamic with the configuration options outlined below.
Sites
Set the currency, length, and weight units for each Statamic site. The units will be converted from a product's root entry in a multi-site setup.
Supported currencies: ISO 4217 letter codes supported by Snipcart, eg. USD
or EUR
Supported length units: cm
, m
, in
, ft
Supported weight units: g
, kg
, oz
, lb
Make sure to keep the sites in sync with your Statamic sites. You can do so by running the sync-sites command.
Collections & Taxonomies
Configure your product collections and taxonomies.
Snipcart API Keys
Your Snipcart API Keys for the Live and Test Environment.
Test Mode
Set this to false
to start processing real transactions. You probably want to do this in production only.
Snipcart Settings
Configure any settings you want to apply to the Snipcart script. Make sure to set the keys exactly as documented, e.g., LoadCSS
. All available settings.
Cart Image
Define a Glide preset to be applied to the product image in the cart. You may also turn the manipulation off (not recommended).
Snipcart API Cache Lifetime
Define the cache lifetime of Snipcart API responses in seconds. The API is used for things like fetching the stock of a product.
Snipcart Webhook Route
Define the route where the Snipcart webhook requests will be sent to. Don't forget to add this URL in your Snipcart Dashboard. Set this to null
to remove the route.
Last updated