${function() {
const variantData = data.variant || {"id":"2dcc61f2-4cb6-4757-822a-0c0bb3fc17f0","product_id":"b03dc2d6-7c9c-446a-b2ee-ec412b9d129c","title":"Silver-Buy 1","weight_unit":"kg","inventory_quantity":0,"sku":"SLRJ5EUV-0002","barcode":"","position":1,"option1":"Silver","option2":"Buy 1","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d6efd798df4fc4bf108cdba1e4d5073b.jpeg","path":"d6efd798df4fc4bf108cdba1e4d5073b.jpeg","width":600,"height":640,"alt":"","aspect_ratio":0.9375},"wholesale_price":[{"price":26.99,"min_quantity":1}],"weight":"0","compare_at_price":"51.99","price":"26.99","retail_price":"51.99","available":true,"url":"\/products\/\ud83d\udd26german-three-eyed-monster-mini-flash-super-power-flashlight?variant=2dcc61f2-4cb6-4757-822a-0c0bb3fc17f0","available_quantity":999999999,"options":[{"name":"Color","value":"Silver"},{"name":"Qty","value":"Buy 1"}],"off_ratio":48,"flashsale_info":[],"sales":1673};
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 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.