【 TOPPP 】W425055- Spring and summer new thin women's knitted vest
${function() {
const variantData = data.variant || {"id":"544ecd57-d0fe-4912-943f-7bf8ca4bbbf5","product_id":"923be334-6e70-4249-b74e-4fdb36ab97a5","title":"light blue-0","weight_unit":"kg","inventory_quantity":18,"sku":"W425055180-light blue-0-A0013897","barcode":"","position":1,"option1":"light blue","option2":"0","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3c723ea63fac81c69c40178ebfcd4c05.jpg","path":"3c723ea63fac81c69c40178ebfcd4c05.jpg","width":1500,"height":1821,"alt":"","aspect_ratio":0.8237232289950577},"wholesale_price":[{"price":43.8,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"43.8","retail_price":"0","available":true,"url":"\/products\/toppp-w425055-spring-and-summer-new-thin-womens-knitted-vest?variant=544ecd57-d0fe-4912-943f-7bf8ca4bbbf5","available_quantity":18,"options":[{"name":"colour","value":"light blue"},{"name":"size","value":"0"}],"off_ratio":0,"flashsale_info":[],"sales":11};
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":"544ecd57-d0fe-4912-943f-7bf8ca4bbbf5","product_id":"923be334-6e70-4249-b74e-4fdb36ab97a5","title":"light blue-0","weight_unit":"kg","inventory_quantity":18,"sku":"W425055180-light blue-0-A0013897","barcode":"","position":1,"option1":"light blue","option2":"0","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3c723ea63fac81c69c40178ebfcd4c05.jpg","path":"3c723ea63fac81c69c40178ebfcd4c05.jpg","width":1500,"height":1821,"alt":"","aspect_ratio":0.8237232289950577},"wholesale_price":[{"price":43.8,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"43.8","retail_price":"0","available":true,"url":"\/products\/toppp-w425055-spring-and-summer-new-thin-womens-knitted-vest?variant=544ecd57-d0fe-4912-943f-7bf8ca4bbbf5","available_quantity":18,"options":[{"name":"colour","value":"light blue"},{"name":"size","value":"0"}],"off_ratio":0,"flashsale_info":[],"sales":11};
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 `
`;
}()}