Gold 7.5' Pre-Decorated Christmas Tree
${function() {
const variantData = data.variant || {"id":"0f5d5072-141b-48a0-b37f-52c95f6950c8","product_id":"2f8cf48e-444a-4583-b23b-91a0baf8ff4f","title":"","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":46.98,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"46.98","retail_price":"0","available":true,"url":"\/products\/gold-7-5-pre-decorated-christmas-tree?variant=0f5d5072-141b-48a0-b37f-52c95f6950c8","available_quantity":999999999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"0f5d5072-141b-48a0-b37f-52c95f6950c8","product_id":"2f8cf48e-444a-4583-b23b-91a0baf8ff4f","title":"","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":46.98,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"46.98","retail_price":"0","available":true,"url":"\/products\/gold-7-5-pre-decorated-christmas-tree?variant=0f5d5072-141b-48a0-b37f-52c95f6950c8","available_quantity":999999999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('52');
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 `
`;
}()}