【 TOPPP】W425056- Spring and summer new thin women's knitted V-neck vest top
${function() {
const variantData = data.variant || {"id":"ed6c1fb2-2415-4694-bab6-d1d20122c758","product_id":"0999ae99-5895-49a8-b71e-79b626f63dc2","title":"black-S","weight_unit":"kg","inventory_quantity":20,"sku":"W425056180-black-S-A0014401","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/78f44d6dcd83dc124ba764bd70dfc143.jpg","path":"78f44d6dcd83dc124ba764bd70dfc143.jpg","width":1500,"height":2000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":41.8,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"41.8","retail_price":"0","available":true,"url":"\/products\/toppp-w425056-spring-and-summer-new-thin-womens-knitted-v-neck-vest-top?variant=ed6c1fb2-2415-4694-bab6-d1d20122c758","available_quantity":20,"options":[{"name":"colour","value":"black"},{"name":"size","value":"S"}],"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":"ed6c1fb2-2415-4694-bab6-d1d20122c758","product_id":"0999ae99-5895-49a8-b71e-79b626f63dc2","title":"black-S","weight_unit":"kg","inventory_quantity":20,"sku":"W425056180-black-S-A0014401","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/78f44d6dcd83dc124ba764bd70dfc143.jpg","path":"78f44d6dcd83dc124ba764bd70dfc143.jpg","width":1500,"height":2000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":41.8,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"41.8","retail_price":"0","available":true,"url":"\/products\/toppp-w425056-spring-and-summer-new-thin-womens-knitted-v-neck-vest-top?variant=ed6c1fb2-2415-4694-bab6-d1d20122c758","available_quantity":20,"options":[{"name":"colour","value":"black"},{"name":"size","value":"S"}],"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 `
`;
}()}