Discounted 【pre-sale, March 2nd】 H6048 # Golf unisex top layer cowhide belt
${function() {
const variantData = data.variant || {"id":"6244136b-4a1c-4f96-ad7a-a5248d6a8181","product_id":"ea458813-f780-4f3f-b91d-ac6b9606865a","title":"black-100cm","weight_unit":"kg","inventory_quantity":29,"sku":"H6048#90-black-100cm-A0012184","barcode":"","position":1,"option1":"black","option2":"100cm","option3":"","note":"","image":null,"wholesale_price":[{"price":29,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"29","retail_price":"0","available":true,"url":"\/products\/discounted-pre-sale-march-2nd-h6048-golf-unisex-top-layer-cowhide-belt?variant=6244136b-4a1c-4f96-ad7a-a5248d6a8181","available_quantity":29,"options":[{"name":"colour","value":"black"},{"name":"size","value":"100cm"}],"off_ratio":0,"flashsale_info":[],"sales":15};
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":"6244136b-4a1c-4f96-ad7a-a5248d6a8181","product_id":"ea458813-f780-4f3f-b91d-ac6b9606865a","title":"black-100cm","weight_unit":"kg","inventory_quantity":29,"sku":"H6048#90-black-100cm-A0012184","barcode":"","position":1,"option1":"black","option2":"100cm","option3":"","note":"","image":null,"wholesale_price":[{"price":29,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"29","retail_price":"0","available":true,"url":"\/products\/discounted-pre-sale-march-2nd-h6048-golf-unisex-top-layer-cowhide-belt?variant=6244136b-4a1c-4f96-ad7a-a5248d6a8181","available_quantity":29,"options":[{"name":"colour","value":"black"},{"name":"size","value":"100cm"}],"off_ratio":0,"flashsale_info":[],"sales":15};
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 `
`;
}()}