Set the currency, length and weight units for each Statamic site. The units set for Statamic's default site act as default Snipcart units. The units of your other sites will be converted from it.
Supported currencies: ISO 4217 letter codes supported by Snipcart, eg.
Supported length units:
Supported weight units:
'sites' => ['default' => ['currency' => 'USD','length' => 'in','weight' => 'oz',],],
Define the handles of the products collection and categories taxonomy.
'collections' => ['products' => 'products',],'taxonomies' => ['categories' => 'categories',],
Your Snipcart API Keys for the Live and Test Environment.
'live_key' => env('SNIPCART_LIVE_KEY'),'live_secret' => env('SNIPCART_LIVE_SECRET'),'test_key' => env('SNIPCART_TEST_KEY'),'test_secret' => env('SNIPCART_TEST_SECRET'),
Set this to
false to start processing real transactions. You probably want to do this in production only.
'test_mode' => env('SNIPCART_TEST_MODE', true),
The Snipcart version you want to use.
'version' => '3.0.29',
Set this to
none to prevent the cart from opening every time a product is added. Default is
'behaviour' => null,
Define a Glide preset to be applied to the product image that shows in the cart. You may also turn the manipulation off (not recommended).
'image' => ['manipulation' => true,'preset' => ['w' => 240, 'q' => 75],]
Define the cache lifetime of Snipcart API responses in seconds. The API is used for things like fetching the stock of a product.
'api_cache_lifetime' => 3600,
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.
'webhook' => 'webhooks/snipcart',