As in minimog theme we get by default that when we click on cart icon in header the cart drawer opens on every page except cart page but as we move to cart page that is shopping cart when the cart icon is clicked it reloads the page, what i want is that on cart page the cart icon when clicked the cart drawer must opens.
Add
// Find the cart icon click event handler on the cart page
const cartIcon = document.querySelector('.cart-icon');
const cartDrawer = document.querySelector('.cart-drawer');
cartIcon.addEventListener('click', function(event) {
// Prevent the default behavior of reloading the page
event.preventDefault();
// Open the cart drawer instead of reloading the page
// Assuming the cart drawer is initially hidden and can be shown by adding a CSS class
cartDrawer.classList.add('show');
});
this code