${function() {
const variantData = data.variant || {"id":"62d7623e-8c60-467d-aee8-e9dd9d9dd218","product_id":"b1f741c6-0f4a-4595-9fc6-6b427fb9be8c","title":"BUY 1 BOTTLE - TRIAL PACK","weight_unit":"kg","inventory_quantity":0,"sku":"SLREOSX6-0001","barcode":"","position":1,"option1":"BUY 1 BOTTLE - TRIAL PACK","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/271b6142bb05ce76ae3c2e961e470674.png","path":"271b6142bb05ce76ae3c2e961e470674.png","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0","compare_at_price":"45.08","price":"22.99","retail_price":"45.08","available":true,"url":"\/products\/dubai-mens-perfume-elegant-long-lasting-scent-tqw3?variant=62d7623e-8c60-467d-aee8-e9dd9d9dd218","available_quantity":999999999,"options":[{"name":"Buy More Save More!","value":"BUY 1 BOTTLE - TRIAL PACK"}],"off_ratio":49,"flashsale_info":[],"sales":3201};
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.