๐๐ใBuy One Get One Freeใ๐๐Ladies 925 Sterling Silver Bracelet
${function() {
const variantData = data.variant || {"id":"72f098cb-7ef0-4054-9165-19023ab4d044","product_id":"ffb2091e-f4ee-4276-8acc-67a62c9c2d4f","title":"Silver","weight_unit":"kg","inventory_quantity":100,"sku":"yn14-Silver","barcode":"","position":1,"option1":"Silver","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6a33467ea330035c2196ae7f7beee910.jpeg","path":"6a33467ea330035c2196ae7f7beee910.jpeg","width":727,"height":727,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25,"min_quantity":1}],"weight":"0","compare_at_price":"59","price":"25","retail_price":"59","available":true,"url":"\/products\/\ud83d\ude00\ud83d\udc49-buy-one-get-one-free-\ud83d\udc96\ud83c\udf40ladies-925-sterling-silver-bracelet?variant=72f098cb-7ef0-4054-9165-19023ab4d044","available_quantity":999999999,"options":[{"name":"Color","value":"Silver"}],"off_ratio":58,"flashsale_info":[],"sales":0};
const saveType = "amount";
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.
10% discount for online payment
${function() {
const minDays = parseInt('2');
const maxDays = parseInt('7');
const customText = "Estimated time of shipment\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 = 1;
const custom_text = "No minimum purchase, free shipping on all orders";
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 `
`;
}()}