${function() {
const variantData = data.variant || {"id":"d37547a9-089d-4d64-b19e-016664067cb2","product_id":"ef2a3e2f-23c7-4bd3-91ba-883e65e71db6","title":"Pink-24 knots (waist circumference less than 120cm)","weight_unit":"kg","inventory_quantity":0,"sku":"SLREVLW1-0001","barcode":"","position":1,"option1":"Pink","option2":"24 knots (waist circumference less than 120cm)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b43c4d2d61245468785abda240083368.jpg","path":"b43c4d2d61245468785abda240083368.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":59.99,"min_quantity":1}],"weight":"0","compare_at_price":"129.99","price":"59.99","retail_price":"129.99","available":true,"url":"\/products\/\ud83d\udca5-belly-reduction-hula-hoop?variant=d37547a9-089d-4d64-b19e-016664067cb2","available_quantity":999999999,"options":[{"name":"CHOOSE COLOR","value":"Pink"},{"name":"CHOOSE SIZE","value":"24 knots (waist circumference less than 120cm)"}],"off_ratio":54,"flashsale_info":[],"sales":635};
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.