${function() {
const variantData = data.variant || {"id":"33faf332-1511-40a5-8023-c39f3382ca8b","product_id":"55bb8dec-840c-4cc5-ac92-e61ef4f02ba7","title":"Shadowmoon Magic Academy.","weight_unit":"kg","inventory_quantity":0,"sku":"SLRYEUDO-0001","barcode":"","position":1,"option1":"Shadowmoon Magic Academy.","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3cbafdf637b38a02724e7c49cd260c68.jpg","path":"3cbafdf637b38a02724e7c49cd260c68.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":65.99,"min_quantity":1}],"weight":"0","compare_at_price":"139.99","price":"65.99","retail_price":"139.99","available":true,"url":"\/products\/\ud83d\udd25handmade-assembled-bookend-magic-academy?variant=33faf332-1511-40a5-8023-c39f3382ca8b","available_quantity":999999999,"options":[{"name":"Style","value":"Shadowmoon Magic Academy."}],"off_ratio":53,"flashsale_info":[],"sales":4635};
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.