${function() {
const variantData = data.variant || {"id":"be67521d-6905-4d39-99a3-71d33abf4fd6","product_id":"57b4b4b8-6670-4099-a47f-3bc7ee1f7d0e","title":"Photo color-2","weight_unit":"g","inventory_quantity":197,"sku":"98400956-photo-color-2","barcode":"","position":1,"option1":"Photo color","option2":"2","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d2faa86364b9b46b7579042ce70a127a.jpeg","path":"d2faa86364b9b46b7579042ce70a127a.jpeg","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":105.47,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"105.47","retail_price":"0","available":true,"url":"\/products\/anokhinaliza-prom-dresses-tutu-quince-dresses-dama-dresses-white-charming-off-the-shoulder-strapless-a-line-with-puff-tulle-evening-dresses-for-dinner-party-fulle-sleeve-bridal-gowns-2022?variant=be67521d-6905-4d39-99a3-71d33abf4fd6","available_quantity":197,"options":[{"name":"Color","value":"Photo color"},{"name":"US Size","value":"2"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
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 postageFreeAmount = 34.99;
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 `
`;
}()}
${function() {
const minDays = parseInt('7');
const maxDays = parseInt('12');
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 `
`;
}()}
7*24h Service at: support@anokhinaliza.com