Golf bucket cap and basin cap
${function() {
const variantData = data.variant || {"id":"d969cd44-f2c8-42c6-a0a0-d8ea96460339","product_id":"110f877f-4140-4ac7-9398-3f2541f7f340","title":"\u9ed1\u8272","weight_unit":"kg","inventory_quantity":96,"sku":"GFORE\u6e14\u592b\u5e3d\u65b0\u6b3e-\u9ed1\u8272-\u9ad8\u5c14\u4e50","barcode":"","position":1,"option1":"\u9ed1\u8272","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7b21778efbc685f2f485403721b98e77.jpg","path":"7b21778efbc685f2f485403721b98e77.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":12,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"12","retail_price":"0","available":true,"url":"\/products\/golf-bucket-cap-and-basin-cap-uias?variant=d969cd44-f2c8-42c6-a0a0-d8ea96460339","available_quantity":96,"options":[{"name":"\u989c\u8272","value":"\u9ed1\u8272"}],"off_ratio":0,"flashsale_info":[],"sales":11};
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":"d969cd44-f2c8-42c6-a0a0-d8ea96460339","product_id":"110f877f-4140-4ac7-9398-3f2541f7f340","title":"\u9ed1\u8272","weight_unit":"kg","inventory_quantity":96,"sku":"GFORE\u6e14\u592b\u5e3d\u65b0\u6b3e-\u9ed1\u8272-\u9ad8\u5c14\u4e50","barcode":"","position":1,"option1":"\u9ed1\u8272","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7b21778efbc685f2f485403721b98e77.jpg","path":"7b21778efbc685f2f485403721b98e77.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":12,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"12","retail_price":"0","available":true,"url":"\/products\/golf-bucket-cap-and-basin-cap-uias?variant=d969cd44-f2c8-42c6-a0a0-d8ea96460339","available_quantity":96,"options":[{"name":"\u989c\u8272","value":"\u9ed1\u8272"}],"off_ratio":0,"flashsale_info":[],"sales":11};
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 `
`;
}()}