{{ define "main" }} {{ $c := default "products" .Params.collection }}{{ $shop := "" }}{{ with index .Site.Lists $c }}{{ $shop = .Path }}{{ end }} {{ .Title }} {{ with .Content }}{{ . }}{{ end }} {{ if cartOn }}The cart needs JavaScript. Without it, choose Buy now on a product to check out with just that one. {{ else }}The cart is off: turn it on with cart: true in site.yaml.{{ end }} {{ default "You might also like" .Params.suggest_heading }} {{ range limit 48 (collection $c) }}{{ template "product-card" . }}{{ end }} {{ end }}
The cart needs JavaScript. Without it, choose Buy now on a product to check out with just that one.
The cart is off: turn it on with cart: true in site.yaml.
cart: true