${function() {
const variantData = data.variant || {"id":"b0afd75f-c986-4a5e-b173-4f30bd63b137","product_id":"cd5d9998-05e2-4122-a922-38c6676df160","title":"White and transparent","weight_unit":"kg","inventory_quantity":0,"sku":"SLRJSI18-0001","barcode":"","position":1,"option1":"White and transparent","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/03f570f67d52159e4df6c42498e8c375.jpeg","path":"03f570f67d52159e4df6c42498e8c375.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":26.99,"min_quantity":1}],"weight":"0","compare_at_price":"48","price":"26.99","retail_price":"48","available":true,"url":"\/products\/\u2728-large-frame-swimming-goggles-hd-waterproof-anti-fog-goggles-one-piece-earplugs-boys-and-girls-swimming-goggles?variant=b0afd75f-c986-4a5e-b173-4f30bd63b137","available_quantity":999999999,"options":[{"name":"color","value":"White and transparent"}],"off_ratio":44,"flashsale_info":[],"sales":6621};
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.