Discounted 【pre-sale, March 2nd】 H6051 # Golf unisex top layer cowhide belt
${function() {
const variantData = data.variant || {"id":"7ca46c69-d6bb-40e0-993d-8638224d21d6","product_id":"7ba22e69-41a9-4024-b1c5-97e3f85e90d2","title":"black-100CM","weight_unit":"kg","inventory_quantity":30,"sku":"H6051#90-black-100CM-A0012166","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-h6051-golf-unisex-top-layer-cowhide-belt?variant=7ca46c69-d6bb-40e0-993d-8638224d21d6","available_quantity":30,"options":[{"name":"colour","value":"black"},{"name":"size","value":"100CM"}],"off_ratio":0,"flashsale_info":[],"sales":4};
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":"7ca46c69-d6bb-40e0-993d-8638224d21d6","product_id":"7ba22e69-41a9-4024-b1c5-97e3f85e90d2","title":"black-100CM","weight_unit":"kg","inventory_quantity":30,"sku":"H6051#90-black-100CM-A0012166","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-h6051-golf-unisex-top-layer-cowhide-belt?variant=7ca46c69-d6bb-40e0-993d-8638224d21d6","available_quantity":30,"options":[{"name":"colour","value":"black"},{"name":"size","value":"100CM"}],"off_ratio":0,"flashsale_info":[],"sales":4};
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 `
`;
}()}