CRETE by SBPC Premium Leather Embroidery Case

Original price was: ₹4,999.00.Current price is: ₹2,199.00.

📦 Convenient Cash on Delivery Option Available

🔒 For Security Reasons, Open Delivery is Not Permitted

🚚 Swift Delivery within 2-5 Working Days

⭐ Trusted by Over 1 Million Customers Nationwide

🚚 Dispatched within 24 hours.

CRETE by SBPC Premium Leather Embroidery Case

Model

iPhone 13, iPhone 13 Pro, iPhone 13 Pro Max

color

, , ,

document.addEventListener("DOMContentLoaded", function () { function updateMiniCartMessage() { let items = document.querySelectorAll('.woocommerce-mini-cart-item'); if (items.length === 0) return; let totalQty = 0; let totalOriginal = 0; items.forEach(item => { let qtyEl = item.querySelector('.quantity'); let priceEl = item.querySelector('.amount'); if (qtyEl && priceEl) { // 🔢 extract qty (e.g. "2 × ₹1599") let qtyText = qtyEl.innerText; let qtyMatch = qtyText.match(/\d+/); let qty = qtyMatch ? parseInt(qtyMatch[0]) : 1; // 💰 extract price let price = parseInt(priceEl.innerText.replace(/[^\d]/g, '')); totalQty += qty; totalOriginal += price * qty; } }); // 🎯 offer logic let offerPrice = 0; if (totalQty >= 4) { offerPrice = 3499; } else if (totalQty == 3) { offerPrice = 2999; } else if (totalQty == 2) { offerPrice = 2499; } else { offerPrice = 0; } // 💰 saving let saving = totalOriginal - offerPrice; // 🧠 message let message = ""; if (totalQty >= 2) { message = `🔥 You saved ₹${saving}`; } else { message = "🛒 Add 2 items to unlock offer"; } // ❌ remove old let old = document.querySelector('.offer-msg-mini'); if (old) old.remove(); // ✅ create new let msg = document.createElement("div"); msg.className = "offer-msg-mini"; msg.innerText = message; msg.style.padding = "10px"; msg.style.fontSize = "13px"; msg.style.fontWeight = "600"; msg.style.background = "#000"; msg.style.color = "#fff"; msg.style.textAlign = "center"; // 📍 insert above product list let miniCart = document.querySelector('.woocommerce-mini-cart'); if (miniCart) { miniCart.parentNode.insertBefore(msg, miniCart); } } // 🔁 run multiple times (Flatsome AJAX fix) setTimeout(updateMiniCartMessage, 500); setTimeout(updateMiniCartMessage, 1200); setTimeout(updateMiniCartMessage, 2000); // 🛒 run when cart opens document.body.addEventListener("click", function(e){ if(e.target.closest('.cart-icon, .header-cart-link')){ setTimeout(updateMiniCartMessage, 500); } }); });