Store

No items found.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Cart
0
Sort by:
Price
document.addEventListener('cmsload', () => { console.log('CMS content loaded. Checking inventory...'); const collectionItems = document.querySelectorAll('.collection-item'); // Adjust if needed collectionItems.forEach(item => { const inventoryElement = item.querySelector('.inventory-count'); const count = inventoryElement ? parseInt(inventoryElement.textContent.trim()) : 0; if (isNaN(count)) { console.warn('Invalid inventory value:', inventoryElement.textContent); return; } if (count <= 0) { console.log('Hiding item with 0 inventory:', item); item.style.display = 'none'; // Hide the item completely } }); console.log('Inventory check completed.'); });