Medium and Large Dog Four-legged All-inclusive Reflective Outdoor Jacket
${function() {
const variantData = data.variant || {"id":"785265f5-4fc1-4dbf-a256-0e66e175a6a0","product_id":"dd68c252-5f6f-4221-821e-ebbd2b995af9","title":"Rose Red-[This style is too small, please refer to the recommended size]","weight_unit":"kg","inventory_quantity":10,"sku":"5611320784990","barcode":"","position":1,"option1":"Rose Red","option2":"[This style is too small, please refer to the recommended size]","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e3d48ba20f4848268be678087fd9ed8e.jpeg","path":"e3d48ba20f4848268be678087fd9ed8e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"30.99","price":"21.99","retail_price":"30.99","available":true,"url":"\/products\/medium-and-large-dog-four-legged-all-inclusive-reflective-outdoor-jacket?variant=785265f5-4fc1-4dbf-a256-0e66e175a6a0","available_quantity":999999999,"options":[{"name":"Color ","value":"Rose Red"},{"name":"Size","value":"[This style is too small, please refer to the recommended size]"}],"off_ratio":29,"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":"785265f5-4fc1-4dbf-a256-0e66e175a6a0","product_id":"dd68c252-5f6f-4221-821e-ebbd2b995af9","title":"Rose Red-[This style is too small, please refer to the recommended size]","weight_unit":"kg","inventory_quantity":10,"sku":"5611320784990","barcode":"","position":1,"option1":"Rose Red","option2":"[This style is too small, please refer to the recommended size]","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e3d48ba20f4848268be678087fd9ed8e.jpeg","path":"e3d48ba20f4848268be678087fd9ed8e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"30.99","price":"21.99","retail_price":"30.99","available":true,"url":"\/products\/medium-and-large-dog-four-legged-all-inclusive-reflective-outdoor-jacket?variant=785265f5-4fc1-4dbf-a256-0e66e175a6a0","available_quantity":999999999,"options":[{"name":"Color ","value":"Rose Red"},{"name":"Size","value":"[This style is too small, please refer to the recommended size]"}],"off_ratio":29,"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}
`;
}()}