Skip to content

An Jekyll template for building an eCommerce site. Utilises Snipcart for payment processing and Forestry.io for Content Management.

Notifications You must be signed in to change notification settings

whaleen/jekyll-forestry-snipcart

Repository files navigation

Netlify Status

Don't use this ... yet.

Features

Products

  • Custom
  • T-shirts
  • Digital Downloads Conference Ticket Sales

Snipcart integration.

Developing in the Browser

Serve and re-build on the fly

reload browser when rebuild occurs

Creating a new Collection

In this case we make the Products collection. Add to /_config.yml

collections:
  products:
    output: true
    permalink: "/products/:path/"

Forestry.io setup

Add Products section to /.forestry/settings.yml

sections:
- type: directory
  path: _products
  label: Products
  create: all
  match: "*"
  templates:
  - product

Note above that templates calls for 'products'. This needs to be created and will reside in /.forestry/front_matter/templates/products.yml

I suggest you build this frontmatter template using the forestry gui.

You will need to create a new layout for the collection and provide this as a hidden field with the default value using it's name.

In this case:

/_layouts/products.html

placeholder images: https://www.pexels.com/search/exhibition/

placeholder copy: https://www.descriptionari.com/quotes/the-girl-with-no-name/?h=fashion

About

An Jekyll template for building an eCommerce site. Utilises Snipcart for payment processing and Forestry.io for Content Management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages