Skip to content

Instantly share code, notes, and snippets.

View stefbowerman's full-sized avatar

Stefan Bowerman stefbowerman

View GitHub Profile
/**
* AJAX Cart scripts
* ------------------------------------------------------------------------------
*
* This is a bare-bones but completely usable implementation of an AJAX enabled cart
*
* Usage: slate.AjaxCart.init(options);
*
* See the following list of stubbed / incomplete methods that need to be filled in
# This file contains the information needed for Shopify to authenticate
# requests and edit/update your remote theme files.
#
# 1. Set up a private app (https://help.shopify.com/api/guides/api-credentials#generate-private-app-credentials)
# with "Read and write" permissions for "Theme templates and theme assets".
# 2. Replace the required variables for each environment below.
#
# password, theme_id, and store variables are required.
#
# For more information on this config file:
{% assign product_tag_string = product.tags | join: ' ' | handle | replace: '-', '' %}
{% unless product_tag_string contains 'hide-tagline' %}
{% capture display_block_id %}
{% include 'product-section-display-block-id', product: product, blocks: section.blocks %}
{% endcapture %}
{% assign display_block_id = display_block_id | plus: 0 %}
{% for block in section.blocks %}
{%- comment %}
Product Section Display Block ID
------------------------------------------------------------------------------
Usage:
{% include 'product-section-display-block-id.liquid',
product: product,
blocks: section.blocks
import Utils from '../utils';
import BaseSection from './base';
const selectors = {
list: '[data-stockists-list]'
};
export default class StockistsSection extends BaseSection {
constructor(container) {
super(container, 'stockists');
<!-- In your webpage, each response should take the form of: -->
<section>
<h3>Prompt ##</h3>
<div>
Your code goes here...
</div>
</section>