Joy Pet Ceramic Lace Cat Bowl
${function() {
const variantData = data.variant || {"id":"4f43ac7b-aad1-47ca-a8e1-e9d58563c4ab","product_id":"4b6e37d8-af0e-467a-8557-e1e1ec17caff","title":"Beveled Bowl-Green Bunny","weight_unit":"kg","inventory_quantity":200,"sku":"Beveled Bowl-Green Bunny","barcode":"","position":2,"option1":"Beveled Bowl-Green Bunny","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/21bca9484935249e95ff882ab2ca47a5.jpeg","path":"21bca9484935249e95ff882ab2ca47a5.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":44.98,"min_quantity":1}],"weight":"0","compare_at_price":"55.9","price":"44.98","retail_price":"55.9","available":true,"url":"\/products\/joy-pet-ceramic-lace-cat-bowl?variant=4f43ac7b-aad1-47ca-a8e1-e9d58563c4ab","available_quantity":200,"options":[{"name":"Color","value":"Beveled Bowl-Green Bunny"}],"off_ratio":20,"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}
`
}()}
people are viewing this right now
${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.
Sku : Beveled Bowl-Green Bunny
${function(){
const variantData = data.variant || {"id":"4f43ac7b-aad1-47ca-a8e1-e9d58563c4ab","product_id":"4b6e37d8-af0e-467a-8557-e1e1ec17caff","title":"Beveled Bowl-Green Bunny","weight_unit":"kg","inventory_quantity":200,"sku":"Beveled Bowl-Green Bunny","barcode":"","position":2,"option1":"Beveled Bowl-Green Bunny","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/21bca9484935249e95ff882ab2ca47a5.jpeg","path":"21bca9484935249e95ff882ab2ca47a5.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":44.98,"min_quantity":1}],"weight":"0","compare_at_price":"55.9","price":"44.98","retail_price":"55.9","available":true,"url":"\/products\/joy-pet-ceramic-lace-cat-bowl?variant=4f43ac7b-aad1-47ca-a8e1-e9d58563c4ab","available_quantity":200,"options":[{"name":"Color","value":"Beveled Bowl-Green Bunny"}],"off_ratio":20,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minDays = parseInt('3');
const maxDays = parseInt('7');
const customText = "Estimated Delivery\uff1a{min_date} - {max_date}";
const minDate = new Date(Date.now() + (minDays * 86400000));
const maxDate = new Date(Date.now() + (maxDays * 86400000));
const formatDate = (minDate.getFullYear() == maxDate.getFullYear() && minDate.getFullYear() == new Date().getFullYear())
? new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit' })
: new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit', year: 'numeric' });
const tipText = customText.replace(/\{min_date\}/g, '' + formatDate.format(minDate) + '')
.replace(/\{max_date\}/g, '' + formatDate.format(maxDate) + '');
return `
${tipText}
`;
}()}