Timeline for Hook_add_to_cart_form_alter() actions works only if product is on stock
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 3, 2018 at 13:28 | comment | added | Lub | Yes those values are from module Commerce Product Comparison - $exists check whether product is not already existing in comparision list and $full check whether there are less then 4 products in comparison list. But my problem is not the button being greyed out, but when add to cart button is greyed out my button stops working (despite not being greyed out on it's own) | |
May 3, 2018 at 13:17 | comment | added | Clive♦ |
'#disabled' => $exists || $full - what value do $exists and $full have in both contexts? Have you checked that they are what you expect?
|
|
May 3, 2018 at 12:24 | history | asked | Lub | CC BY-SA 4.0 |