${function(){
const variantData = data.variant || {"id":"cbdaf1f0-6418-49c5-aabd-97620fe13411","product_id":"b6990bb5-e5ec-427b-8aae-b2cb9b8e0648","title":"","weight_unit":"g","inventory_quantity":999,"sku":"798133.07","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":3.89,"min_quantity":1}],"weight":"120","compare_at_price":"4.89","price":"3.89","retail_price":"4.89","available":true,"url":"\/products\/harry-potter-badge-30-40cmcanvas-full-round-drill-diamond-painting798133-07?variant=cbdaf1f0-6418-49c5-aabd-97620fe13411","available_quantity":999999999,"options":[],"off_ratio":20,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
`
}()}
${function() {
const variantData = data.variant || {"id":"cbdaf1f0-6418-49c5-aabd-97620fe13411","product_id":"b6990bb5-e5ec-427b-8aae-b2cb9b8e0648","title":"","weight_unit":"g","inventory_quantity":999,"sku":"798133.07","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":3.89,"min_quantity":1}],"weight":"120","compare_at_price":"4.89","price":"3.89","retail_price":"4.89","available":true,"url":"\/products\/harry-potter-badge-30-40cmcanvas-full-round-drill-diamond-painting798133-07?variant=cbdaf1f0-6418-49c5-aabd-97620fe13411","available_quantity":999999999,"options":[],"off_ratio":20,"flashsale_info":[],"sales":0};
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