【 TOPPP 】W426015- New Spring/Summer Women's Knitted Vest
${function() {
const variantData = data.variant || {"id":"90bd29b5-abeb-4d5d-a832-b41957f4ee8a","product_id":"867ffd8b-f895-4022-9367-3d1a46086d84","title":"white + blue-S","weight_unit":"kg","inventory_quantity":14,"sku":" W426015170-white + blue-S-A00110764","barcode":"","position":1,"option1":"white + blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b2dbaee1cded6bde797882f5c63d6d0c.jpg","path":"b2dbaee1cded6bde797882f5c63d6d0c.jpg","width":1080,"height":1080,"alt":"","aspect_ratio":1},"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-w426015-new-spring-summer-womens-knitted-vest?variant=90bd29b5-abeb-4d5d-a832-b41957f4ee8a","available_quantity":14,"options":[{"name":"colour","value":"white + blue"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":8};
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":"90bd29b5-abeb-4d5d-a832-b41957f4ee8a","product_id":"867ffd8b-f895-4022-9367-3d1a46086d84","title":"white + blue-S","weight_unit":"kg","inventory_quantity":14,"sku":" W426015170-white + blue-S-A00110764","barcode":"","position":1,"option1":"white + blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b2dbaee1cded6bde797882f5c63d6d0c.jpg","path":"b2dbaee1cded6bde797882f5c63d6d0c.jpg","width":1080,"height":1080,"alt":"","aspect_ratio":1},"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-w426015-new-spring-summer-womens-knitted-vest?variant=90bd29b5-abeb-4d5d-a832-b41957f4ee8a","available_quantity":14,"options":[{"name":"colour","value":"white + blue"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":8};
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 `
`;
}()}