Pet Korean Collar
${function() {
const variantData = data.variant || {"id":"b5ba4ec6-627b-4731-94f1-9f44774f90ff","product_id":"ec96da4e-f3e0-45ac-b69e-368206294c56","title":"S# Neck circumference 24-26-28-30cm four levels-Beige (the same rope is available in the store)","weight_unit":"kg","inventory_quantity":149,"sku":"5217881888487","barcode":"","position":3,"option1":"S# Neck circumference 24-26-28-30cm four levels","option2":"Beige (the same rope is available in the store)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/eb07decfabd54784a64d7545eebed801.jpeg","path":"eb07decfabd54784a64d7545eebed801.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"31.99","price":"21.99","retail_price":"31.99","available":true,"url":"\/products\/\u5ba0\u7269\u51fa\u884c\u8116\u5708?variant=b5ba4ec6-627b-4731-94f1-9f44774f90ff","available_quantity":999999999,"options":[{"name":"Size","value":"S# Neck circumference 24-26-28-30cm four levels"},{"name":"Color","value":"Beige (the same rope is available in the store)"}],"off_ratio":31,"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}
`
}()}
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":"b5ba4ec6-627b-4731-94f1-9f44774f90ff","product_id":"ec96da4e-f3e0-45ac-b69e-368206294c56","title":"S# Neck circumference 24-26-28-30cm four levels-Beige (the same rope is available in the store)","weight_unit":"kg","inventory_quantity":149,"sku":"5217881888487","barcode":"","position":3,"option1":"S# Neck circumference 24-26-28-30cm four levels","option2":"Beige (the same rope is available in the store)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/eb07decfabd54784a64d7545eebed801.jpeg","path":"eb07decfabd54784a64d7545eebed801.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"31.99","price":"21.99","retail_price":"31.99","available":true,"url":"\/products\/\u5ba0\u7269\u51fa\u884c\u8116\u5708?variant=b5ba4ec6-627b-4731-94f1-9f44774f90ff","available_quantity":999999999,"options":[{"name":"Size","value":"S# Neck circumference 24-26-28-30cm four levels"},{"name":"Color","value":"Beige (the same rope is available in the store)"}],"off_ratio":31,"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}
`;
}()}