${function() {
const variantData = data.variant || {"id":"22159742-8dc7-4ce2-800a-46971bf558e7","product_id":"2222a10f-cf2c-4cfd-ab1f-8fe4d9aedef8","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\/hot-sale-\ud83d\udc53anti-blue-light-beauty-glasses\ud83d\udc53?variant=22159742-8dc7-4ce2-800a-46971bf558e7","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.