Christmas LED Wreath Decorated
${function() {
const variantData = data.variant || {"id":"1fb02764-eb53-48bc-b395-40c6726a2cf4","product_id":"e50a3f0f-151e-4cd7-a7e5-d54624f13bd0","title":"Christmas Wreath Gold And Silver Payment","weight_unit":"kg","inventory_quantity":9999,"sku":"102943901","barcode":"102943901","position":1,"option1":"Christmas Wreath Gold And Silver Payment","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/93545f4893465a04d3b2071da4eab85a.jpeg","path":"93545f4893465a04d3b2071da4eab85a.jpeg","width":800,"height":800,"alt":"Christmas LED Wreath Decorated","aspect_ratio":1},"wholesale_price":[{"price":49,"min_quantity":1}],"weight":"0.5","compare_at_price":"0","price":"49","retail_price":"0","available":true,"url":"\/products\/christmas-led-wreath-decorated-with-bow-pine-needle-branch-diy-luminous-tree-ring-pendant?variant=1fb02764-eb53-48bc-b395-40c6726a2cf4","available_quantity":999999999,"options":[{"name":"Light Color","value":"Christmas Wreath Gold And Silver Payment"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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('')}
`;
}()}
Light Color:
Christmas Wreath Gold And Silver Payment
${function(){
const optName = "Light Color";
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}
`;
}()}