${function() {
const variantData = data.variant || {"id":"4c94c598-772a-4ea5-a53d-27b4bb08ba43","product_id":"e020c490-7188-49ea-b30a-5d49309342d7","title":"White gold color-35 7cm Extension Channel","weight_unit":"kg","inventory_quantity":480,"sku":"731755569289-\u767d\u91d1\u8272-35+7cm\u5ef6\u957f\u94fe-N3-0034-731755569289","barcode":"","position":1,"option1":"White gold color","option2":"35 7cm Extension Channel","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cbdc0674dc6dd574abb055d0526ff65e.jpeg","path":"cbdc0674dc6dd574abb055d0526ff65e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":60.08,"min_quantity":1}],"weight":"0.05","compare_at_price":"0","price":"60.08","retail_price":"0","available":true,"url":"\/products\/snake-bones-chain-inlaid-1-karat-moissanite-bubble-removable-twin-double-layer-necklace?variant=4c94c598-772a-4ea5-a53d-27b4bb08ba43","available_quantity":999999999,"options":[{"name":"Color","value":"White gold color"},{"name":"Size","value":"35 7cm Extension Channel"}],"off_ratio":0,"flashsale_info":[],"sales":33};
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 tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"4c94c598-772a-4ea5-a53d-27b4bb08ba43","product_id":"e020c490-7188-49ea-b30a-5d49309342d7","title":"White gold color-35 7cm Extension Channel","weight_unit":"kg","inventory_quantity":480,"sku":"731755569289-\u767d\u91d1\u8272-35+7cm\u5ef6\u957f\u94fe-N3-0034-731755569289","barcode":"","position":1,"option1":"White gold color","option2":"35 7cm Extension Channel","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cbdc0674dc6dd574abb055d0526ff65e.jpeg","path":"cbdc0674dc6dd574abb055d0526ff65e.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":60.08,"min_quantity":1}],"weight":"0.05","compare_at_price":"0","price":"60.08","retail_price":"0","available":true,"url":"\/products\/snake-bones-chain-inlaid-1-karat-moissanite-bubble-removable-twin-double-layer-necklace?variant=4c94c598-772a-4ea5-a53d-27b4bb08ba43","available_quantity":999999999,"options":[{"name":"Color","value":"White gold color"},{"name":"Size","value":"35 7cm Extension Channel"}],"off_ratio":0,"flashsale_info":[],"sales":33};
return `
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const postageFreeAmount = 99;
const custom_text = "STANDARD SHIPPING: $9.90, Free over $99.00";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}
${function() {
const minDays = parseInt('7');
const maxDays = parseInt('15');
const customText = "SHIPPING TIME: 7-15 Working Days \n";
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 `
`;
}()}