Snipcart for Statamic
  • Overview
  • Getting Started
    • Installation
    • Configuration
    • Commands
  • Templating
    • Basics
    • Tags
      • Snipcart
      • Currency
      • Length
      • Weight
    • Modifiers
  • Customization
    • Blueprints
    • Translations
  • Advanced
    • Snipcart API
    • Snipcart Webhooks
Powered by GitBook
On this page
  • Example
  • Multi-Site

Was this helpful?

  1. Templating

Basics

Example

This is a simple example of a section that displays all products:

<section>
    {{ collection:products }}
        <div>
            <h2>{{ title }}</h2>
            <div>{{ price }}</div>
            <div>{{ snipcart:buy }}</div>
        </div>
    {{ /collection:products }}
</section>

Multi-Site

Snipcart doesn't fully support multiple localizations. The only localizable field supported by Snipcart is a product's price. You may localize a few other fields such as a product's title and description. But those fields are solely for templating purposes and will fall back to the product's root locale when getting the Snipcart button attributes.

PreviousCommandsNextTags

Last updated 2 years ago

Was this helpful?