【 TOPPP】M324248- Early spring new men's wool knitted jacket
${function() {
const variantData = data.variant || {"id":"6c13d3d6-b6f7-42b3-800c-7ce02e510126","product_id":"e415f943-fd5f-400c-a24c-61ca8a701ba6","title":"gray-M","weight_unit":"kg","inventory_quantity":30,"sku":"M324248280-gray-M-A0011508","barcode":"","position":1,"option1":"gray","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bf7abec7b750e5640bc7df9e0b0951c3.jpg","path":"bf7abec7b750e5640bc7df9e0b0951c3.jpg","width":1080,"height":810,"alt":"","aspect_ratio":1.3333333333333333},"wholesale_price":[{"price":60,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"60","retail_price":"0","available":true,"url":"\/products\/toppp-m324248-early-spring-new-mens-wool-knitted-jacket?variant=6c13d3d6-b6f7-42b3-800c-7ce02e510126","available_quantity":30,"options":[{"name":"colour","value":"gray"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":6};
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":"6c13d3d6-b6f7-42b3-800c-7ce02e510126","product_id":"e415f943-fd5f-400c-a24c-61ca8a701ba6","title":"gray-M","weight_unit":"kg","inventory_quantity":30,"sku":"M324248280-gray-M-A0011508","barcode":"","position":1,"option1":"gray","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bf7abec7b750e5640bc7df9e0b0951c3.jpg","path":"bf7abec7b750e5640bc7df9e0b0951c3.jpg","width":1080,"height":810,"alt":"","aspect_ratio":1.3333333333333333},"wholesale_price":[{"price":60,"min_quantity":1}],"weight":"0.6","compare_at_price":"0","price":"60","retail_price":"0","available":true,"url":"\/products\/toppp-m324248-early-spring-new-mens-wool-knitted-jacket?variant=6c13d3d6-b6f7-42b3-800c-7ce02e510126","available_quantity":30,"options":[{"name":"colour","value":"gray"},{"name":"size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":6};
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 `
`;
}()}