Halloween LED Small Pumpkin Lantern
${function() {
const variantData = data.variant || {"id":"5d43bab1-ee8a-4191-a2f1-42c626fc3cf2","product_id":"32a8b909-75a7-4f8d-894a-eb69d3a2c61f","title":"Gold 14 * 19.5cm","weight_unit":"kg","inventory_quantity":9999,"sku":"102765101","barcode":"102765101","position":1,"option1":"Gold 14 * 19.5cm","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5f757152dc37b12532dadfae952ac7aa.jpeg","path":"5f757152dc37b12532dadfae952ac7aa.jpeg","width":1500,"height":1500,"alt":"Halloween LED Small Pumpkin Lantern","aspect_ratio":1},"wholesale_price":[{"price":59.99,"min_quantity":1}],"weight":"0.98","compare_at_price":"0","price":"59.99","retail_price":"0","available":true,"url":"\/products\/halloween-led-small-pumpkin-lantern?variant=5d43bab1-ee8a-4191-a2f1-42c626fc3cf2","available_quantity":9999,"options":[{"name":"Size","value":"Gold 14 * 19.5cm"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
const map = {
B: ` `,
C: ` `,
A: `
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`
}
const price_group_arr = ["B","C","A"];
const price_str_arr = price_group_arr.map(type => map[type]);
return `
-
${price_str_arr.join('')}
`;
}()}
Size:
Gold 14 * 19.5cm
${function(){
const optName = "Size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (optionValue) : '';
return `${optionValueText} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
ADD TO CART
Product was out of stock.
Product does not exist
${function() {
const minDays = parseInt('7');
const maxDays = parseInt('12');
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}
`;
}()}