people are viewing this right now
${function() {
const variantData = data.variant || {"id":"e85ea69f-53ae-47f5-bd6b-8b8c1e661d32","product_id":"493946f0-1107-4d25-aa65-477469a7fea7","title":"8pcs Champagne set","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"8pcs Champagne set","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4f65d5c7917dcb038362f33d03d9c971.jpeg","path":"4f65d5c7917dcb038362f33d03d9c971.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"56.99","price":"29.99","retail_price":"56.99","available":true,"url":"\/products\/gold-decorative-hangings-christmas-balls?variant=e85ea69f-53ae-47f5-bd6b-8b8c1e661d32","available_quantity":999999999,"options":[{"name":"Color","value":"8pcs Champagne set"}],"off_ratio":47,"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 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":"e85ea69f-53ae-47f5-bd6b-8b8c1e661d32","product_id":"493946f0-1107-4d25-aa65-477469a7fea7","title":"8pcs Champagne set","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"8pcs Champagne set","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4f65d5c7917dcb038362f33d03d9c971.jpeg","path":"4f65d5c7917dcb038362f33d03d9c971.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"56.99","price":"29.99","retail_price":"56.99","available":true,"url":"\/products\/gold-decorative-hangings-christmas-balls?variant=e85ea69f-53ae-47f5-bd6b-8b8c1e661d32","available_quantity":999999999,"options":[{"name":"Color","value":"8pcs Champagne set"}],"off_ratio":47,"flashsale_info":[],"sales":0};
return `
`
}()}