Golf Outdoor Hat with Adjustable Golf Hat Sunshade Hat Casual Versatile Duck Tongue Hat
${function() {
const variantData = data.variant || {"id":"53f381b2-7220-4f67-94e5-4838e8138391","product_id":"845f129f-611e-42e5-8579-41694770143a","title":"\u767d\u8272-1PC","weight_unit":"kg","inventory_quantity":48,"sku":"\u9ad8\u5c14\u4e50-22-\u767d\u8272-1PC-A0013116","barcode":"","position":1,"option1":"\u767d\u8272","option2":"1PC","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0de3e7d3169bbed98893a8cca42ad56a.jpeg","path":"0de3e7d3169bbed98893a8cca42ad56a.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-outdoor-hat-with-adjustable-golf-hat-sunshade-hat-casual-versatile-duck-tongue-hat?variant=53f381b2-7220-4f67-94e5-4838e8138391","available_quantity":48,"options":[{"name":"\u989c\u8272\u5206\u7c7b","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":"53f381b2-7220-4f67-94e5-4838e8138391","product_id":"845f129f-611e-42e5-8579-41694770143a","title":"\u767d\u8272-1PC","weight_unit":"kg","inventory_quantity":48,"sku":"\u9ad8\u5c14\u4e50-22-\u767d\u8272-1PC-A0013116","barcode":"","position":1,"option1":"\u767d\u8272","option2":"1PC","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0de3e7d3169bbed98893a8cca42ad56a.jpeg","path":"0de3e7d3169bbed98893a8cca42ad56a.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-outdoor-hat-with-adjustable-golf-hat-sunshade-hat-casual-versatile-duck-tongue-hat?variant=53f381b2-7220-4f67-94e5-4838e8138391","available_quantity":48,"options":[{"name":"\u989c\u8272\u5206\u7c7b","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 `
`;
}()}