£2.40
£2.40
£2.40
£2.40
£14.50
£21.50
£27.50
function createEcomSendMainStyleEle() { const ele = document.createElement("link") ele.rel = "stylesheet" ele.href = 'https://cdn.shopify.com/extensions/fb5a3711-e365-4c08-ac42-afc5ec71870b/ecomsend-popups-44/assets/style.css' ele.dataset.ecomsendTag = "load-alternate-css" return ele } if (window.EcomSendApps?.enableAlternateCSSLoading ?? false) { document.head.appendChild(createEcomSendMainStyleEle()) } // 标记是否已经初始化,防止重复执行 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/fb5a3711-e365-4c08-ac42-afc5ec71870b/ecomsend-popups-44/assets/ecomsend.js' if (null === document.getElementById(ele.id)) { document.head.appendChild(ele) isEcomSendInitialized = true; } } // onload 回调函数 function EcomsendOnMobxLoaded() { createEcomSendMainJSEle(); } // 备用检查方案 let checkCount = 0; const maxChecks = 15; // 最多检查15秒 function EcomsendBackupCheck() { if (isEcomSendInitialized) return; // 已经初始化过了 checkCount++; // 检查 React 和相关依赖是否已加载 if (window.React && window.ReactDOM) { createEcomSendMainJSEle(); return; } // 继续检查 if (checkCount
<
maxChecks) {
setTimeout(EcomsendBackupCheck, 1000);
} else {
createEcomSendMainJSEle();
}
}
// 启动备用检查(延迟1秒开始,给onload机会先执行)
setTimeout(EcomsendBackupCheck, 1000);
£5.90
//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.template = 'collection'
window.shopLocale = 'en'