A user is experiencing an issue where the cart slider/drawer opens correctly on product pages but fails to open on collection pages—instead redirecting to the cart page.
Root Cause Identified:
A JavaScript error occurs when breadcrumbs are disabled on the collection page, causing the redirect instead of triggering the drawer.
Proposed Solutions:
Enable breadcrumbs on the collection page to resolve the JS error
Implement AJAX add-to-cart functionality using fetch() API with custom event triggers to open the drawer without page redirects (code example provided)
Direct code fix offered by a responder who can modify the JavaScript after receiving collaborator access
Current Status:
The issue remains unresolved. The user shared their website link and is awaiting either a breadcrumb setting change or collaborator access arrangement to implement the fix.
Summarized with AI on October 29.
AI used: claude-sonnet-4-5-20250929.
Hi! I am currently having issues with my “Cart Slider”.
When I am in my Collection list and click on Add to Cart for any of my products, I am routed to the Cart Page and the Slider is not opening. However, when I am on my product page, my the slider/drawer shows up. I am having issues with the coding of the Cart slider on my homepage. Needing assistance with this matter. Thanks!
No worries at all—I can absolutely take care of the issue with your Cart Slider. It sounds like the functionality is working correctly on the product page but not on the collection or homepage, which may be due to how the AJAX add-to-cart functionality is set up in your theme.
If you’d like me to take a closer look and help resolve this for you, I’d be happy to assist and get everything working smoothly.