£2.40
function createEcomSendMainStyleEle() {
const ele = document.createElement("link");
ele.rel = "stylesheet";
ele.href = 'https://cdn.shopify.com/extensions/d14a2032-de91-4cef-bd47-781175efe95f/trustoo-email-popups-83/assets/style.css';
ele.dataset.ecomsendTag = "load-alternate-css";
return ele;
};
if (window.EcomSendApps?.enableAlternateCSSLoading ?? false) {
document.head.appendChild(createEcomSendMainStyleEle());
};
try {
function checkMarketingEvent() {
const urlParams = new URLSearchParams(browser.location.search)
const marketingId = urlParams.get("es_marketingId")
if (marketingId && window.localStorage) {
window.localStorage.setItem("ecomsend_marketingId", marketingId)
}
}
checkMarketingEvent()
} catch (e) {}
let isEcomSendInitialized = false;
function createEcomSendMainJSEle() {
if (isEcomSendInitialized) return;
const ele = document.createElement("script");
ele.defer = true;
ele.id = "ecomsend-main-js";
ele.src = 'https://cdn.shopify.com/extensions/d14a2032-de91-4cef-bd47-781175efe95f/trustoo-email-popups-83/assets/ecomsend.js';
if (null === document.getElementById(ele.id)) {
document.head.appendChild(ele);
isEcomSendInitialized = true;
};
};
function EcomsendOnMobxLoaded() {
createEcomSendMainJSEle();
};
let checkCount = 0;
const maxChecks = 15;
function EcomsendBackupCheck() {
if (isEcomSendInitialized) return;
checkCount++;
if (window.React && window.ReactDOM) {
createEcomSendMainJSEle();
return;
}
if (checkCount <
maxChecks) {
setTimeout(EcomsendBackupCheck, 1000);
} else {
createEcomSendMainJSEle();
}
}
setTimeout(EcomsendBackupCheck, 1000);
//EcomSend APPS COMMON JS CODE
window.EcomSendApps = window.EcomSendApps || {}
window.EcomSendApps.design_mode = false
window.EcomSendApps.common = window.EcomSendApps.common || {}
window.EcomSendApps.common.shop = {
permanent_domain: 'john-muir-country.myshopify.com',
currency: "GBP",
money_format: "£{{amount}}",
id: 80637690163,
}
window.EcomSendApps.common.customer = {
id: null,
tags: null,
email: null,
accepts_marketing: null,
first_name: null,
}
window.EcomSendApps.common.template = 'product'