people are viewing this right now
${function() {
const variantData = data.variant || {"id":"a6485738-8745-43e7-b41a-7562aaa4302a","product_id":"ec78d4f9-f939-4518-bd41-f37b98579dce","title":"18GA With battery and charger","weight_unit":"kg","inventory_quantity":-366,"sku":"","barcode":"","position":1,"option1":"18GA With battery and charger","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b09d75e7872a5fe148ad88a352dcc341.jpeg","path":"b09d75e7872a5fe148ad88a352dcc341.jpeg","width":894,"height":789,"alt":"","aspect_ratio":1.1330798479087452},"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"33.99","retail_price":"0","available":true,"url":"\/products\/18ga-brad-nailer-kit-sc?variant=a6485738-8745-43e7-b41a-7562aaa4302a","available_quantity":999999999,"options":[{"name":"Style","value":"18GA With battery and charger"}],"off_ratio":0,"flashsale_info":[],"sales":2229};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${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 `
`;
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"a6485738-8745-43e7-b41a-7562aaa4302a","product_id":"ec78d4f9-f939-4518-bd41-f37b98579dce","title":"18GA With battery and charger","weight_unit":"kg","inventory_quantity":-366,"sku":"","barcode":"","position":1,"option1":"18GA With battery and charger","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b09d75e7872a5fe148ad88a352dcc341.jpeg","path":"b09d75e7872a5fe148ad88a352dcc341.jpeg","width":894,"height":789,"alt":"","aspect_ratio":1.1330798479087452},"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"33.99","retail_price":"0","available":true,"url":"\/products\/18ga-brad-nailer-kit-sc?variant=a6485738-8745-43e7-b41a-7562aaa4302a","available_quantity":999999999,"options":[{"name":"Style","value":"18GA With battery and charger"}],"off_ratio":0,"flashsale_info":[],"sales":2229};
return `
`
}()}