${function(){
const variantData = data.variant || {"id":"653fbb96-e581-4d13-9b3a-2ee1bba237d9","product_id":"d4ab7c9e-4475-4539-ae78-a10509eec5f8","title":"","weight_unit":"g","inventory_quantity":995,"sku":"738856.01","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":4.89,"min_quantity":1}],"weight":"160","compare_at_price":"6.89","price":"4.89","retail_price":"6.89","available":true,"url":"\/products\/harry-potter-snake-40-40cmcanvas-full-round-drill-diamond-painting738856-01?variant=653fbb96-e581-4d13-9b3a-2ee1bba237d9","available_quantity":999999999,"options":[],"off_ratio":29,"flashsale_info":[],"sales":1};
return `
Sku : ${variantData && variantData.sku}
`
}()}
${function() {
const variantData = data.variant || {"id":"653fbb96-e581-4d13-9b3a-2ee1bba237d9","product_id":"d4ab7c9e-4475-4539-ae78-a10509eec5f8","title":"","weight_unit":"g","inventory_quantity":995,"sku":"738856.01","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":4.89,"min_quantity":1}],"weight":"160","compare_at_price":"6.89","price":"4.89","retail_price":"6.89","available":true,"url":"\/products\/harry-potter-snake-40-40cmcanvas-full-round-drill-diamond-painting738856-01?variant=653fbb96-e581-4d13-9b3a-2ee1bba237d9","available_quantity":999999999,"options":[],"off_ratio":29,"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