2-In-1 Portable TV
${function() {
const variantData = data.variant || {"id":"93c303a3-a035-446f-b641-4b88aaee3f2f","product_id":"0f14a9ec-1a08-4b82-8b57-39b7526a235b","title":"24-Inch","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"24-Inch","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":32.98,"min_quantity":1}],"weight":"0","compare_at_price":"108.99","price":"32.98","retail_price":"108.99","available":true,"url":"\/products\/2-in-1-portable-tv?variant=93c303a3-a035-446f-b641-4b88aaee3f2f","available_quantity":999999999,"options":[{"name":"Size","value":"24-Inch"}],"off_ratio":70,"flashsale_info":[],"sales":108};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function() {
const minInventory = parseInt('3');
const maxInventory = parseInt('88');
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 `
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"93c303a3-a035-446f-b641-4b88aaee3f2f","product_id":"0f14a9ec-1a08-4b82-8b57-39b7526a235b","title":"24-Inch","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"24-Inch","option2":"","option3":"","note":"","image":null,"wholesale_price":[{"price":32.98,"min_quantity":1}],"weight":"0","compare_at_price":"108.99","price":"32.98","retail_price":"108.99","available":true,"url":"\/products\/2-in-1-portable-tv?variant=93c303a3-a035-446f-b641-4b88aaee3f2f","available_quantity":999999999,"options":[{"name":"Size","value":"24-Inch"}],"off_ratio":70,"flashsale_info":[],"sales":108};
return `
`
}()}