Golf Hat Men's and Women's Fashion and Leisure Golf Hat
${function() {
const variantData = data.variant || {"id":"177d0597-b63a-4f78-9647-c1b6c5c11056","product_id":"c6fd5b4b-280a-4e5f-b5b1-7107a297690d","title":"\u767d\u82b1\u94f6\u5b57-1pc","weight_unit":"kg","inventory_quantity":98,"sku":"PXG\u82b1\u5e3d\u65b0\u6b3e-\u767d\u82b1\u94f6\u5b57-\u9ad8\u5c14\u4e50","barcode":"","position":1,"option1":"\u767d\u82b1\u94f6\u5b57","option2":"1pc","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b3711cea27eb7c4e9338f5e0d7d4bf6e.jpeg","path":"b3711cea27eb7c4e9338f5e0d7d4bf6e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":11,"min_quantity":1}],"weight":"0.12","compare_at_price":"125","price":"11","retail_price":"125","available":true,"url":"\/products\/golf-hat-mens-and-womens-fashion-and-leisure-golf-hat-icyn?variant=177d0597-b63a-4f78-9647-c1b6c5c11056","available_quantity":98,"options":[{"name":"\u989c\u8272\u5206\u7c7b","value":"\u767d\u82b1\u94f6\u5b57"},{"name":"wholesale","value":"1pc"}],"off_ratio":91,"flashsale_info":[],"sales":16};
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":"177d0597-b63a-4f78-9647-c1b6c5c11056","product_id":"c6fd5b4b-280a-4e5f-b5b1-7107a297690d","title":"\u767d\u82b1\u94f6\u5b57-1pc","weight_unit":"kg","inventory_quantity":98,"sku":"PXG\u82b1\u5e3d\u65b0\u6b3e-\u767d\u82b1\u94f6\u5b57-\u9ad8\u5c14\u4e50","barcode":"","position":1,"option1":"\u767d\u82b1\u94f6\u5b57","option2":"1pc","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b3711cea27eb7c4e9338f5e0d7d4bf6e.jpeg","path":"b3711cea27eb7c4e9338f5e0d7d4bf6e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":11,"min_quantity":1}],"weight":"0.12","compare_at_price":"125","price":"11","retail_price":"125","available":true,"url":"\/products\/golf-hat-mens-and-womens-fashion-and-leisure-golf-hat-icyn?variant=177d0597-b63a-4f78-9647-c1b6c5c11056","available_quantity":98,"options":[{"name":"\u989c\u8272\u5206\u7c7b","value":"\u767d\u82b1\u94f6\u5b57"},{"name":"wholesale","value":"1pc"}],"off_ratio":91,"flashsale_info":[],"sales":16};
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 `
`;
}()}