Pillow
${function() {
const variantData = data.variant || {"id":"f0f69a06-ec6e-45a5-98fc-5a1ac1cfa556","product_id":"fe86badb-8725-44f2-8b28-c0496d581fe6","title":"Queen","weight_unit":"kg","inventory_quantity":1000,"sku":"homie","barcode":"","position":1,"option1":"Queen","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1db1a99b154bee22b909f2f76ba1b117.jpeg","path":"1db1a99b154bee22b909f2f76ba1b117.jpeg","width":755,"height":755,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"41.99","price":"14.99","retail_price":"41.99","available":true,"url":"\/products\/alwyn-home-dawkins-sleep-supreme-medium-polyester-support-pillow-w001676904-64o0-rilr?variant=f0f69a06-ec6e-45a5-98fc-5a1ac1cfa556","available_quantity":999999999,"options":[{"name":"Size","value":"Queen"}],"off_ratio":64,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${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":"f0f69a06-ec6e-45a5-98fc-5a1ac1cfa556","product_id":"fe86badb-8725-44f2-8b28-c0496d581fe6","title":"Queen","weight_unit":"kg","inventory_quantity":1000,"sku":"homie","barcode":"","position":1,"option1":"Queen","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1db1a99b154bee22b909f2f76ba1b117.jpeg","path":"1db1a99b154bee22b909f2f76ba1b117.jpeg","width":755,"height":755,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"41.99","price":"14.99","retail_price":"41.99","available":true,"url":"\/products\/alwyn-home-dawkins-sleep-supreme-medium-polyester-support-pillow-w001676904-64o0-rilr?variant=f0f69a06-ec6e-45a5-98fc-5a1ac1cfa556","available_quantity":999999999,"options":[{"name":"Size","value":"Queen"}],"off_ratio":64,"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 `
`;
}()}