Skip to content

Instantly share code, notes, and snippets.

View adamwooding's full-sized avatar
🏠
Working from home

Adam Wooding adamwooding

🏠
Working from home
View GitHub Profile
@adamwooding
adamwooding / shopify-order-confirmation-code-product-downloads-complete.liquid
Last active January 12, 2021 00:18
Shopify - Order Confirmation Code for Product Downloads - Complete Email
{% capture email_title %}Thank you for your purchase! {% endcapture %}
{% capture email_body %}
<p>Include an intro message here for your customers.</p>
{% endcapture %}
{% capture email_footer %}
<h4 style="margin-top:20px;">File Downloads</h4>
<p>Please find your file downloads below:</p>
{% for line in line_items %}
{% for tag in line.product.tags %}
{% if tag == 'tag1' %}
@adamwooding
adamwooding / shopify-order-confirmation-code-product-downloads.liquid
Created January 11, 2021 11:07
Shopify - Order Confirmation Code for Product Downloads
<h4 style="margin-top:20px;">File Downloads</h4>
<p>Please find your file downloads below:</p>
{% for line in line_items %}
{% for tag in line.product.tags %}
{% if tag == 'tag1' %}
<p>Access Image 1 here: <a href="https://DownloadLinkFromAWS.png">Image 1</a></p>
{% elsif tag == 'tag2' %}
<p>Access Image 2 here: <a href="https://DownloadLinkFromAWS.png">Image 2</a></p>
{% elsif tag == 'tag3' %}
<p>Access Image 3 here: <a href="https://DownloadLinkFromAWS.png">Image 3</a></p>
@adamwooding
adamwooding / shopify-additional-scripts-product-downloads.liquid
Last active January 12, 2021 00:16
Shopify - Additional Scripts for Product Downloads
<script>
Shopify.Checkout.OrderStatus.addContentBox(
'<h2>File Download</h2>',
'<p>Please find your file downloads below. You will also recieve these links in your order confirmation email.</p>',
{% for line in checkout.line_items %}
{% for tag in line.product.tags %}
{% if tag == 'tag1' %}
'<p>Access Image 1 here: <a href="https://DownloadLinkFromAWS.png">Image 1</a></p>',
{% elsif tag == 'tag2' %}
'<p>Access Image 2 here: <a href="https://DownloadLinkFromAWS.png">Image 2</a></p>',
@adamwooding
adamwooding / product-template-enquiry.liquid
Created November 6, 2020 22:18
Shopify Minimal Theme - sections template with no prices and enquiry form
<div itemscope itemtype="http://schema.org/Product" id="ProductSection" data-section-id="{{ section.id }}" data-section-type="product-template" data-image-zoom-type="{{ section.settings.product_image_zoom_type }}" data-show-extra-tab="{{ section.settings.show_extra_tab }}" data-extra-tab-content="{{ section.settings.extra_tab_content }}" data-enable-history-state="true">
{% case section.settings.add_to_cart_width %}
{% when 'small' %}
{%- assign btn_class = 'btn--wide' -%}
{%- assign productform_class = 'product-form--wide' -%}
{% when 'medium' %}
{%- assign btn_class = 'btn--wide' -%}
{%- assign productform_class = 'product-form--wide' -%}
{% when 'large' %}
@adamwooding
adamwooding / product.enquiry.liquid
Created November 6, 2020 22:11
Shopify Minimal Theme - product template with no prices and enquiry form
{% comment %}
The contents of the product.liquid template can be found in /sections/product-template.liquid
{% endcomment %}
{% section 'product-template-enquiry' %}
{% section 'product-recommendations' %}