${function() {
const variantData = data.variant || {"id":"beaa53e8-78d4-4ef5-bf6b-3008a73dcc10","product_id":"77fdcf70-1f0f-474b-b6b2-f370dfe29ee2","title":"Black-one-size","weight_unit":"kg","inventory_quantity":-24,"sku":"YCTL604","barcode":"","position":1,"option1":"Black","option2":"one-size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8b4c6a2e67662dfe4033980b158fee7a.jpeg","path":"8b4c6a2e67662dfe4033980b158fee7a.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"29.99","retail_price":"49.99","available":true,"url":"\/products\/sweets-kitchen-accessories-silicone-stove-mat-1count-sink-mat-electric-stove-top-cover-electronic-stove-heat-insulation-mat-summer-gift-back-to-school-supplies-kitchen-gadgets-summer-for-gift?variant=beaa53e8-78d4-4ef5-bf6b-3008a73dcc10","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Specification","value":"one-size"}],"off_ratio":40,"flashsale_info":[],"sales":5460};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ``
)}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${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 variantData = data.variant || {"id":"beaa53e8-78d4-4ef5-bf6b-3008a73dcc10","product_id":"77fdcf70-1f0f-474b-b6b2-f370dfe29ee2","title":"Black-one-size","weight_unit":"kg","inventory_quantity":-24,"sku":"YCTL604","barcode":"","position":1,"option1":"Black","option2":"one-size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/8b4c6a2e67662dfe4033980b158fee7a.jpeg","path":"8b4c6a2e67662dfe4033980b158fee7a.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"29.99","retail_price":"49.99","available":true,"url":"\/products\/sweets-kitchen-accessories-silicone-stove-mat-1count-sink-mat-electric-stove-top-cover-electronic-stove-heat-insulation-mat-summer-gift-back-to-school-supplies-kitchen-gadgets-summer-for-gift?variant=beaa53e8-78d4-4ef5-bf6b-3008a73dcc10","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Specification","value":"one-size"}],"off_ratio":40,"flashsale_info":[],"sales":5460};
return `
`
}()}
${function() {
const minDays = parseInt('7');
const maxDays = parseInt('13');
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 `
`;
}()}