【 TOPPP 】 8471- Popular Men's Thin Hollow Knitted T-shirt
${function() {
const variantData = data.variant || {"id":"292c647e-c4a1-4a50-acd6-439e0d5275ff","product_id":"21d07d47-1211-40c1-bd1f-d05b48fa094f","title":"black-XL","weight_unit":"kg","inventory_quantity":2,"sku":"8471-00200-black-XL-A00111675","barcode":"","position":3,"option1":"black","option2":"XL","option3":"","note":"","image":null,"wholesale_price":[{"price":46.8,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"46.8","retail_price":"0","available":true,"url":"\/products\/toppp-8471-popular-mens-thin-hollow-knitted-t-shirt?variant=292c647e-c4a1-4a50-acd6-439e0d5275ff","available_quantity":2,"options":[{"name":"colour","value":"black"},{"name":"size","value":"XL"}],"off_ratio":0,"flashsale_info":[],"sales":11};
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":"292c647e-c4a1-4a50-acd6-439e0d5275ff","product_id":"21d07d47-1211-40c1-bd1f-d05b48fa094f","title":"black-XL","weight_unit":"kg","inventory_quantity":2,"sku":"8471-00200-black-XL-A00111675","barcode":"","position":3,"option1":"black","option2":"XL","option3":"","note":"","image":null,"wholesale_price":[{"price":46.8,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"46.8","retail_price":"0","available":true,"url":"\/products\/toppp-8471-popular-mens-thin-hollow-knitted-t-shirt?variant=292c647e-c4a1-4a50-acd6-439e0d5275ff","available_quantity":2,"options":[{"name":"colour","value":"black"},{"name":"size","value":"XL"}],"off_ratio":0,"flashsale_info":[],"sales":11};
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 `
`;
}()}