${function(){
const variantData = data.variant || {"id":"aae3c0e7-fd04-40ab-9385-d7e387f86fbf","product_id":"a5f7ac17-346e-460b-bcb2-d0cc15a04ccb","title":"","weight_unit":"g","inventory_quantity":6,"sku":"742221","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":3.99,"min_quantity":1}],"weight":"166","compare_at_price":"6.99","price":"3.99","retail_price":"6.99","available":true,"url":"\/products\/cute-snowman-50-30cmcanvas-full-round-drill-diamond-painting742221?variant=aae3c0e7-fd04-40ab-9385-d7e387f86fbf","available_quantity":6,"options":[],"off_ratio":43,"flashsale_info":[],"sales":1};
return `
Sku : ${variantData && variantData.sku}
`
}()}
${function() {
const variantData = data.variant || {"id":"aae3c0e7-fd04-40ab-9385-d7e387f86fbf","product_id":"a5f7ac17-346e-460b-bcb2-d0cc15a04ccb","title":"","weight_unit":"g","inventory_quantity":6,"sku":"742221","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":3.99,"min_quantity":1}],"weight":"166","compare_at_price":"6.99","price":"3.99","retail_price":"6.99","available":true,"url":"\/products\/cute-snowman-50-30cmcanvas-full-round-drill-diamond-painting742221?variant=aae3c0e7-fd04-40ab-9385-d7e387f86fbf","available_quantity":6,"options":[],"off_ratio":43,"flashsale_info":[],"sales":1};
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 `
`;
}()}
Product was out of stock.
Product is unavailable.
people are viewing this right now