Golf basin cap, bucket cap, sun protection cap
${function() {
const variantData = data.variant || {"id":"6c13fa68-6e71-43a9-b6b9-36cc005d1dd3","product_id":"d21d4b63-9457-472d-bce2-868f5f941b21","title":"black","weight_unit":"kg","inventory_quantity":49,"sku":"\u9ad8-30-1-black-A0012633","barcode":"","position":1,"option1":"black","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":12.8,"min_quantity":1}],"weight":"0.2","compare_at_price":"0","price":"12.8","retail_price":"0","available":true,"url":"\/products\/golf-basin-cap-bucket-cap-sun-protection-cap-9olp?variant=6c13fa68-6e71-43a9-b6b9-36cc005d1dd3","available_quantity":49,"options":[{"name":"colour","value":"black"}],"off_ratio":0,"flashsale_info":[],"sales":2};
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":"6c13fa68-6e71-43a9-b6b9-36cc005d1dd3","product_id":"d21d4b63-9457-472d-bce2-868f5f941b21","title":"black","weight_unit":"kg","inventory_quantity":49,"sku":"\u9ad8-30-1-black-A0012633","barcode":"","position":1,"option1":"black","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":12.8,"min_quantity":1}],"weight":"0.2","compare_at_price":"0","price":"12.8","retail_price":"0","available":true,"url":"\/products\/golf-basin-cap-bucket-cap-sun-protection-cap-9olp?variant=6c13fa68-6e71-43a9-b6b9-36cc005d1dd3","available_quantity":49,"options":[{"name":"colour","value":"black"}],"off_ratio":0,"flashsale_info":[],"sales":2};
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 `
`;
}()}