${function() {
const variantData = data.variant || {"id":"d6bbe5ac-998c-4c01-8e94-7fd8f9db8415","product_id":"24659723-d0f1-4e8d-a09e-1b7b4b995312","title":"Green","weight_unit":"kg","inventory_quantity":9997,"sku":"OG7355G","barcode":"","position":1,"option1":"Green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9fae050ffcd9e07120f873f2676e96ab.jpeg","path":"9fae050ffcd9e07120f873f2676e96ab.jpeg","width":750,"height":750,"alt":"5 Node Portable Foldable Aluminium Alloy Alpenstocks Trekking Poles, Folding Length : 28.5CM ","aspect_ratio":1},"wholesale_price":[{"price":10.32,"min_quantity":1}],"weight":"0.29","compare_at_price":"0","price":"10.32","retail_price":"0","available":true,"url":"\/products\/5-node-portable-foldable-aluminium-alloy-alpenstocks-trekking-poles-folding-length-28-5cm?variant=d6bbe5ac-998c-4c01-8e94-7fd8f9db8415","available_quantity":9997,"options":[{"name":"Color","value":"Green"}],"off_ratio":0,"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 : OG7355G
Weight : 0.29kg
${function(){
const variantData = data.variant || {"id":"d6bbe5ac-998c-4c01-8e94-7fd8f9db8415","product_id":"24659723-d0f1-4e8d-a09e-1b7b4b995312","title":"Green","weight_unit":"kg","inventory_quantity":9997,"sku":"OG7355G","barcode":"","position":1,"option1":"Green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9fae050ffcd9e07120f873f2676e96ab.jpeg","path":"9fae050ffcd9e07120f873f2676e96ab.jpeg","width":750,"height":750,"alt":"5 Node Portable Foldable Aluminium Alloy Alpenstocks Trekking Poles, Folding Length : 28.5CM ","aspect_ratio":1},"wholesale_price":[{"price":10.32,"min_quantity":1}],"weight":"0.29","compare_at_price":"0","price":"10.32","retail_price":"0","available":true,"url":"\/products\/5-node-portable-foldable-aluminium-alloy-alpenstocks-trekking-poles-folding-length-28-5cm?variant=d6bbe5ac-998c-4c01-8e94-7fd8f9db8415","available_quantity":9997,"options":[{"name":"Color","value":"Green"}],"off_ratio":0,"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