people are viewing this right now
${function() {
const variantData = data.variant || {"id":"59fa2d69-d5a1-4e04-986f-8dcb733d501f","product_id":"62f1f139-91fc-4268-be76-abf47f215b8b","title":"Light blue-S(US 6-8)","weight_unit":"kg","inventory_quantity":1000,"sku":"YSCC2402348-Light blue-S(US 6-8)","barcode":"","position":1,"option1":"Light blue","option2":"S(US 6-8)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/20285bd2124937355e1096d2c1b9c636.jpeg","path":"20285bd2124937355e1096d2c1b9c636.jpeg","width":800,"height":1200,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.98","price":"34.99","retail_price":"69.98","available":true,"url":"\/products\/lace-one-shoulder-dress?variant=59fa2d69-d5a1-4e04-986f-8dcb733d501f","available_quantity":999999999,"options":[{"name":"color","value":"Light blue"},{"name":"size","value":"S(US 6-8)"}],"off_ratio":50,"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":"59fa2d69-d5a1-4e04-986f-8dcb733d501f","product_id":"62f1f139-91fc-4268-be76-abf47f215b8b","title":"Light blue-S(US 6-8)","weight_unit":"kg","inventory_quantity":1000,"sku":"YSCC2402348-Light blue-S(US 6-8)","barcode":"","position":1,"option1":"Light blue","option2":"S(US 6-8)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/20285bd2124937355e1096d2c1b9c636.jpeg","path":"20285bd2124937355e1096d2c1b9c636.jpeg","width":800,"height":1200,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":34.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.98","price":"34.99","retail_price":"69.98","available":true,"url":"\/products\/lace-one-shoulder-dress?variant=59fa2d69-d5a1-4e04-986f-8dcb733d501f","available_quantity":999999999,"options":[{"name":"color","value":"Light blue"},{"name":"size","value":"S(US 6-8)"}],"off_ratio":50,"flashsale_info":[],"sales":0};
return `
`
}()}