people are viewing this right now
${function() {
const variantData = data.variant || {"id":"db27ae03-6c62-4756-ac0d-7593c3b42cf3","product_id":"fb17048a-6722-4094-9d8e-2139ea46ff67","title":"Sunrise-1.7 fl. oz.","weight_unit":"kg","inventory_quantity":1000,"sku":"6882","barcode":"816218026882","position":1,"option1":"Sunrise","option2":"1.7 fl. oz.","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4cf1ce033762685835de16ef61d91285.jpeg","path":"4cf1ce033762685835de16ef61d91285.jpeg","width":1180,"height":1604,"alt":"","aspect_ratio":0.7356608478802993},"wholesale_price":[{"price":36.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"36.99","retail_price":"0","available":true,"url":"\/products\/glowscreen-spf-40?variant=db27ae03-6c62-4756-ac0d-7593c3b42cf3","available_quantity":999999999,"options":[{"name":"Color","value":"Sunrise"},{"name":"Size","value":"1.7 fl. oz."}],"off_ratio":0,"flashsale_info":[],"sales":3};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + '');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"db27ae03-6c62-4756-ac0d-7593c3b42cf3","product_id":"fb17048a-6722-4094-9d8e-2139ea46ff67","title":"Sunrise-1.7 fl. oz.","weight_unit":"kg","inventory_quantity":1000,"sku":"6882","barcode":"816218026882","position":1,"option1":"Sunrise","option2":"1.7 fl. oz.","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4cf1ce033762685835de16ef61d91285.jpeg","path":"4cf1ce033762685835de16ef61d91285.jpeg","width":1180,"height":1604,"alt":"","aspect_ratio":0.7356608478802993},"wholesale_price":[{"price":36.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"36.99","retail_price":"0","available":true,"url":"\/products\/glowscreen-spf-40?variant=db27ae03-6c62-4756-ac0d-7593c3b42cf3","available_quantity":999999999,"options":[{"name":"Color","value":"Sunrise"},{"name":"Size","value":"1.7 fl. oz."}],"off_ratio":0,"flashsale_info":[],"sales":3};
return `
`
}()}