people are viewing this right now
${function() {
const variantData = data.variant || {"id":"a646913c-4bc2-476a-b69a-83b89f639c1b","product_id":"0a30d6d2-5f61-4055-992a-6da1038595f1","title":"","weight_unit":"kg","inventory_quantity":1000,"sku":"sku1677824891661","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":32.89,"min_quantity":1}],"weight":"0","compare_at_price":"41.9","price":"32.89","retail_price":"41.9","available":true,"url":"\/products\/silver-nova-necklace-128167?variant=a646913c-4bc2-476a-b69a-83b89f639c1b","available_quantity":999999999,"options":[],"off_ratio":22,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
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.
${function(){
const variantData = data.variant || {"id":"a646913c-4bc2-476a-b69a-83b89f639c1b","product_id":"0a30d6d2-5f61-4055-992a-6da1038595f1","title":"","weight_unit":"kg","inventory_quantity":1000,"sku":"sku1677824891661","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":32.89,"min_quantity":1}],"weight":"0","compare_at_price":"41.9","price":"32.89","retail_price":"41.9","available":true,"url":"\/products\/silver-nova-necklace-128167?variant=a646913c-4bc2-476a-b69a-83b89f639c1b","available_quantity":999999999,"options":[],"off_ratio":22,"flashsale_info":[],"sales":0};
return `
`
}()}