people are viewing this right now
${function() {
const variantData = data.variant || {"id":"5470d4d3-bd13-4ba6-8543-15b9414ae29f","product_id":"2661e451-5143-41b2-9a0d-a39736d9a6af","title":"Khaki-M","weight_unit":"kg","inventory_quantity":1000,"sku":"LF20262700KAQM","barcode":"","position":1,"option1":"Khaki","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6806ce6a26d5423471d183039eb2f88c.jpeg","path":"6806ce6a26d5423471d183039eb2f88c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":32.99,"min_quantity":1}],"weight":"0","compare_at_price":"65.98","price":"32.99","retail_price":"65.98","available":true,"url":"\/products\/mens-lapel-faux-two-piece-knitted-shirt?variant=5470d4d3-bd13-4ba6-8543-15b9414ae29f","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"M"}],"off_ratio":50,"flashsale_info":[],"sales":1};
const saveType = "amount";
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('10');
const maxInventory = parseInt('50');
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 `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"5470d4d3-bd13-4ba6-8543-15b9414ae29f","product_id":"2661e451-5143-41b2-9a0d-a39736d9a6af","title":"Khaki-M","weight_unit":"kg","inventory_quantity":1000,"sku":"LF20262700KAQM","barcode":"","position":1,"option1":"Khaki","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6806ce6a26d5423471d183039eb2f88c.jpeg","path":"6806ce6a26d5423471d183039eb2f88c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":32.99,"min_quantity":1}],"weight":"0","compare_at_price":"65.98","price":"32.99","retail_price":"65.98","available":true,"url":"\/products\/mens-lapel-faux-two-piece-knitted-shirt?variant=5470d4d3-bd13-4ba6-8543-15b9414ae29f","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"M"}],"off_ratio":50,"flashsale_info":[],"sales":1};
return `
`
}()}