Golf fisherman hat, basin hat, bucket hat, sun protection hat
${function() {
const variantData = data.variant || {"id":"7262305a-0de3-45b3-a1eb-107a99e8b93c","product_id":"23ed3ac0-a8f1-4ce3-8b2e-bfa50ada7841","title":"white","weight_unit":"kg","inventory_quantity":46,"sku":"\u546835-1-white-A0012149","barcode":"","position":1,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2c148e734e5ebb838c693561403326a8.jpg","path":"2c148e734e5ebb838c693561403326a8.jpg","width":1920,"height":1440,"alt":"","aspect_ratio":1.3333333333333333},"wholesale_price":[{"price":13.5,"min_quantity":1}],"weight":"0.2","compare_at_price":"0","price":"13.5","retail_price":"0","available":true,"url":"\/products\/golf-fisherman-hat-basin-hat-bucket-hat-sun-protection-hat?variant=7262305a-0de3-45b3-a1eb-107a99e8b93c","available_quantity":46,"options":[{"name":"colour","value":"white"}],"off_ratio":0,"flashsale_info":[],"sales":9};
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":"7262305a-0de3-45b3-a1eb-107a99e8b93c","product_id":"23ed3ac0-a8f1-4ce3-8b2e-bfa50ada7841","title":"white","weight_unit":"kg","inventory_quantity":46,"sku":"\u546835-1-white-A0012149","barcode":"","position":1,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2c148e734e5ebb838c693561403326a8.jpg","path":"2c148e734e5ebb838c693561403326a8.jpg","width":1920,"height":1440,"alt":"","aspect_ratio":1.3333333333333333},"wholesale_price":[{"price":13.5,"min_quantity":1}],"weight":"0.2","compare_at_price":"0","price":"13.5","retail_price":"0","available":true,"url":"\/products\/golf-fisherman-hat-basin-hat-bucket-hat-sun-protection-hat?variant=7262305a-0de3-45b3-a1eb-107a99e8b93c","available_quantity":46,"options":[{"name":"colour","value":"white"}],"off_ratio":0,"flashsale_info":[],"sales":9};
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 `
`;
}()}