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.

Last updated