Animated Hovering Witch
${function() {
const variantData = data.variant || {"id":"dced26a1-cb5f-4c6d-b5d0-a4c4b9a91fcd","product_id":"d17597d3-45c7-4f71-814e-eb3c84c9e3d6","title":"US","weight_unit":"kg","inventory_quantity":1000,"sku":"sku2088995543273","barcode":"","position":1,"option1":"US","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/07cb27bdff2f3a7bc45e6dc73d05ad0b.jpeg","path":"07cb27bdff2f3a7bc45e6dc73d05ad0b.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.98,"min_quantity":1}],"weight":"0","compare_at_price":"179.59","price":"25.98","retail_price":"179.59","available":true,"url":"\/products\/animated-hovering-witch-4rfy?variant=dced26a1-cb5f-4c6d-b5d0-a4c4b9a91fcd","available_quantity":999999999,"options":[{"name":"Plug","value":"US"}],"off_ratio":86,"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":"dced26a1-cb5f-4c6d-b5d0-a4c4b9a91fcd","product_id":"d17597d3-45c7-4f71-814e-eb3c84c9e3d6","title":"US","weight_unit":"kg","inventory_quantity":1000,"sku":"sku2088995543273","barcode":"","position":1,"option1":"US","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/07cb27bdff2f3a7bc45e6dc73d05ad0b.jpeg","path":"07cb27bdff2f3a7bc45e6dc73d05ad0b.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.98,"min_quantity":1}],"weight":"0","compare_at_price":"179.59","price":"25.98","retail_price":"179.59","available":true,"url":"\/products\/animated-hovering-witch-4rfy?variant=dced26a1-cb5f-4c6d-b5d0-a4c4b9a91fcd","available_quantity":999999999,"options":[{"name":"Plug","value":"US"}],"off_ratio":86,"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 `
`;
}()}