${function() {
const variantData = data.variant || {"id":"de36365d-8809-4013-88df-86821767ef1f","product_id":"42d1f1a0-bd2b-4505-9d8c-a52c5cec819c","title":"1 Tube 20 Pieces","weight_unit":"kg","inventory_quantity":497,"sku":"681617468382_1 Tube 20 Pieces","barcode":"","position":1,"option1":"1 Tube 20 Pieces","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cdd66b8192d7fc95167e3da7d58d1e29.jpeg","path":"cdd66b8192d7fc95167e3da7d58d1e29.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":12.71,"min_quantity":1}],"weight":"0.3","compare_at_price":"18.56","price":"12.71","retail_price":"18.56","available":true,"url":"\/products\/waterproof-windproof-match-outdoor-survival-equipment-outdoor-life-saving-disaster-prevention-earthquake-off-road-running-emergency-survival-ignition?variant=de36365d-8809-4013-88df-86821767ef1f","available_quantity":999999999,"options":[{"name":"Color","value":"1 Tube 20 Pieces"}],"off_ratio":32,"flashsale_info":[],"sales":0};
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}
`
}()}
Product was out of stock.
Product is unavailable.
Sku : 681617468382_1 Tube 20 Pieces
Weight : 0.3kg
${function(){
const variantData = data.variant || {"id":"de36365d-8809-4013-88df-86821767ef1f","product_id":"42d1f1a0-bd2b-4505-9d8c-a52c5cec819c","title":"1 Tube 20 Pieces","weight_unit":"kg","inventory_quantity":497,"sku":"681617468382_1 Tube 20 Pieces","barcode":"","position":1,"option1":"1 Tube 20 Pieces","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/cdd66b8192d7fc95167e3da7d58d1e29.jpeg","path":"cdd66b8192d7fc95167e3da7d58d1e29.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":12.71,"min_quantity":1}],"weight":"0.3","compare_at_price":"18.56","price":"12.71","retail_price":"18.56","available":true,"url":"\/products\/waterproof-windproof-match-outdoor-survival-equipment-outdoor-life-saving-disaster-prevention-earthquake-off-road-running-emergency-survival-ignition?variant=de36365d-8809-4013-88df-86821767ef1f","available_quantity":999999999,"options":[{"name":"Color","value":"1 Tube 20 Pieces"}],"off_ratio":32,"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 `
`;
}()}
people are viewing this right now