New men's sleeveless vest shorts set
${function() {
const variantData = data.variant || {"id":"02d851d7-1512-4b66-a643-09585a109dc0","product_id":"09e037df-29b0-42c5-a2c2-b91ff42d0a85","title":"\u7eff\u8272-M-tops","weight_unit":"kg","inventory_quantity":26,"sku":"HMS-\u9a6c\u7532160-\u77ed\u88e4150-\u7eff\u8272-M-tops-A0012747","barcode":"","position":1,"option1":"\u7eff\u8272","option2":"M","option3":"tops","note":"","image":{"src":"\/\/img.staticdj.com\/fdbfc1d56acb0ebce478310b913fc272.jpg","path":"fdbfc1d56acb0ebce478310b913fc272.jpg","width":1078,"height":1078,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"39","retail_price":"0","available":true,"url":"\/products\/new-mens-sleeveless-vest-shorts-set?variant=02d851d7-1512-4b66-a643-09585a109dc0","available_quantity":26,"options":[{"name":"\u989c\u8272","value":"\u7eff\u8272"},{"name":"\u5c3a\u5bf8","value":"M"},{"name":"\u670d\u88c5","value":"tops"}],"off_ratio":0,"flashsale_info":[],"sales":54};
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}
`
}()}
${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":"02d851d7-1512-4b66-a643-09585a109dc0","product_id":"09e037df-29b0-42c5-a2c2-b91ff42d0a85","title":"\u7eff\u8272-M-tops","weight_unit":"kg","inventory_quantity":26,"sku":"HMS-\u9a6c\u7532160-\u77ed\u88e4150-\u7eff\u8272-M-tops-A0012747","barcode":"","position":1,"option1":"\u7eff\u8272","option2":"M","option3":"tops","note":"","image":{"src":"\/\/img.staticdj.com\/fdbfc1d56acb0ebce478310b913fc272.jpg","path":"fdbfc1d56acb0ebce478310b913fc272.jpg","width":1078,"height":1078,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"39","retail_price":"0","available":true,"url":"\/products\/new-mens-sleeveless-vest-shorts-set?variant=02d851d7-1512-4b66-a643-09585a109dc0","available_quantity":26,"options":[{"name":"\u989c\u8272","value":"\u7eff\u8272"},{"name":"\u5c3a\u5bf8","value":"M"},{"name":"\u670d\u88c5","value":"tops"}],"off_ratio":0,"flashsale_info":[],"sales":54};
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 `
`;
}()}