A423298 New Women's Over Knee Socks
${function() {
const variantData = data.variant || {"id":"cfa518d2-082a-47de-96a1-682243701d7a","product_id":"619d2c5b-7779-4b20-9ab3-bb7d7b5e3320","title":"black","weight_unit":"kg","inventory_quantity":48,"sku":"A42329845-black-A0012838","barcode":"","position":1,"option1":"black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8a68e6d5a8806013893f1ed580623f46.jpg","path":"8a68e6d5a8806013893f1ed580623f46.jpg","width":2240,"height":3360,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":15,"min_quantity":1}],"weight":"0.15","compare_at_price":"0","price":"15","retail_price":"0","available":true,"url":"\/products\/a423298-new-womens-over-knee-socks?variant=cfa518d2-082a-47de-96a1-682243701d7a","available_quantity":48,"options":[{"name":"colour","value":"black"}],"off_ratio":0,"flashsale_info":[],"sales":6};
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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"cfa518d2-082a-47de-96a1-682243701d7a","product_id":"619d2c5b-7779-4b20-9ab3-bb7d7b5e3320","title":"black","weight_unit":"kg","inventory_quantity":48,"sku":"A42329845-black-A0012838","barcode":"","position":1,"option1":"black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8a68e6d5a8806013893f1ed580623f46.jpg","path":"8a68e6d5a8806013893f1ed580623f46.jpg","width":2240,"height":3360,"alt":"","aspect_ratio":0.6666666666666666},"wholesale_price":[{"price":15,"min_quantity":1}],"weight":"0.15","compare_at_price":"0","price":"15","retail_price":"0","available":true,"url":"\/products\/a423298-new-womens-over-knee-socks?variant=cfa518d2-082a-47de-96a1-682243701d7a","available_quantity":48,"options":[{"name":"colour","value":"black"}],"off_ratio":0,"flashsale_info":[],"sales":6};
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 `
`;
}()}