Discounted men's short sleeves
${function() {
const variantData = data.variant || {"id":"01a31ca2-8180-4955-83dc-2435fddc7462","product_id":"d5b918bc-13a9-4db7-ad53-74fae3cd7418","title":"white-M","weight_unit":"kg","inventory_quantity":0,"sku":"\u5e93\u5b58-white-M-A0011401","barcode":"","position":1,"option1":"white","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5172a145673faa12b3ce49029a7a6e33.jpg","path":"5172a145673faa12b3ce49029a7a6e33.jpg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":10,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"10","retail_price":"0","available":false,"url":"\/products\/discounted-mens-short-sleeves?variant=01a31ca2-8180-4955-83dc-2435fddc7462","available_quantity":0,"options":[{"name":"colour","value":"white"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":7};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"01a31ca2-8180-4955-83dc-2435fddc7462","product_id":"d5b918bc-13a9-4db7-ad53-74fae3cd7418","title":"white-M","weight_unit":"kg","inventory_quantity":0,"sku":"\u5e93\u5b58-white-M-A0011401","barcode":"","position":1,"option1":"white","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5172a145673faa12b3ce49029a7a6e33.jpg","path":"5172a145673faa12b3ce49029a7a6e33.jpg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":10,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"10","retail_price":"0","available":false,"url":"\/products\/discounted-mens-short-sleeves?variant=01a31ca2-8180-4955-83dc-2435fddc7462","available_quantity":0,"options":[{"name":"colour","value":"white"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":7};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${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 `
`;
}()}