Art Black Geometric Color Patchwork Print Sexy Lace-up Top
${function() {
const variantData = data.variant || {"id":"c29522b6-a3f7-4456-ad34-eff2c2ed7d9e","product_id":"9bf22ae0-7ab3-411f-a9c3-f28b4672a25d","title":"green-S","weight_unit":"kg","inventory_quantity":1000,"sku":"444573ZYWYSY-green-S","barcode":"","position":1,"option1":"green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ba36d6663f858c9554b9199fd8ed53fb.jpeg","path":"ba36d6663f858c9554b9199fd8ed53fb.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0.36","compare_at_price":"25.99","price":"25.99","retail_price":"25.99","available":true,"url":"\/products\/art-black-geometric-color-patchwork-print-sexy-lace-up-top?variant=c29522b6-a3f7-4456-ad34-eff2c2ed7d9e","available_quantity":999999999,"options":[{"name":"Color","value":"green"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = false;
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('')}
`;
}()}
SKU : 444573ZYWYSY-green-S
Weight : 0.36kg
${function(){
const variantData = data.variant || {"id":"c29522b6-a3f7-4456-ad34-eff2c2ed7d9e","product_id":"9bf22ae0-7ab3-411f-a9c3-f28b4672a25d","title":"green-S","weight_unit":"kg","inventory_quantity":1000,"sku":"444573ZYWYSY-green-S","barcode":"","position":1,"option1":"green","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ba36d6663f858c9554b9199fd8ed53fb.jpeg","path":"ba36d6663f858c9554b9199fd8ed53fb.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0.36","compare_at_price":"25.99","price":"25.99","retail_price":"25.99","available":true,"url":"\/products\/art-black-geometric-color-patchwork-print-sexy-lace-up-top?variant=c29522b6-a3f7-4456-ad34-eff2c2ed7d9e","available_quantity":999999999,"options":[{"name":"Color","value":"green"},{"name":"Size","value":"S"}],"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 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 does not exist
${function() {
const minDays = parseInt('8');
const maxDays = parseInt('12');
const customText = "Estimated Delivery\uff1a{min_date} - {max_date}, Stock Preparation Period: 1-3 days, Shipping time: 8~12 Days";
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}
`;
}()}
${function() {
const postageFreeAmount = 69;
const custom_text = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order has free shipping";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}