Black and white fisherman hat with rubber seal logo, head circumference 58cm-DX
${function() {
const variantData = data.variant || {"id":"3a41b67b-cc01-43d6-802f-1074357a220b","product_id":"aa8a306d-bc97-4a67-b2ad-93798786e54f","title":"black-1PC","weight_unit":"kg","inventory_quantity":61,"sku":"\u5927\u65ed-38-black-1PC-A0013204","barcode":"","position":1,"option1":"black","option2":"1PC","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6f6a0a88757120dab8e422401589a343.jpg","path":"6f6a0a88757120dab8e422401589a343.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16,"min_quantity":1}],"weight":"0.15","compare_at_price":"0","price":"16","retail_price":"0","available":true,"url":"\/products\/black-and-white-fisherman-hat-with-rubber-seal-logo-head-circumference-58cm-dx?variant=3a41b67b-cc01-43d6-802f-1074357a220b","available_quantity":61,"options":[{"name":"colour","value":"black"},{"name":"wholesale","value":"1PC"}],"off_ratio":0,"flashsale_info":[],"sales":73};
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":"3a41b67b-cc01-43d6-802f-1074357a220b","product_id":"aa8a306d-bc97-4a67-b2ad-93798786e54f","title":"black-1PC","weight_unit":"kg","inventory_quantity":61,"sku":"\u5927\u65ed-38-black-1PC-A0013204","barcode":"","position":1,"option1":"black","option2":"1PC","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6f6a0a88757120dab8e422401589a343.jpg","path":"6f6a0a88757120dab8e422401589a343.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16,"min_quantity":1}],"weight":"0.15","compare_at_price":"0","price":"16","retail_price":"0","available":true,"url":"\/products\/black-and-white-fisherman-hat-with-rubber-seal-logo-head-circumference-58cm-dx?variant=3a41b67b-cc01-43d6-802f-1074357a220b","available_quantity":61,"options":[{"name":"colour","value":"black"},{"name":"wholesale","value":"1PC"}],"off_ratio":0,"flashsale_info":[],"sales":73};
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 `
`;
}()}