people are viewing this right now
${function() {
const variantData = data.variant || {"id":"c52a8554-7ee2-4387-a95d-dd04671ad3f1","product_id":"80b40522-1ce6-4bab-9ff1-3f1cd46960f0","title":"black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"PYY072129-black-S","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7d57b27bb7cfec6f1bce9e68ab01c633.jpg","path":"7d57b27bb7cfec6f1bce9e68ab01c633.jpg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"39.99","retail_price":"0","available":true,"url":"\/products\/sexy-solid-color-slip-back-dress-nvh7-0kp5-4htb-8op4-degf185662b1-5431-44df-b2de-8736c81720ea?variant=c52a8554-7ee2-4387-a95d-dd04671ad3f1","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":2};
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":"c52a8554-7ee2-4387-a95d-dd04671ad3f1","product_id":"80b40522-1ce6-4bab-9ff1-3f1cd46960f0","title":"black-S","weight_unit":"kg","inventory_quantity":1000,"sku":"PYY072129-black-S","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7d57b27bb7cfec6f1bce9e68ab01c633.jpg","path":"7d57b27bb7cfec6f1bce9e68ab01c633.jpg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"39.99","retail_price":"0","available":true,"url":"\/products\/sexy-solid-color-slip-back-dress-nvh7-0kp5-4htb-8op4-degf185662b1-5431-44df-b2de-8736c81720ea?variant=c52a8554-7ee2-4387-a95d-dd04671ad3f1","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":2};
return `
`
}()}