Welcome to Madhuvani Organic Farms! Pure A2 Ghee & Organic Products Available Now. Free Shipping on orders above ₹999! Call us: +91-9782476329
Shop by Category
FARM LIFE

Wishlist

❤️ आपकी विशलिस्ट (My Wishlist)

आपके द्वारा पसंद किए गए आर्गेनिक और प्राकृतिक उत्पाद

उत्पाद (Product) मूल्य (Price) स्टॉक स्थिति (Stock) कार्रवाई (Action)
.mof-wishlist-wrapper { max-width: 1000px; margin: 20px auto; padding: 25px; background: #ffffff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; color: #2c3e50; } .mof-wishlist-header { border-bottom: 2px solid #e2ece9; padding-bottom: 15px; margin-bottom: 20px; } .mof-wishlist-title { color: #1b4332; font-size: 24px; margin: 0 0 5px 0; font-weight: 700; } .mof-wishlist-subtitle { color: #6c757d; font-size: 14px; margin: 0; } .mof-table-responsive { overflow-x: auto; } .mof-wishlist-table { width: 100%; border-collapse: collapse; text-align: left; } .mof-wishlist-table th { background-color: #f4f7f6; color: #1b4332; padding: 14px; font-size: 14px; font-weight: 600; border-bottom: 2px solid #d8e2dc; } .mof-wishlist-table td { padding: 16px 14px; border-bottom: 1px solid #e9ecef; vertical-align: middle; } .mof-product-info { display: flex; align-items: center; gap: 15px; } .mof-product-img { width: 65px; height: 65px; object-fit: cover; border-radius: 8px; border: 1px solid #e2ece9; } .mof-product-name { font-weight: 600; color: #1b4332; text-decoration: none; font-size: 15px; } .mof-product-name:hover { color: #d4af37; } .mof-price { font-weight: 700; color: #2d6a4f; font-size: 16px; } .mof-badge-instock { background-color: #e8f5e9; color: #2e7d32; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; } .mof-action-group { display: flex; align-items: center; justify-content: center; gap: 10px; } .mof-btn { padding: 8px 16px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s ease; } .mof-btn-primary { background-color: #1b4332; color: #ffffff !important; } .mof-btn-primary:hover { background-color: #2d6a4f; } .mof-btn-remove { background: transparent; color: #e63946; border: 1px solid #ffccd5; padding: 7px 12px; } .mof-btn-remove:hover { background-color: #ffe6e8; } .mof-empty-state { text-align: center; padding: 40px 20px; } .mof-empty-icon { font-size: 48px; margin-bottom: 10px; } @media (max-width: 600px) { .mof-product-info { flex-direction: column; align-items: flex-start; gap: 8px; } .mof-action-group { flex-direction: column; } } // Sample Wishlist Data (If localStorage is empty, default demo items will load) const defaultWishlistData = [ { id: 101, name: "Desi Tharparkar Cow A2 Bilona Ghee (1 Litre)", price: "₹1,850", image: "https://via.placeholder.com/65/1b4332/ffffff?text=A2+Ghee", link: "#", inStock: true }, { id: 102, name: "Organic Bajra (Desert Harvest Granules 5kg)", price: "₹350", image: "https://via.placeholder.com/65/2d6a4f/ffffff?text=Bajra", link: "#", inStock: true } ]; // Function to Render Wishlist function renderMOFWishlist() { const tableBody = document.getElementById('mof-wishlist-items'); const emptyState = document.getElementById('mof-empty-wishlist'); const tableContainer = document.querySelector('.mof-table-responsive'); // Fetch wishlist items from localStorage let wishlist = JSON.parse(localStorage.getItem('mof_wishlist_items')); if (!wishlist || wishlist.length === 0) { // Set default demo data on first load wishlist = defaultWishlistData; localStorage.setItem('mof_wishlist_items', JSON.stringify(wishlist)); } if (wishlist.length === 0) { tableContainer.style.display = 'none'; emptyState.style.display = 'block'; return; } tableContainer.style.display = 'block'; emptyState.style.display = 'none'; tableBody.innerHTML = ''; wishlist.forEach(item => { const row = document.createElement('tr'); row.innerHTML = ` ${item.price} In Stock
`; tableBody.appendChild(row); }); } // Remove Item Function function removeWishlistItem(id) { let wishlist = JSON.parse(localStorage.getItem('mof_wishlist_items')) || []; wishlist = wishlist.filter(item => item.id !== id); localStorage.setItem('mof_wishlist_items', JSON.stringify(wishlist)); renderMOFWishlist(); } // Add to Cart Action function addWishlistItemToCart(id) { alert("यह प्रोडक्ट आपके कार्ट (Cart) में जोड़ दिया गया है!"); } // Load wishlist on DOM Ready document.addEventListener("DOMContentLoaded", function() { renderMOFWishlist(); });
Scroll to Top