Men's Golf Baseball Hat
Golf Baseball Hat
${function() {
const variantData = data.variant || {"id":"79d042c9-4998-4023-b217-7a534e4f7089","product_id":"b960c7e2-f639-4f36-8fd2-12ca78ec62fb","title":"white","weight_unit":"kg","inventory_quantity":0,"sku":"{tiezhi}-white-A001385","barcode":"","position":3,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6566bbc912252eeb944a50b6b61900f9.jpg","path":"6566bbc912252eeb944a50b6b61900f9.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":12,"min_quantity":1}],"weight":"0","compare_at_price":"26","price":"12","retail_price":"26","available":false,"url":"\/products\/mens-golf-baseball-hat?variant=79d042c9-4998-4023-b217-7a534e4f7089","available_quantity":0,"options":[{"name":"color","value":"white"}],"off_ratio":54,"flashsale_info":[],"sales":93};
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":"79d042c9-4998-4023-b217-7a534e4f7089","product_id":"b960c7e2-f639-4f36-8fd2-12ca78ec62fb","title":"white","weight_unit":"kg","inventory_quantity":0,"sku":"{tiezhi}-white-A001385","barcode":"","position":3,"option1":"white","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6566bbc912252eeb944a50b6b61900f9.jpg","path":"6566bbc912252eeb944a50b6b61900f9.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":12,"min_quantity":1}],"weight":"0","compare_at_price":"26","price":"12","retail_price":"26","available":false,"url":"\/products\/mens-golf-baseball-hat?variant=79d042c9-4998-4023-b217-7a534e4f7089","available_quantity":0,"options":[{"name":"color","value":"white"}],"off_ratio":54,"flashsale_info":[],"sales":93};
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 `
`;
}()}