W722163 JL New Women's Shorts
${function() {
const variantData = data.variant || {"id":"460ebaf6-29e3-4630-adb9-54a1c4d47c2b","product_id":"d6597542-c538-4861-8982-e140fa04487e","title":"white-L","weight_unit":"kg","inventory_quantity":5,"sku":"W722163170-white-L-A0014825","barcode":"","position":7,"option1":"white","option2":"L","option3":"","note":"","image":null,"wholesale_price":[{"price":40,"min_quantity":1}],"weight":"0.3","compare_at_price":"0","price":"40","retail_price":"0","available":true,"url":"\/products\/w722163-jl-new-womens-shorts?variant=460ebaf6-29e3-4630-adb9-54a1c4d47c2b","available_quantity":5,"options":[{"name":"colour","value":"white"},{"name":"size","value":"L"}],"off_ratio":0,"flashsale_info":[],"sales":9};
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":"460ebaf6-29e3-4630-adb9-54a1c4d47c2b","product_id":"d6597542-c538-4861-8982-e140fa04487e","title":"white-L","weight_unit":"kg","inventory_quantity":5,"sku":"W722163170-white-L-A0014825","barcode":"","position":7,"option1":"white","option2":"L","option3":"","note":"","image":null,"wholesale_price":[{"price":40,"min_quantity":1}],"weight":"0.3","compare_at_price":"0","price":"40","retail_price":"0","available":true,"url":"\/products\/w722163-jl-new-womens-shorts?variant=460ebaf6-29e3-4630-adb9-54a1c4d47c2b","available_quantity":5,"options":[{"name":"colour","value":"white"},{"name":"size","value":"L"}],"off_ratio":0,"flashsale_info":[],"sales":9};
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 `
`;
}()}