people are viewing this right now
${function() {
const variantData = data.variant || {"id":"4ed1f2c4-303b-4b4e-91b9-0597af275234","product_id":"13fe7a84-5432-469b-ac41-b80cf7553a35","title":"warm-3M 20LED","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"warm","option2":"3M 20LED","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0d32783a5341e8ffeb1193b9b7cdd4a6.jpeg","path":"0d32783a5341e8ffeb1193b9b7cdd4a6.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.84,"min_quantity":1}],"weight":"0","compare_at_price":"7.04","price":"15.84","retail_price":"7.04","available":true,"url":"\/products\/christmas-ball-string-lights-decor-for-home?variant=4ed1f2c4-303b-4b4e-91b9-0597af275234","available_quantity":999999999,"options":[{"name":"Color","value":"warm"},{"name":"Size","value":"3M 20LED"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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":"4ed1f2c4-303b-4b4e-91b9-0597af275234","product_id":"13fe7a84-5432-469b-ac41-b80cf7553a35","title":"warm-3M 20LED","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"warm","option2":"3M 20LED","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0d32783a5341e8ffeb1193b9b7cdd4a6.jpeg","path":"0d32783a5341e8ffeb1193b9b7cdd4a6.jpeg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":15.84,"min_quantity":1}],"weight":"0","compare_at_price":"7.04","price":"15.84","retail_price":"7.04","available":true,"url":"\/products\/christmas-ball-string-lights-decor-for-home?variant=4ed1f2c4-303b-4b4e-91b9-0597af275234","available_quantity":999999999,"options":[{"name":"Color","value":"warm"},{"name":"Size","value":"3M 20LED"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}