【 TOPPP】M224174- New men's spliced short sleeved shirt casual shirt
${function() {
const variantData = data.variant || {"id":"5edc7424-bb68-4a57-8f1b-84b97d7b9493","product_id":"1b8b1b4a-8e7c-4a23-99c5-33f22e3dfc07","title":"black-M","weight_unit":"kg","inventory_quantity":18,"sku":"M224174180-black-M-A0016955","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/890c84759edea8d632bb987166403417.jpg","path":"890c84759edea8d632bb987166403417.jpg","width":1440,"height":1440,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":42,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"42","retail_price":"0","available":true,"url":"\/products\/toppp-m224174-new-mens-spliced-short-sleeved-shirt-casual-shirt?variant=5edc7424-bb68-4a57-8f1b-84b97d7b9493","available_quantity":18,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":12};
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":"5edc7424-bb68-4a57-8f1b-84b97d7b9493","product_id":"1b8b1b4a-8e7c-4a23-99c5-33f22e3dfc07","title":"black-M","weight_unit":"kg","inventory_quantity":18,"sku":"M224174180-black-M-A0016955","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/890c84759edea8d632bb987166403417.jpg","path":"890c84759edea8d632bb987166403417.jpg","width":1440,"height":1440,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":42,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"42","retail_price":"0","available":true,"url":"\/products\/toppp-m224174-new-mens-spliced-short-sleeved-shirt-casual-shirt?variant=5edc7424-bb68-4a57-8f1b-84b97d7b9493","available_quantity":18,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":12};
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 `
`;
}()}