${function(){
const variantData = data.variant || {"id":"54b7cb23-546c-4304-beb6-7f2952595f36","product_id":"a33b3846-5568-470d-92f0-bba4cf3e32b3","title":"","weight_unit":"g","inventory_quantity":999,"sku":"458303.09","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":4.99,"min_quantity":1}],"weight":"0","compare_at_price":"7.5","price":"4.99","retail_price":"7.5","available":true,"url":"\/products\/hand-crank-wooden-engraved-music-box-birthday-christmas-gifts458303-09?variant=54b7cb23-546c-4304-beb6-7f2952595f36","available_quantity":999,"options":[],"off_ratio":33,"flashsale_info":[],"sales":1};
return `
Sku : ${variantData && variantData.sku}
`
}()}
${function() {
const variantData = data.variant || {"id":"54b7cb23-546c-4304-beb6-7f2952595f36","product_id":"a33b3846-5568-470d-92f0-bba4cf3e32b3","title":"","weight_unit":"g","inventory_quantity":999,"sku":"458303.09","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":4.99,"min_quantity":1}],"weight":"0","compare_at_price":"7.5","price":"4.99","retail_price":"7.5","available":true,"url":"\/products\/hand-crank-wooden-engraved-music-box-birthday-christmas-gifts458303-09?variant=54b7cb23-546c-4304-beb6-7f2952595f36","available_quantity":999,"options":[],"off_ratio":33,"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