${function(){
const variantData = data.variant || {"id":"204e4f6e-48be-4871-a16a-d90a8fe7bd75","product_id":"a5186787-137e-4555-8d92-8109ef254d87","title":"","weight_unit":"g","inventory_quantity":993,"sku":"738856.04","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-mouse-40-40cmcanvas-full-round-drill-diamond-painting738856-04?variant=204e4f6e-48be-4871-a16a-d90a8fe7bd75","available_quantity":999999999,"options":[],"off_ratio":29,"flashsale_info":[],"sales":2};
return `
Sku : ${variantData && variantData.sku}
`
}()}
${function() {
const variantData = data.variant || {"id":"204e4f6e-48be-4871-a16a-d90a8fe7bd75","product_id":"a5186787-137e-4555-8d92-8109ef254d87","title":"","weight_unit":"g","inventory_quantity":993,"sku":"738856.04","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-mouse-40-40cmcanvas-full-round-drill-diamond-painting738856-04?variant=204e4f6e-48be-4871-a16a-d90a8fe7bd75","available_quantity":999999999,"options":[],"off_ratio":29,"flashsale_info":[],"sales":2};
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