This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.ES_LOCALE_OVERRIDE = "pt"; | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.es_hook_purchase_success_func = (order) => { | |
//You can find the order object format here: https://shopify.dev/docs/api/admin-rest/2023-07/resources/order | |
if (typeof fbq === "function") { | |
let data = { | |
value: order.totalPrice, | |
num_items: order.itemCount, | |
currency: window.ShopifyAnalytics.meta.currency, | |
}; | |
data.content_ids = order.items?.map(item => item.product_id); | |
data.content_type = "product_group"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.es_hook_open_popup = () => { | |
//Replace the following code with your pixel code | |
if ('object' == typeof ymq_option) { | |
if ('object' == typeof ymq_option.productInstance) { | |
ymq_option.productInstance.buildFormData().buildOtherFormData(); | |
ymq_option.productInstance.validate.validateAll(ymq_option.productInstance.formData, true); | |
if (ymq_option.productInstance.validate.validateCount != 0) { | |
document.getElementById('ymq-box').scrollIntoView({ | |
behavior: 'smooth' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.ES_AUTO_DETECT_PIXELS = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.onload = function () { | |
var logo = document.querySelector('.logo img'); | |
logo.addEventListener('click', function () { | |
window.location.href = 'https://'+Shopify.shop; | |
}); | |
logo.style.cursor = 'pointer'; | |
}; | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.ES_CONFIG_PARTIAL_OVERWRITE = { | |
"settings": { | |
"form_type": "native", | |
"sticky": false | |
} | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.ES_CONFIG_PARTIAL_OVERWRITE = { | |
"settings": { | |
"shippingConfig": { | |
"type": "custom", | |
"enabled": false | |
} | |
} | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
window.ES_CONFIG_PARTIAL_OVERWRITE = { | |
settings: { | |
form_type: "native" | |
} | |
} | |
</script> |
NewerOlder