【 TOPPP】M424216- New men's windproof knitted spliced zipper vest
${function() {
const variantData = data.variant || {"id":"b58bff1a-2a39-4a6b-bdc2-6580ac14d462","product_id":"811a4c7a-13be-48a7-96b7-1a516ce62212","title":"black-M","weight_unit":"kg","inventory_quantity":29,"sku":"M424216260-black-M-A0011504","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/37e30083f2abe12a60946dbf541c2b05.jpg","path":"37e30083f2abe12a60946dbf541c2b05.jpg","width":1280,"height":1707,"alt":"","aspect_ratio":0.7498535442296427},"wholesale_price":[{"price":59,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"59","retail_price":"0","available":true,"url":"\/products\/toppp-m424216-new-mens-windproof-knitted-spliced-zipper-vest?variant=b58bff1a-2a39-4a6b-bdc2-6580ac14d462","available_quantity":29,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":2};
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":"b58bff1a-2a39-4a6b-bdc2-6580ac14d462","product_id":"811a4c7a-13be-48a7-96b7-1a516ce62212","title":"black-M","weight_unit":"kg","inventory_quantity":29,"sku":"M424216260-black-M-A0011504","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/37e30083f2abe12a60946dbf541c2b05.jpg","path":"37e30083f2abe12a60946dbf541c2b05.jpg","width":1280,"height":1707,"alt":"","aspect_ratio":0.7498535442296427},"wholesale_price":[{"price":59,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"59","retail_price":"0","available":true,"url":"\/products\/toppp-m424216-new-mens-windproof-knitted-spliced-zipper-vest?variant=b58bff1a-2a39-4a6b-bdc2-6580ac14d462","available_quantity":29,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":2};
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 `
`;
}()}