Here's what I did to get things working.
Yep, over at: https://developer.apple.com
<!-- Solution brought to you by Caroline Schnapp --> | |
<!-- See this: http://wiki.shopify.com/Related_Products --> | |
{% assign image_size = 'compact' %} | |
{% assign heading = 'Other fine products' %} | |
{% if product.metafields.recommendations.productHandles %} | |
<h3>{{ heading }}</h3> | |
<ul class="related-products"></ul> |
{% assign collection = collections.future-empire %} | |
<h1>Products</h1> | |
{% for product_type in collection.all_types %} | |
<section class="group"> | |
<h2>{{ product_type }}</h2> | |
{% for product in collection.products %} | |
{% if product.type == product_type | handleize %} | |
<a href="{{ product.url }}" title="{{ product.title }}"> | |
<figure> | |
<img src="{{ product.featured_image | product_img_url: 'medium' }}" alt="{{ product.title }}"> |
<script> | |
// (c) Copyright 2016 Caroline Schnapp. All Rights Reserved. Contact: [email protected] | |
// See https://docs.shopify.com/themes/customization/navigation/link-product-options-in-menus | |
var Shopify = Shopify || {}; | |
Shopify.optionsMap = {}; | |
Shopify.updateOptionsInSelector = function(selectorIndex) { | |
{% paginate collection.products by 20 %} | |
<!-- the top of your collections.liquid --> | |
<!-- START PRODUCTS --> | |
{% for product in collection.products %} | |
<!-- START PRODUCT {{ forloop.index | plus:paginate.current_offset }} --> | |
<div class="product" id="product-{{ forloop.index | plus:paginate.current_offset }}"> | |
{% include 'product' with product %} | |
</div> | |
<!-- END PRODUCT {{ forloop.index | plus:paginate.current_offset }} --> |
{% layout settings.customer_layout %} | |
<div id="template"> | |
<div id="customer"> | |
<div class="template_header"> | |
<h2 class="title">Customer Login</h2> | |
</div> | |
{% form 'customer_login' %} | |
{{ form.errors | default_errors }} |
[ | |
{name: 'Afghanistan', code: 'AF'}, | |
{name: 'Åland Islands', code: 'AX'}, | |
{name: 'Albania', code: 'AL'}, | |
{name: 'Algeria', code: 'DZ'}, | |
{name: 'American Samoa', code: 'AS'}, | |
{name: 'AndorrA', code: 'AD'}, | |
{name: 'Angola', code: 'AO'}, | |
{name: 'Anguilla', code: 'AI'}, | |
{name: 'Antarctica', code: 'AQ'}, |
Here's what I did to get things working.
Yep, over at: https://developer.apple.com