DRAGON SKELETON Washed T-shirt- Black
${function() {
const variantData = data.variant || {"id":"e857bf83-5184-4fa2-8f47-2ee66ec3ba42","product_id":"75c0514e-19cb-4e13-8c87-f67ab44b3895","title":"S","weight_unit":"kg","inventory_quantity":998,"sku":"A31S665-Black-S","barcode":"","position":1,"option1":"S","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/defdc06c3fae3170a668b13d19849519.png","path":"defdc06c3fae3170a668b13d19849519.png","width":2400,"height":3598,"alt":"","aspect_ratio":0.6670372429127293},"wholesale_price":[{"price":34.95,"min_quantity":1}],"weight":"0","compare_at_price":"50.7","price":"34.95","retail_price":"50.7","available":true,"url":"\/products\/dragon-skeleton-in-black?variant=e857bf83-5184-4fa2-8f47-2ee66ec3ba42","available_quantity":999999999,"options":[{"name":"Size","value":"S"}],"off_ratio":31,"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}
`
}()}
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 `
`;
}()}