${function() {
const variantData = data.variant || {"id":"485b4315-0267-46e1-8b52-cba86fcb49a3","product_id":"90078f9e-9313-41e6-8e7d-981a5be4991d","title":"TR90-C1 gold and black frame","weight_unit":"kg","inventory_quantity":0,"sku":"SLR00ZLG-0001","barcode":"","position":1,"option1":"TR90-C1 gold and black frame","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/daf8ffdbae72cd695fba69d41b9da0f8.jpg","path":"daf8ffdbae72cd695fba69d41b9da0f8.jpg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"0","compare_at_price":"68.99","price":"33.99","retail_price":"68.99","available":true,"url":"\/products\/\ud83d\udc53anti-blue-light-beauty-glasses\ud83d\udc53?variant=485b4315-0267-46e1-8b52-cba86fcb49a3","available_quantity":999999999,"options":[{"name":"Specification","value":"TR90-C1 gold and black frame"}],"off_ratio":51,"flashsale_info":[],"sales":1364};
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.