Skip to content

Instantly share code, notes, and snippets.

// BOLD CUSTOM
var promisesArray = hits.map(function(hit){
return new Promise(function(resolve, reject){
if(hit.option1
&& window.BOLD
&& BOLD.pre
&& typeof BOLD.pre.addProductJson === 'function'){
var productJson = {"id": hit.id, "variants": [{"id": parseInt(hit.objectID), "price": hit.price*100 }]}
BOLD.pre.addProductJson(productJson)
.then(function(product){
{%- comment -%}
BOLD-INCLUDES.LIQUID
--------------------------- WARNING ---------------------------
THIS IS A GENERATED ASSET OF INCLUDES FOR INSTALLED BOL APPLICATIONS SO NOT MODIFY
--------------------------- WARNING ---------------------------
{%- endcomment -%}
@boldsupport
boldsupport / cashier_startup.html
Last active September 28, 2022 20:06
Cashier Startup Script for Klaviyo Integration
<script async type="text/javascript" src="//static.klaviyo.com/onsite/js/klaviyo.js?company_id=*YOUR COMPANY ID*"></script>
<script>
var intervalCount = 0;
const STARTED_CHECKOUT_EVENT = 'Started Checkout';
var intervalId = setInterval(() => {
if (typeof window._learnq !== 'undefined') {
clearInterval(intervalId);
@boldsupport
boldsupport / cashier_klaviyo_order_complete.html
Last active September 28, 2022 20:03
Cashier Order Completed Script for Klaviyo Integration
<script async type="text/javascript" src="//static.klaviyo.com/onsite/js/klaviyo.js?company_id=*YOUR COMPANY ID*"></script>
<script>
var intervalCount = 0;
const ORDER_COMPLETED_EVENT = 'Order Completed';
var intervalId = setInterval(() => {
if (typeof window._learnq !== 'undefined') {
clearInterval(intervalId);
@boldsupport
boldsupport / bold-bundles.css
Last active August 5, 2022 18:36
bold-bundles.css V3 on 2.0 themes
/*
------------------------------------ WARNING ------------------------------------
This file will be overwritten and should not be edited directly.
In order to edit custom CSS for Bold Product Bundles you should:
- Log into your Shopify Admin Panel
- Go to Apps --> Installed --> Product Bundles
- Go to Display Settings
------------------------------------ WARNING ------------------------------------
BUNDLES v3 + 2.0 Theme SPECIFIC
bold-bundles.css version 1
@boldsupport
boldsupport / bold-bundles.css
Last active August 5, 2022 18:35
bold-bundles.css
/*
------------------------------------ WARNING ------------------------------------
This file will be overwritten and should not be edited directly.
In order to edit custom CSS for Bold Product Bundles you should:
- Log into your Shopify Admin Panel
- Go to Apps --> Installed --> Product Bundles
- Go to Display Settings
------------------------------------ WARNING ------------------------------------
bold-bundles.css version 1
Generated at 2019-12-04 11:48:15
<!-- bold-cart-item.liquid -->
{% comment %} Last updated 2018-May-14 {% endcomment %}
{% capture bold_cart_item_liquid %}
{% comment %}
BOLD-CART-ITEM.LIQUID - Universal Bold Cart Updater
This file creates liquid variables to assist in updating line items in cart.liquid.
USED BY: Product Options, Recurring Orders, Product Builder
REQUIRES: bold.css
{%- comment -%}
BOLD-COMMON.LIQUID
Last updated: 2018-Aug-9
--------------------------- WARNING ---------------------------
This file is auto-generated by BOLD and should not be modified.
It may be overwritten and any customizations would be lost.
--------------------------- WARNING ---------------------------
{%- endcomment -%}
<script>
.bold-modal {}
.bold-modal__window {}
.bold-modal__btn-close {}
.bold-modal__btn-close:hover {}
.bold-modal__header {}
<script>
window.onload = function () {
var checkDomElem = function(num){
var sel = document.getElementsByClassName("bold_clone");
if(num < 100 && sel.length == 0) {
setTimeout(function(){
checkDomElem(num + 1);
}, 500)
} else if(sel.length > 0) {