Order by Wednesday, December 21st for a guaranteed Pre-Christmas delivery

Search

Knowledge

Knowledge

const preventCartItemClicks = () => { const cartContents = document.querySelector('.rebuy-cart__flyout-content'); cartContents.addEventListener('click', (e) => { const ignoredElements = [...document.querySelectorAll('a.rebuy-cart__flyout-item-product-title, .rebuy-cart__flyout-item-media a img')]; const isIgnored = ignoredElements.includes(e.target); if (isIgnored) { e.preventDefault(); } }); } document.addEventListener('rebuy:smartcart.ready', () => { preventCartItemClicks(); });