${function(){
const variantData = data.variant || {"id":"2a005d2e-101f-43e8-90f9-689aea2c99ef","product_id":"5b68c259-93a3-4d06-82ef-fbb0d867493d","title":"Round","weight_unit":"kg","inventory_quantity":0,"sku":"PSW-667114.01","barcode":"","position":1,"option1":"Round","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":11.89,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"11.89","retail_price":"0","available":true,"url":"\/products\/harry-potter-magical-spell-30-40cmcanvas-full-round-drill-diamond-paintingpsw-667114?variant=2a005d2e-101f-43e8-90f9-689aea2c99ef","available_quantity":999999999,"options":[{"name":"Drill","value":"Round"}],"off_ratio":0,"flashsale_info":[],"sales":4};
return `
Sku : ${variantData && variantData.sku}
`
}()}
${function() {
const variantData = data.variant || {"id":"2a005d2e-101f-43e8-90f9-689aea2c99ef","product_id":"5b68c259-93a3-4d06-82ef-fbb0d867493d","title":"Round","weight_unit":"kg","inventory_quantity":0,"sku":"PSW-667114.01","barcode":"","position":1,"option1":"Round","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":11.89,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"11.89","retail_price":"0","available":true,"url":"\/products\/harry-potter-magical-spell-30-40cmcanvas-full-round-drill-diamond-paintingpsw-667114?variant=2a005d2e-101f-43e8-90f9-689aea2c99ef","available_quantity":999999999,"options":[{"name":"Drill","value":"Round"}],"off_ratio":0,"flashsale_info":[],"sales":4};
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