${function(){
const variantData = data.variant || {"id":"c31c9e19-c5d2-4785-b098-9987cc47d6ea","product_id":"242f6d72-5f7f-4dbe-af96-8dce135142a4","title":"9PC","weight_unit":"kg","inventory_quantity":0,"sku":"FKE-9PC1192326","barcode":"","position":1,"option1":"9PC","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/faf091ecd57ea9454caf5df6f68b8cf5.jpg","path":"faf091ecd57ea9454caf5df6f68b8cf5.jpg","width":1200,"height":1200,"alt":"Gnome Knitting A Sweater 11CT (45*45CM) Stamped Cross Stitch gbfke","aspect_ratio":1},"wholesale_price":[{"price":64.72,"min_quantity":1}],"weight":"0","compare_at_price":"80.91","price":"64.72","retail_price":"80.91","available":true,"url":"\/products\/gnome-knitting-a-sweater-11ct-45-45cm-stamped-cross-stitch?variant=c31c9e19-c5d2-4785-b098-9987cc47d6ea","available_quantity":999999999,"options":[{"name":"Style","value":"9PC"}],"off_ratio":20,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
`
}()}
${function() {
const variantData = data.variant || {"id":"c31c9e19-c5d2-4785-b098-9987cc47d6ea","product_id":"242f6d72-5f7f-4dbe-af96-8dce135142a4","title":"9PC","weight_unit":"kg","inventory_quantity":0,"sku":"FKE-9PC1192326","barcode":"","position":1,"option1":"9PC","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/faf091ecd57ea9454caf5df6f68b8cf5.jpg","path":"faf091ecd57ea9454caf5df6f68b8cf5.jpg","width":1200,"height":1200,"alt":"Gnome Knitting A Sweater 11CT (45*45CM) Stamped Cross Stitch gbfke","aspect_ratio":1},"wholesale_price":[{"price":64.72,"min_quantity":1}],"weight":"0","compare_at_price":"80.91","price":"64.72","retail_price":"80.91","available":true,"url":"\/products\/gnome-knitting-a-sweater-11ct-45-45cm-stamped-cross-stitch?variant=c31c9e19-c5d2-4785-b098-9987cc47d6ea","available_quantity":999999999,"options":[{"name":"Style","value":"9PC"}],"off_ratio":20,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function() {
const minInventory = parseInt('1');
const maxInventory = parseInt('15');
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 `
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
people are viewing this right now