${function() {
const variantData = data.variant || {"id":"7ac5ce22-f3bc-4465-9ea8-62b89fc6652b","product_id":"3429800c-71e1-4f79-9986-e75e9b09d67a","title":"Buy 1 \uff08 \ud83d\udca5 Flash Sale\uff09","weight_unit":"kg","inventory_quantity":0,"sku":"SLRIUUEH-0001","barcode":"","position":1,"option1":"Buy 1 \uff08 \ud83d\udca5 Flash Sale\uff09","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":44.99,"min_quantity":1}],"weight":"0","compare_at_price":"76.99","price":"44.99","retail_price":"76.99","available":true,"url":"\/products\/\ud83d\udd25hot-sale-49-off\ud83d\udd25-hydrogen-water-cup?variant=7ac5ce22-f3bc-4465-9ea8-62b89fc6652b","available_quantity":999999999,"options":[{"name":"Buy More Save More","value":"Buy 1 \uff08 \ud83d\udca5 Flash Sale\uff09"}],"off_ratio":42,"flashsale_info":[],"sales":1194};
const saveType = "percentage";
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('20');
const maxInventory = parseInt('100');
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 `
`;
}()}
people are viewing this right now
Product was out of stock.
Product is unavailable.