New camouflage empty top hat
${function() {
const variantData = data.variant || {"id":"b487d0f4-3836-4cca-9fd1-05ac0e5d2de9","product_id":"aa3dc56e-9917-4c13-867e-6117cccbe917","title":"\u767d\u8272","weight_unit":"kg","inventory_quantity":45,"sku":"TIS\u8ff7\u5f69\u7a7a\u9876\u5e3d\u65b0-\u767d\u8272-\u9ad8\u5c14\u4e50","barcode":"","position":1,"option1":"\u767d\u8272","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6d8109262f0ec3888d8b6e637b7a37cb.jpeg","path":"6d8109262f0ec3888d8b6e637b7a37cb.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":11,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"11","retail_price":"0","available":true,"url":"\/products\/new-camouflage-empty-top-hat?variant=b487d0f4-3836-4cca-9fd1-05ac0e5d2de9","available_quantity":45,"options":[{"name":"\u989c\u8272","value":"\u767d\u8272"}],"off_ratio":0,"flashsale_info":[],"sales":8};
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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"b487d0f4-3836-4cca-9fd1-05ac0e5d2de9","product_id":"aa3dc56e-9917-4c13-867e-6117cccbe917","title":"\u767d\u8272","weight_unit":"kg","inventory_quantity":45,"sku":"TIS\u8ff7\u5f69\u7a7a\u9876\u5e3d\u65b0-\u767d\u8272-\u9ad8\u5c14\u4e50","barcode":"","position":1,"option1":"\u767d\u8272","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6d8109262f0ec3888d8b6e637b7a37cb.jpeg","path":"6d8109262f0ec3888d8b6e637b7a37cb.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":11,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"11","retail_price":"0","available":true,"url":"\/products\/new-camouflage-empty-top-hat?variant=b487d0f4-3836-4cca-9fd1-05ac0e5d2de9","available_quantity":45,"options":[{"name":"\u989c\u8272","value":"\u767d\u8272"}],"off_ratio":0,"flashsale_info":[],"sales":8};
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 `
`;
}()}