Plastic fruit shaped jigsaw puzzle educational toys for kids
${function() {
const variantData = data.variant || {"id":"22c6272b-d7a0-4f43-a163-b74325bb3805","product_id":"99dc9ec4-435c-439b-bef1-119042c596ba","title":"4 Random PCS","weight_unit":"kg","inventory_quantity":0,"sku":"product-1126-4 Random-PCS-A002061","barcode":"","position":2,"option1":"4 Random PCS","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ebfd966b279347dc9fb8041cef1339c6.JPG","path":"ebfd966b279347dc9fb8041cef1339c6.JPG","width":800,"height":800,"alt":"Plastic fruit shaped jigsaw puzzle educational toys for kids","aspect_ratio":1},"wholesale_price":[{"price":16.9,"min_quantity":1}],"weight":"0","compare_at_price":"19.9","price":"16.9","retail_price":"19.9","available":true,"url":"\/products\/plastic-fruit-shaped-jigsaw-puzzle-educational-toys-for-kids?variant=22c6272b-d7a0-4f43-a163-b74325bb3805","available_quantity":999999999,"options":[{"name":"Sets","value":"4 Random PCS"}],"off_ratio":15,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
(Tax included)
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
(Tax included)
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function() {
const minDays = parseInt('3');
const maxDays = parseInt('15');
const customText = "Estimated Delivery\uff1a{min_date} - {max_date}. Please be patient, Good toys are worth waiting for.\n";
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 = 30;
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 `
`;
}()}
Product was out of stock.
Product is unavailable.