Didogpet Custom Engraved Dog Collar
${function() {
const variantData = data.variant || {"id":"d211d3a1-826f-412e-924f-cbb30ac168e5","product_id":"fd5a8484-0d47-41d6-acff-881462590e90","title":"S-small: recommended weight 8-22 pounds-apricot flour [ no lettering]","weight_unit":"kg","inventory_quantity":13,"sku":"5475707804596","barcode":"","position":4,"option1":"S-small: recommended weight 8-22 pounds","option2":"apricot flour [ no lettering]","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6940c87e0cf6d75f989c6eb6138415f1.jpeg","path":"6940c87e0cf6d75f989c6eb6138415f1.jpeg","width":430,"height":430,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":28.9,"min_quantity":1}],"weight":"0","compare_at_price":"33.9","price":"28.9","retail_price":"33.9","available":true,"url":"\/products\/didogpet-custom-engraved-dog-collar?variant=d211d3a1-826f-412e-924f-cbb30ac168e5","available_quantity":999999999,"options":[{"name":"Size","value":"S-small: recommended weight 8-22 pounds"},{"name":"Color","value":"apricot flour [ no lettering]"}],"off_ratio":15,"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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
55
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.
${function(){
const variantData = data.variant || {"id":"d211d3a1-826f-412e-924f-cbb30ac168e5","product_id":"fd5a8484-0d47-41d6-acff-881462590e90","title":"S-small: recommended weight 8-22 pounds-apricot flour [ no lettering]","weight_unit":"kg","inventory_quantity":13,"sku":"5475707804596","barcode":"","position":4,"option1":"S-small: recommended weight 8-22 pounds","option2":"apricot flour [ no lettering]","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6940c87e0cf6d75f989c6eb6138415f1.jpeg","path":"6940c87e0cf6d75f989c6eb6138415f1.jpeg","width":430,"height":430,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":28.9,"min_quantity":1}],"weight":"0","compare_at_price":"33.9","price":"28.9","retail_price":"33.9","available":true,"url":"\/products\/didogpet-custom-engraved-dog-collar?variant=d211d3a1-826f-412e-924f-cbb30ac168e5","available_quantity":999999999,"options":[{"name":"Size","value":"S-small: recommended weight 8-22 pounds"},{"name":"Color","value":"apricot flour [ no lettering]"}],"off_ratio":15,"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}
`;
}()}