Carmel Hall Tree with Bench and Shoe Storage
${function() {
const variantData = data.variant || {"id":"7630cdff-d8e3-4767-bfa4-e75c5ce9fbd8","product_id":"38f952f0-6c4c-4d0d-bfc4-2872bd67c395","title":"","weight_unit":"kg","inventory_quantity":1000,"sku":"5886194-5886194-0-0-0-0-0-0","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":45.98,"min_quantity":1}],"weight":"0","compare_at_price":"99.98","price":"45.98","retail_price":"99.98","available":true,"url":"\/products\/_products_carmel_hall_tree_with_bench_and_shoe_storage?variant=7630cdff-d8e3-4767-bfa4-e75c5ce9fbd8","available_quantity":999999999,"options":[],"off_ratio":54,"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":"7630cdff-d8e3-4767-bfa4-e75c5ce9fbd8","product_id":"38f952f0-6c4c-4d0d-bfc4-2872bd67c395","title":"","weight_unit":"kg","inventory_quantity":1000,"sku":"5886194-5886194-0-0-0-0-0-0","barcode":"","position":1,"option1":"","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":45.98,"min_quantity":1}],"weight":"0","compare_at_price":"99.98","price":"45.98","retail_price":"99.98","available":true,"url":"\/products\/_products_carmel_hall_tree_with_bench_and_shoe_storage?variant=7630cdff-d8e3-4767-bfa4-e75c5ce9fbd8","available_quantity":999999999,"options":[],"off_ratio":54,"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 `
`;
}()}