A
Alokaiβ€’13mo ago
jeanpier92

Hello guys, why does the add to cart button appear disabled?

In magento I have the stock correctly configured
No description
No description
5 Replies
rohrig
rohrigβ€’13mo ago
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 πŸ‡
rohrig
rohrigβ€’13mo ago
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 . . .
No description
rohrig
rohrigβ€’13mo ago
In the same file you'll see the canAddToCart comes from the useCart composable . . .
No description
rohrig
rohrigβ€’13mo ago
There you'll find the reasons why the add to cart button might be disabled:
No description
jeanpier92
jeanpier92β€’13mo ago
thank you so much!!
Want results from more Discord servers?
Add your server