Single-Sale The Marshmello Set
WM6064
${function() {
const variantData = data.variant || {"id":"bd100b4d-ae59-4bd2-a738-db1b52ac477f","product_id":"f93a8f6c-db6f-4e74-96f4-cd8e85749657","title":"W-729","weight_unit":"g","inventory_quantity":998,"sku":"W-729","barcode":"","position":6,"option1":"W-729","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7f5813654b0e475a0e62bbd6d1469de5.jpeg","path":"7f5813654b0e475a0e62bbd6d1469de5.jpeg","width":800,"height":800,"alt":"Single-Sale The Marshmello Set rebuildvenus","aspect_ratio":1},"wholesale_price":[{"price":1,"min_quantity":1}],"weight":"8","compare_at_price":"1","price":"1","retail_price":"1","available":true,"url":"\/products\/single-sale-the-marshmello-set?variant=bd100b4d-ae59-4bd2-a738-db1b52ac477f","available_quantity":998,"options":[{"name":"SKU","value":"W-729"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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 `
`;
}()}