${function(){
const variantData = data.variant || {"id":"82d857ed-252b-4233-af49-9ef686c0efd3","product_id":"c636d17c-0a48-4422-bd88-bb5b6fff8db6","title":"","weight_unit":"g","inventory_quantity":997,"sku":"803205","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":12.89,"min_quantity":1}],"weight":"320","compare_at_price":"0","price":"12.89","retail_price":"0","available":true,"url":"\/products\/mickey-spends-halloween-with-you-50-60cmcanvas-full-round-drill-diamond-painting803205?variant=82d857ed-252b-4233-af49-9ef686c0efd3","available_quantity":999999999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":2};
return `
Sku : ${variantData && variantData.sku}
`
}()}
${function() {
const variantData = data.variant || {"id":"82d857ed-252b-4233-af49-9ef686c0efd3","product_id":"c636d17c-0a48-4422-bd88-bb5b6fff8db6","title":"","weight_unit":"g","inventory_quantity":997,"sku":"803205","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":12.89,"min_quantity":1}],"weight":"320","compare_at_price":"0","price":"12.89","retail_price":"0","available":true,"url":"\/products\/mickey-spends-halloween-with-you-50-60cmcanvas-full-round-drill-diamond-painting803205?variant=82d857ed-252b-4233-af49-9ef686c0efd3","available_quantity":999999999,"options":[],"off_ratio":0,"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