【 TOPPP】M125063- Spring/Summer New Men's Ice Silk Sunscreen Long Sleeve Top
${function() {
const variantData = data.variant || {"id":"86d7ec86-1807-4a13-a156-dd72f7a9c944","product_id":"c89d1f1b-5549-445e-a31a-eafdcbb8c41d","title":"black-M","weight_unit":"kg","inventory_quantity":20,"sku":"M125063180-black-M-A0014763","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/46c015a92c858971a4bd715c33226754.jpg","path":"46c015a92c858971a4bd715c33226754.jpg","width":1080,"height":826,"alt":"","aspect_ratio":1.3075060532687652},"wholesale_price":[{"price":42,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"42","retail_price":"0","available":true,"url":"\/products\/toppp-m125063-spring-summer-new-mens-ice-silk-sunscreen-long-sleeve-top?variant=86d7ec86-1807-4a13-a156-dd72f7a9c944","available_quantity":20,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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":"86d7ec86-1807-4a13-a156-dd72f7a9c944","product_id":"c89d1f1b-5549-445e-a31a-eafdcbb8c41d","title":"black-M","weight_unit":"kg","inventory_quantity":20,"sku":"M125063180-black-M-A0014763","barcode":"","position":1,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/46c015a92c858971a4bd715c33226754.jpg","path":"46c015a92c858971a4bd715c33226754.jpg","width":1080,"height":826,"alt":"","aspect_ratio":1.3075060532687652},"wholesale_price":[{"price":42,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"42","retail_price":"0","available":true,"url":"\/products\/toppp-m125063-spring-summer-new-mens-ice-silk-sunscreen-long-sleeve-top?variant=86d7ec86-1807-4a13-a156-dd72f7a9c944","available_quantity":20,"options":[{"name":"colour","value":"black"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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 `
`;
}()}