Single-Sale The Super Hero Set
KT1028
${function() {
const variantData = data.variant || {"id":"ff490baf-f0ec-4407-8efc-4730f03d5022","product_id":"8c830660-3b44-404d-9aed-e4fe035c5e2c","title":"KT1028","weight_unit":"g","inventory_quantity":998,"sku":"KT1028\/\u5957","barcode":"","position":1,"option1":"KT1028","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/05d6fd697e6921299ce30918f6521721.jpeg","path":"05d6fd697e6921299ce30918f6521721.jpeg","width":800,"height":800,"alt":"Single-Sale The Super Hero Set rebuildvenus","aspect_ratio":1},"wholesale_price":[{"price":7,"min_quantity":1}],"weight":"64","compare_at_price":"7","price":"7","retail_price":"7","available":true,"url":"\/products\/single-sale-the-super-hero-set-4vbt?variant=ff490baf-f0ec-4407-8efc-4730f03d5022","available_quantity":998,"options":[{"name":"SKU","value":"KT1028"}],"off_ratio":0,"flashsale_info":[],"sales":21};
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('30');
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 = 15;
const custom_text = "orders containing minifigures require a minimum of {amount}.";
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 `
`;
}()}