Fan-shaped Exaggerated Tassel Geometric Stud Earrings
${function() {
const variantData = data.variant || {"id":"a1c1ec5b-69ae-40da-aa51-80c67c5c4fd3","product_id":"0405338d-cc42-43fb-8ccc-ecd2e0870437","title":"Rose gold","weight_unit":"kg","inventory_quantity":5755,"sku":"2111091114-Rose gold","barcode":"","position":2,"option1":"Rose gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c78526ae3b07f919cece5e8863525db2.jpeg","path":"c78526ae3b07f919cece5e8863525db2.jpeg","width":1620,"height":1536,"alt":"","aspect_ratio":1.0546875},"wholesale_price":[{"price":15.11,"min_quantity":1}],"weight":"0.1","compare_at_price":"28.51","price":"15.11","retail_price":"28.51","available":true,"url":"\/products\/fan-shaped-exaggerated-tassel-geometric-stud-earrings?variant=a1c1ec5b-69ae-40da-aa51-80c67c5c4fd3","available_quantity":999999999,"options":[{"name":"Color","value":"Rose gold"}],"off_ratio":47,"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}
`
}()}
${function() {
const minDays = parseInt('7');
const maxDays = parseInt('14');
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 = 69;
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.
people are viewing this right now