Skip to content

Conversation

burbma
Copy link

@burbma burbma commented May 21, 2023

The add to cart button doesn't do anything when there is no variant selected which makes sense because you need to pick a size when buying a sweatshirt. However the button looks like it's an active button and looks like it's being clicked. This change makes the UI reflect the underlying reality of the button not doing anything.

Note that I'm brand new to Medusa and e-commerce in general, I won't be offended if I'm told I'm off base. For example, perhaps there are products that don't have variants, what happens then? Given that the seed data has variants this provides for a better first time experience but perhaps isn't fully correct.

The add to cart button doesn't do anything when there is no variant selected which makes sense because you need to pick a size when buying a sweatshirt. However the button looks like it's an active button and looks like it's being clicked. This change makes the UI reflect the underlying reality of the button not doing anything.

Note that I'm brand new to Medusa and e-commerce in general, I won't be offended if I'm told I'm off base. For example, perhaps there are products that don't have variants, what happens then? Given that the seed data has variants this provides for a better first time experience but perhaps isn't fully correct.
@vercel
Copy link

vercel bot commented May 21, 2023

@burbma is attempting to deploy a commit to the medusajs Team on Vercel.

A member of the Team first needs to authorize it.

@samkit5495
Copy link

@VariableVic can we get some help here on merging this, thanks

@luluhoc
Copy link
Contributor

luluhoc commented Nov 8, 2023

merge this!

@willbouch
Copy link
Contributor

Thanks for the contribution! I apologize for the very late response. It looks like this component was refactored and the problem does not exist anymore. Will be closing the PR for now :)

@willbouch willbouch closed this Aug 28, 2025
@burbma burbma deleted the disable-add-to-cart-no-variant branch August 28, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants