【 TOPPP】W324229- New women's knitted jacket
${function() {
const variantData = data.variant || {"id":"af439542-a16b-4dea-9a19-9ab7f01b62d2","product_id":"cb215465-2728-4471-bd35-477f06b9d7bb","title":"black-S","weight_unit":"kg","inventory_quantity":19,"sku":"W324229280-black-S-A0011438","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4c2e210c6a85e97ee9cb270538ca2d2e.jpg","path":"4c2e210c6a85e97ee9cb270538ca2d2e.jpg","width":1080,"height":810,"alt":"","aspect_ratio":1.3333333333333333},"wholesale_price":[{"price":62,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"62","retail_price":"0","available":true,"url":"\/products\/toppp-w324229-new-womens-knitted-jacket?variant=af439542-a16b-4dea-9a19-9ab7f01b62d2","available_quantity":19,"options":[{"name":"colour","value":"black"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":3};
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":"af439542-a16b-4dea-9a19-9ab7f01b62d2","product_id":"cb215465-2728-4471-bd35-477f06b9d7bb","title":"black-S","weight_unit":"kg","inventory_quantity":19,"sku":"W324229280-black-S-A0011438","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4c2e210c6a85e97ee9cb270538ca2d2e.jpg","path":"4c2e210c6a85e97ee9cb270538ca2d2e.jpg","width":1080,"height":810,"alt":"","aspect_ratio":1.3333333333333333},"wholesale_price":[{"price":62,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"62","retail_price":"0","available":true,"url":"\/products\/toppp-w324229-new-womens-knitted-jacket?variant=af439542-a16b-4dea-9a19-9ab7f01b62d2","available_quantity":19,"options":[{"name":"colour","value":"black"},{"name":"size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":3};
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 `
`;
}()}