Golf men's short sleeved couple style, classic style-HMSA020
${function() {
const variantData = data.variant || {"id":"2cfbbe37-387e-46a5-9cc3-b77c48bef738","product_id":"2a2a26ca-cb81-4a04-aa6a-4f7140df2bd4","title":"\u84dd\u8272-M","weight_unit":"kg","inventory_quantity":44,"sku":"HMS-A020-\u84dd\u8272-M-A0012147","barcode":"","position":1,"option1":"\u84dd\u8272","option2":"M","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\/golf-mens-short-sleeved-couple-style-classic-style-hmsa020?variant=2cfbbe37-387e-46a5-9cc3-b77c48bef738","available_quantity":44,"options":[{"name":"\u989c\u8272","value":"\u84dd\u8272"},{"name":"\u5c3a\u7801","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":27};
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":"2cfbbe37-387e-46a5-9cc3-b77c48bef738","product_id":"2a2a26ca-cb81-4a04-aa6a-4f7140df2bd4","title":"\u84dd\u8272-M","weight_unit":"kg","inventory_quantity":44,"sku":"HMS-A020-\u84dd\u8272-M-A0012147","barcode":"","position":1,"option1":"\u84dd\u8272","option2":"M","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\/golf-mens-short-sleeved-couple-style-classic-style-hmsa020?variant=2cfbbe37-387e-46a5-9cc3-b77c48bef738","available_quantity":44,"options":[{"name":"\u989c\u8272","value":"\u84dd\u8272"},{"name":"\u5c3a\u7801","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":27};
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 `
`;
}()}