Shopify Impulse Theme v4.1.4 Add to Cart Drawer on Collection Pages

Topic summary

A user successfully implemented an “Add to Cart” button on collection pages that triggers the cart drawer to open, similar to product page functionality.

Solution provided:

  • Replace code in product-grid-item.liquid with specific markup for variant assignment
  • Add JavaScript snippet to trigger the cart drawer on click
  • The implementation keeps users on the collection page while updating cart count and opening the drawer

Follow-up issues raised:

  • One user requested help disabling the add to cart button after a product is added
  • Another reported the button shows but doesn’t actually add items to cart
  • A technical correction noted the <SCRIPT> tag should be placed in collection-grid outside the product loop, not in product-grid-item, to avoid duplicate scripts for each product
  • Additional request for guidance on adjusting padding for mobile and desktop views

The discussion remains open with unresolved questions about button state management and styling adjustments.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

Can you please tell me how to disable the add to cart button after the product is been added to the cart.. Please its a request.