Golf emblem badge belt, men's belt
${function() {
const variantData = data.variant || {"id":"071d8e7d-3c05-4006-9c7c-510bf311ae6a","product_id":"0f9998bc-88f2-47f1-9453-82d2ed324be1","title":"black","weight_unit":"kg","inventory_quantity":34,"sku":"\u5927\u65ed-65-black-A0017630","barcode":"","position":1,"option1":"black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f022e10ec7aa19179fb2e2f7f584a5dc.jpg","path":"f022e10ec7aa19179fb2e2f7f584a5dc.jpg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"29","retail_price":"0","available":true,"url":"\/products\/golf-emblem-badge-belt-mens-belt?variant=071d8e7d-3c05-4006-9c7c-510bf311ae6a","available_quantity":34,"options":[{"name":"colour","value":"black"}],"off_ratio":0,"flashsale_info":[],"sales":18};
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":"071d8e7d-3c05-4006-9c7c-510bf311ae6a","product_id":"0f9998bc-88f2-47f1-9453-82d2ed324be1","title":"black","weight_unit":"kg","inventory_quantity":34,"sku":"\u5927\u65ed-65-black-A0017630","barcode":"","position":1,"option1":"black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f022e10ec7aa19179fb2e2f7f584a5dc.jpg","path":"f022e10ec7aa19179fb2e2f7f584a5dc.jpg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"29","retail_price":"0","available":true,"url":"\/products\/golf-emblem-badge-belt-mens-belt?variant=071d8e7d-3c05-4006-9c7c-510bf311ae6a","available_quantity":34,"options":[{"name":"colour","value":"black"}],"off_ratio":0,"flashsale_info":[],"sales":18};
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 `
`;
}()}