New Golf Hat, Men's Sunscreen Hat, Baseball Hat
${function() {
const variantData = data.variant || {"id":"06f84fb7-69e2-4763-a122-64a488ac4a51","product_id":"a40357a7-8c54-4ef7-abf0-bf04115136e9","title":"1","weight_unit":"kg","inventory_quantity":49,"sku":"\u9ad8-26-10-1-A0013673","barcode":"","position":1,"option1":"1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/205645544514cefca98152bf09285566.jpg","path":"205645544514cefca98152bf09285566.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":12.5,"min_quantity":1}],"weight":"0.2","compare_at_price":"0","price":"12.5","retail_price":"0","available":true,"url":"\/products\/new-golf-hat-mens-sunscreen-hat-baseball-hat?variant=06f84fb7-69e2-4763-a122-64a488ac4a51","available_quantity":49,"options":[{"name":"colour","value":"1"}],"off_ratio":0,"flashsale_info":[],"sales":3};
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":"06f84fb7-69e2-4763-a122-64a488ac4a51","product_id":"a40357a7-8c54-4ef7-abf0-bf04115136e9","title":"1","weight_unit":"kg","inventory_quantity":49,"sku":"\u9ad8-26-10-1-A0013673","barcode":"","position":1,"option1":"1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/205645544514cefca98152bf09285566.jpg","path":"205645544514cefca98152bf09285566.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":12.5,"min_quantity":1}],"weight":"0.2","compare_at_price":"0","price":"12.5","retail_price":"0","available":true,"url":"\/products\/new-golf-hat-mens-sunscreen-hat-baseball-hat?variant=06f84fb7-69e2-4763-a122-64a488ac4a51","available_quantity":49,"options":[{"name":"colour","value":"1"}],"off_ratio":0,"flashsale_info":[],"sales":3};
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 `
`;
}()}