Golf empty top hat for both men and women
${function() {
const variantData = data.variant || {"id":"7a002fee-1dff-4b94-8951-254264dea991","product_id":"8b8b0ab5-5095-410a-a93e-22b589128ac7","title":"\u767d\u8272-1PC","weight_unit":"kg","inventory_quantity":99,"sku":"GFORE\u7a7a\u9876\u5e3d\u65b0\u6b3e-\u767d\u8272-\u9ad8\u5c14\u592b","barcode":"","position":1,"option1":"\u767d\u8272","option2":"1PC","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/895d5f3054995a97200946953b78d7b9.jpeg","path":"895d5f3054995a97200946953b78d7b9.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\/golf-empty-top-hat-for-both-men-and-women-yunb?variant=7a002fee-1dff-4b94-8951-254264dea991","available_quantity":99,"options":[{"name":"\u989c\u8272","value":"\u767d\u8272"},{"name":"wholesale","value":"1PC"}],"off_ratio":0,"flashsale_info":[],"sales":5};
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":"7a002fee-1dff-4b94-8951-254264dea991","product_id":"8b8b0ab5-5095-410a-a93e-22b589128ac7","title":"\u767d\u8272-1PC","weight_unit":"kg","inventory_quantity":99,"sku":"GFORE\u7a7a\u9876\u5e3d\u65b0\u6b3e-\u767d\u8272-\u9ad8\u5c14\u592b","barcode":"","position":1,"option1":"\u767d\u8272","option2":"1PC","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/895d5f3054995a97200946953b78d7b9.jpeg","path":"895d5f3054995a97200946953b78d7b9.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\/golf-empty-top-hat-for-both-men-and-women-yunb?variant=7a002fee-1dff-4b94-8951-254264dea991","available_quantity":99,"options":[{"name":"\u989c\u8272","value":"\u767d\u8272"},{"name":"wholesale","value":"1PC"}],"off_ratio":0,"flashsale_info":[],"sales":5};
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 `
`;
}()}