In the Jungle - Lift The Flap Book
In the Jungle - Lift The Flap Book
In the Jungle - Lift The Flap Book

In the Jungle - Lift The Flap Book

Regular price
R 70.00
Sale price
R 70.00
Free shipping on all orders over R950
Quantity must be 1 or more

The lush green jungle bursts with life at every corner. Playful monkeys chatter high in the trees, while mighty lions roar with power. Gentle elephants trumpet loudly as they roam through the wild. Hidden among the trees, countless other animals add to the jungle’s mystery. This vibrant world of creatures never fails to capture children’s imagination and wonder.

const button = event.target.closest('.custom-product-add-to-cart'); if (!button) return; event.preventDefault(); const variantId = button.dataset.variantId; if (!variantId) { console.error('No variant ID found.'); return; } if (button.disabled) return; const originalText = button.textContent; button.disabled = true; button.textContent = 'Adding...'; fetch(window.Shopify.routes.root + 'cart/add.js', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' }, body: JSON.stringify({ items: [ { id: Number(variantId), quantity: 1 } ] }) }) .then(function(response) { return response.json().then(function(data) { if (!response.ok) { throw new Error( data.description || 'Could not add product to cart.' ); } return data; }); }) .then(function(data) { button.textContent = 'Added ✓'; return fetch(window.Shopify.routes.root + 'cart.js'); }) .then(function(response) { return response.json(); }) .then(function(cart) { const cartCount = document.querySelector('[data-cart-count]') || document.querySelector('.cart-count-bubble'); if (cartCount) { cartCount.textContent = cart.item_count; } const cartDrawer = document.querySelector('cart-drawer'); if (cartDrawer && typeof cartDrawer.open === 'function') { cartDrawer.open(); } setTimeout(function() { button.disabled = false; button.textContent = originalText; }, 1500); }) .catch(function(error) { console.error('Add to cart error:', error); button.disabled = false; button.textContent = 'Error - try again'; setTimeout(function() { button.textContent = originalText; }, 2000); }); });