M222218 New Spring/Summer Men's Short sleeved Top
${function() {
const variantData = data.variant || {"id":"b9c2d862-edeb-48b6-8ffa-3901943a85d2","product_id":"e8671115-d467-4bbc-a260-018b2faa044d","title":"black-M","weight_unit":"kg","inventory_quantity":30,"sku":"M222218180-black-M-A0013369","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":null,"wholesale_price":[{"price":42,"min_quantity":1}],"weight":"0.3","compare_at_price":"0","price":"42","retail_price":"0","available":true,"url":"\/products\/m222218-new-spring-summer-mens-short-sleeved-top?variant=b9c2d862-edeb-48b6-8ffa-3901943a85d2","available_quantity":30,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":6};
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":"b9c2d862-edeb-48b6-8ffa-3901943a85d2","product_id":"e8671115-d467-4bbc-a260-018b2faa044d","title":"black-M","weight_unit":"kg","inventory_quantity":30,"sku":"M222218180-black-M-A0013369","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":null,"wholesale_price":[{"price":42,"min_quantity":1}],"weight":"0.3","compare_at_price":"0","price":"42","retail_price":"0","available":true,"url":"\/products\/m222218-new-spring-summer-mens-short-sleeved-top?variant=b9c2d862-edeb-48b6-8ffa-3901943a85d2","available_quantity":30,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":6};
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 `
`;
}()}