Skip to content

Instantly share code, notes, and snippets.

{% assign bold_metafield = bold_product.metafields.bold_spec %}
{% assign bold_meta_size = bold_metafield | size %}
{% if bold_meta_size > 0 %}
<div class="bold_compare_{{ display }}" data-id="{{bold_product.id}}" data-handle="{{bold_product.handle}}"></div>
{%endif%}
<!-- bold-conditional-logic-patch.liquid -->
{% comment %}
BOLD-CONDITIONAL-LOGIC-PATCH.LIQUID
Include this file on a page that uses Conditional Logic with Product Options to fix the following reported issues:
* Checkbox groups not triggering the correct conditional options
* Nested conditions not always disappearing properly when user changes an option at the beginning of the option tree
* Conditional options that are not available add blank properties to the cart. (Visible options left blank by the user
will still submit an empty value)
{{ 'bold-compare.css' | asset_url | stylesheet_tag }}
<script>
var BOLD = BOLD || {};
BOLD.Compare = BOLD.Compare || {
specs_size: {{bold-compare-init.metafields.bold_spec | size}},
language: {{shop.metafields.bold_compare.language | json}},
display: {{shop.metafields.bold_compare.display | json}},
default_product_image: "{{ 'no-image.gif' | img_url: 'thumb' }}"
};
<div id='shappify_bundle' class='css_container' style='display:none' onclick='$("form.bundle-form").unbind("submit")'></div>
<div id='shappify_bundle-{{ product.id }}' onclick='$("form.bundle-form").unbind("submit")'></div>
<script>
if(typeof(Bold) === 'undefined') var Bold = {};
if(typeof(Bold.bundles) === 'undefined') Bold.bundles = {};
function bold_load_bundle(prodID) {
bundlejQuery("#shappify_bundle-" + prodID).html(Bold.bundles[prodID]);
if (typeof (bold_bundle_callback) == "function") {
bold_bundle_callback(prodID);
/* Last updated: January 6, 2017 */
/* CHANGED: Added css for Recurring Memberships modal /*
/* BOLD.CSS
To include this file in your theme, add the following before the closing </head> tag in theme.liquid
{{ 'bold.css' | asset_url | stylesheet_tag }}
*/
/* ~===== LOYALTY POINTS =====~ */
/* Product Page */
.bold-loyalties-redeem a.buy-with-rewards { }
.bold-loyalties-redeem-amount { }
<!-- bold-cart.liquid -->
{% comment %} Last updated 2016-07-18 {% endcomment %}
{% capture bold_cart_liquid %}
{% comment %}
BOLD-CART.LIQUID - Universal Bold Cart Updater
This file creates liquid variables to assist in updating line items in cart.liquid.
USED BY: Product Options, Product Builder, Recurring Orders
REQUIRES: bold-cart-item.liquid, bold.css
<script>
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
<script>
$( document ).ready(function() {
var w = window.innerWidth;
if (w < 630) {
$( '.builder_verify_button .btn-success ' ).remove();
$( '.next-btn' ).after( '<div id="builder_verify_button" class="builder_verify_button" style="display:none"><button type="button" class="btn btn-success" onclick="popup_confirm()">Finish</button></div>' );
<!--
Bold notes
Bold code 1 above the for loop - line in line_item loop, Bold code 2 below the for loop line in line_item loop
add {{ bold_options }} to display options, replace item.price with {{ bold_item_price }} and/or item.line_price with {{ bold_line_price }}
-->
<p style="float: right; text-align: right; margin: 0;">
{{ "now" | date: "%m/%d/%y" }}<br />
Invoice for {{ order_name }}
</p>
<p>Hello {{ shop_name }},</p>
<p></p>
<p>{% if customer.name %}{{ customer.name }}{% else %}Someone{% endif %} placed a new order with your store, {{ date | date: "%b %d %I:%M%p" }}:</p>
<p></p>
<ul> {% for line in line_items %}
{% capture bold_product_options %}
{% if line.properties.builder_id %}
{% assign bold_builder_id = line.properties.builder_id %}
{% assign bold_master_builder = line.properties.master_builder %}
{% else %}