Single-Sale The Star War Set
MG0206 MG0207
${function() {
const variantData = data.variant || {"id":"99a7caf5-9439-44f5-a520-8ea28f2ef6a2","product_id":"b911149c-656a-48b1-8ab3-2cb72257862a","title":"MG0206","weight_unit":"g","inventory_quantity":995,"sku":"MG-0206","barcode":"","position":1,"option1":"MG0206","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/514f3bca010193cf1d11f76ab97a9a21.jpg","path":"514f3bca010193cf1d11f76ab97a9a21.jpg","width":800,"height":800,"alt":"Single-Sale The Star War Set rebuildvenus","aspect_ratio":1},"wholesale_price":[{"price":0.9,"min_quantity":1}],"weight":"8","compare_at_price":"1","price":"0.90","retail_price":"1","available":true,"url":"\/products\/single-sale-the-star-war-set-oqih?variant=99a7caf5-9439-44f5-a520-8ea28f2ef6a2","available_quantity":995,"options":[{"name":"SKU","value":"MG0206"}],"off_ratio":"10","flashsale_info":{"variant_id":"99a7caf5-9439-44f5-a520-8ea28f2ef6a2","product_id":"","quantity":0,"discount_id":"d7d2c2db-01ca-4bb9-ab3f-58e84867f63f","limit_time":-1,"limit_buy":-1,"user_limit_buy":-1,"discount_sales":3,"discount_sales_rate":"1","discount_stock":995,"ends_at":-1,"starts_at":1727056678,"allow_oversold":"uncheck","allocation_method":"none","price":"0.90","compare_at_price":"1.00","discount_price":"0.90","customary_saved_price":"0.10","customary_off_ratio":"10","discount_saved_price":"0.10","discount_off_ratio":"10","use_before_price":false,"before_price":"","title":"","properties":"","color_setting_promotional_copy":"","discount_quantity":0,"is_need_split":false},"sales":7};
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 `
`;
}()}