Hello guys, why does the add to cart button appear disabled?
In magento I have the stock correctly configured
5 Replies
Hi @jeanpier92 π , I think I'm looking at a VSF2 project so I'll base my answer off of that. There are several reasons why that button would be disabled. Let's go down the rabbit hole π
In the SimpleProduct Component if you find the button you'll see an attribute that determines if the button is disabled or not with a function being called . . .
In the same file you'll see the
canAddToCart
comes from the useCart
composable . . .There you'll find the reasons why the add to cart button might be disabled:
thank you so much!!