Animated Hovering Witch
${function() {
const variantData = data.variant || {"id":"2c0b9e5f-6fe2-426a-b0da-855eb1d0c977","product_id":"63f5597d-9917-4c2b-8fb9-fe7cfeb93fad","title":"US","weight_unit":"kg","inventory_quantity":999,"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?variant=2c0b9e5f-6fe2-426a-b0da-855eb1d0c977","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":"2c0b9e5f-6fe2-426a-b0da-855eb1d0c977","product_id":"63f5597d-9917-4c2b-8fb9-fe7cfeb93fad","title":"US","weight_unit":"kg","inventory_quantity":999,"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?variant=2c0b9e5f-6fe2-426a-b0da-855eb1d0c977","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 `
`;
}()}