【 TOPPP 】TL003- Hot selling men's thin men's outerwear
${function() {
const variantData = data.variant || {"id":"d1af8861-c427-4a46-8ff9-25be4c0a0bd3","product_id":"65a17d1a-7d07-46ff-bbc8-e122efee7221","title":"black-M","weight_unit":"kg","inventory_quantity":0,"sku":"TL003-00240-black-M-A0017727","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2d1a726f4a2de4ce322bbfafb4925ba2.jpg","path":"2d1a726f4a2de4ce322bbfafb4925ba2.jpg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":54,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"54","retail_price":"0","available":false,"url":"\/products\/toppp-tl003-hot-selling-mens-thin-mens-outerwear?variant=d1af8861-c427-4a46-8ff9-25be4c0a0bd3","available_quantity":0,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":15};
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":"d1af8861-c427-4a46-8ff9-25be4c0a0bd3","product_id":"65a17d1a-7d07-46ff-bbc8-e122efee7221","title":"black-M","weight_unit":"kg","inventory_quantity":0,"sku":"TL003-00240-black-M-A0017727","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2d1a726f4a2de4ce322bbfafb4925ba2.jpg","path":"2d1a726f4a2de4ce322bbfafb4925ba2.jpg","width":1200,"height":1200,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":54,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"54","retail_price":"0","available":false,"url":"\/products\/toppp-tl003-hot-selling-mens-thin-mens-outerwear?variant=d1af8861-c427-4a46-8ff9-25be4c0a0bd3","available_quantity":0,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":15};
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 `
`;
}()}