Empty Top Hat Caps Women Fluorescent Hat Casual Night Halloween Cap
${function() {
const variantData = data.variant || {"id":"fa8f8eb0-e3b6-4f23-9f5d-d34935324d32","product_id":"d6392d6b-324a-4390-be35-e4c76a46bcfa","title":"purple","weight_unit":"kg","inventory_quantity":50,"sku":"","barcode":"","position":1,"option1":"purple","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a9ca5ab145b47b5962aaa46489ac7c08.jpg","path":"a9ca5ab145b47b5962aaa46489ac7c08.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":10.5,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"10.5","retail_price":"0","available":true,"url":"\/products\/empty-top-hat-caps-women-fluorescent-hat-casual-night-halloween-cap?variant=fa8f8eb0-e3b6-4f23-9f5d-d34935324d32","available_quantity":50,"options":[{"name":"Color","value":"purple"}],"off_ratio":0,"flashsale_info":[],"sales":11};
const saveType = "percentage";
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":"fa8f8eb0-e3b6-4f23-9f5d-d34935324d32","product_id":"d6392d6b-324a-4390-be35-e4c76a46bcfa","title":"purple","weight_unit":"kg","inventory_quantity":50,"sku":"","barcode":"","position":1,"option1":"purple","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a9ca5ab145b47b5962aaa46489ac7c08.jpg","path":"a9ca5ab145b47b5962aaa46489ac7c08.jpg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":10.5,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"10.5","retail_price":"0","available":true,"url":"\/products\/empty-top-hat-caps-women-fluorescent-hat-casual-night-halloween-cap?variant=fa8f8eb0-e3b6-4f23-9f5d-d34935324d32","available_quantity":50,"options":[{"name":"Color","value":"purple"}],"off_ratio":0,"flashsale_info":[],"sales":11};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
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 `
`;
}()}