Users are seeking to add an “Add to Cart” button directly on collection pages for the Shopify Prestige theme, allowing customers to add products without leaving the collection view.
Initial Solutions:
Early attempts involved custom HTML forms and jQuery-based code snippets, but these often failed to work properly or became outdated with theme updates.
Issues included buttons not being clickable, items not appearing in cart until page refresh, and compatibility problems with newer Prestige versions.
Working Solution (by snde, post #17):
Add button markup to snippets/product-item.liquid after the color swatch section
Insert vanilla JavaScript function _addMeToCart() in assets/custom.js
Uses Shopify’s Cart API (/cart/add.js) with fetch requests
Includes data-action="open-drawer" to trigger the cart drawer automatically
Successfully adds items and opens side cart without page refresh
Ongoing Challenges:
Variant selection: Multiple users want to add variant selectors before adding to cart (sizes, colors)
Button alignment: Requests for buttons to align evenly at bottom of product cards
Conditional display: Hiding buttons for sold-out or unavailable products
Styling: Making buttons appear on hover instead of always visible
Status: The vanilla JavaScript solution works for basic single-variant products, but variant selection and advanced customization remain unresolved.
Summarized with AI on November 11.
AI used: claude-sonnet-4-5-20250929.
Q1. I would be REALLY grateful if anyone could post how to “add to cart” button to the collection level - (Prestige THEME)
Q2. I would like the product in the collection level to be added to the cart (while staying on the collection page)
I have used this code I found so far: (the formatting/style is not the same as my site though., it takes them to the checkout rather than just adding to the checkout too)
My store is under Prestige theme and I was wondering if any of you have managed to add ‘add to cart’ button in the collection page.
Please please don’t ignore this
I’ve tried this code, and it adds the “add to cart” button to my collections page, but when I click it, it doesn’t add items to my cart or anything. It’s un-clickable. Any help/advice? I haven’t done any other code customization to my store.
Have you tried it with the latest update? Although I believe this is achivabel with JS itself instead of jQuery, I added jQuery to the theme for testing purposes and it still did not work.
Maybe its because I am trying to do it in the cart drawer?
Thanks for that solution. It worked great. One last addition would be really complete. What would we add to get the button to display at the bottom of the collection container so that it always lines up evenly when displaying? At present it will line up after the text strings. which are not always the same. Thanks in advance for any help. B.
thanks for the code, however it shows the side cart after clicking, but the product isn’t shown, when I refresh the page it is then shown in the cart, any help on this?