Dark Moon Castle with Spike Graphic Zip Up Hoodie
${function() {
const variantData = data.variant || {"id":"78d67121-4bcc-4c60-a97e-8a58a28c13f4","product_id":"13386b99-e23f-43b7-8fb9-18dd65f9b20d","title":"Black-S","weight_unit":"kg","inventory_quantity":999,"sku":"0711-010-KXP-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2ce2dbe1e8c783eaf250c38b07c0ae9d.jpg","path":"2ce2dbe1e8c783eaf250c38b07c0ae9d.jpg","width":1440,"height":1440,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":38.95,"min_quantity":1}],"weight":"0","compare_at_price":"69.88","price":"38.95","retail_price":"69.88","available":true,"url":"\/products\/dark-moon-castle-with-spike-graphic-zip-up-hoodie?variant=78d67121-4bcc-4c60-a97e-8a58a28c13f4","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":44,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${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 is unavailable.
${function() {
const minDays = parseInt('7');
const maxDays = parseInt('14');
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}
`;
}()}
${function() {
const postageFreeAmount = 99;
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 is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}