⏰Christmas Clearance Sale⏰The Outdoor 5' Twinkling Nutcracker - Solar energy storage function
${function() {
const variantData = data.variant || {"id":"0477ddbd-c192-4688-a655-c6c05e0589f8","product_id":"c9532672-dfe5-4470-b841-108bc07d2b1d","title":"BUY 1","weight_unit":"kg","inventory_quantity":1000,"sku":"sku2086834568643","barcode":"","position":1,"option1":"BUY 1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5f00cda3bdb961fe452d85e60b8f1a85.png","path":"5f00cda3bdb961fe452d85e60b8f1a85.png","width":836,"height":838,"alt":"","aspect_ratio":0.9976133651551312},"wholesale_price":[{"price":22.78,"min_quantity":1}],"weight":"0","compare_at_price":"60","price":"22.78","retail_price":"60","available":true,"url":"\/products\/the-outdoor-5-twinkling-nutcracker-yyzd-ynyh?variant=0477ddbd-c192-4688-a655-c6c05e0589f8","available_quantity":999999999,"options":[{"name":"Quantity","value":"BUY 1"}],"off_ratio":62,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"0477ddbd-c192-4688-a655-c6c05e0589f8","product_id":"c9532672-dfe5-4470-b841-108bc07d2b1d","title":"BUY 1","weight_unit":"kg","inventory_quantity":1000,"sku":"sku2086834568643","barcode":"","position":1,"option1":"BUY 1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5f00cda3bdb961fe452d85e60b8f1a85.png","path":"5f00cda3bdb961fe452d85e60b8f1a85.png","width":836,"height":838,"alt":"","aspect_ratio":0.9976133651551312},"wholesale_price":[{"price":22.78,"min_quantity":1}],"weight":"0","compare_at_price":"60","price":"22.78","retail_price":"60","available":true,"url":"\/products\/the-outdoor-5-twinkling-nutcracker-yyzd-ynyh?variant=0477ddbd-c192-4688-a655-c6c05e0589f8","available_quantity":999999999,"options":[{"name":"Quantity","value":"BUY 1"}],"off_ratio":62,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('52');
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 `
`;
}()}