W422156 New Women's Sleeveless Knitted Top
${function() {
const variantData = data.variant || {"id":"89d089b9-c853-48f5-abcc-a517ada626ad","product_id":"0a19c943-017d-46c3-89ec-ea609d218b10","title":"\u9ed1\u8272-S","weight_unit":"kg","inventory_quantity":25,"sku":"W422156180-\u9ed1\u8272-S","barcode":"","position":1,"option1":"\u9ed1\u8272","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/dbbe8c18185af70f38ce614236e0d541.jpg","path":"dbbe8c18185af70f38ce614236e0d541.jpg","width":1080,"height":1350,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":41,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"41","retail_price":"0","available":true,"url":"\/products\/w422156-new-womens-sleeveless-knitted-top-29y3?variant=89d089b9-c853-48f5-abcc-a517ada626ad","available_quantity":25,"options":[{"name":"\u989c\u8272","value":"\u9ed1\u8272"},{"name":"\u5c3a\u5bf8","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":14};
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":"89d089b9-c853-48f5-abcc-a517ada626ad","product_id":"0a19c943-017d-46c3-89ec-ea609d218b10","title":"\u9ed1\u8272-S","weight_unit":"kg","inventory_quantity":25,"sku":"W422156180-\u9ed1\u8272-S","barcode":"","position":1,"option1":"\u9ed1\u8272","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/dbbe8c18185af70f38ce614236e0d541.jpg","path":"dbbe8c18185af70f38ce614236e0d541.jpg","width":1080,"height":1350,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":41,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"41","retail_price":"0","available":true,"url":"\/products\/w422156-new-womens-sleeveless-knitted-top-29y3?variant=89d089b9-c853-48f5-abcc-a517ada626ad","available_quantity":25,"options":[{"name":"\u989c\u8272","value":"\u9ed1\u8272"},{"name":"\u5c3a\u5bf8","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":14};
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 `
`;
}()}