You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from Craft 4, adding donations to the cart doesn't work anymore, neither in the frontend nor in the backend.
In the frontend, when I submit the the donation form to commerce/cart/update-cart nothing happens, the cart is still empty, also no error message.
In the backend it's also not possible to add a donation to an order via the "Add a line item" functionality on the order detail page. The donation line item cannot be selected and the "Available?" column has no checkmark. When the order site is not my primary site I don't even see the donation item in the list 🤔
What happened?
Description
After upgrading from Craft 4, adding donations to the cart doesn't work anymore, neither in the frontend nor in the backend.
In the frontend, when I submit the the donation form to commerce/cart/update-cart nothing happens, the cart is still empty, also no error message.
In the backend it's also not possible to add a donation to an order via the "Add a line item" functionality on the order detail page. The donation line item cannot be selected and the "Available?" column has no checkmark. When the order site is not my primary site I don't even see the donation item in the list 🤔
I found that the "getIsAvailable" method on the Purchasable class returns false because in my database the column "inventoryTracked" of the commerce_purchasables_stores table contains "1" for the entry corresponding to the donation purchasable. Re-saving the donation settings through the backend also doesn't do anything because it skips the current (and in my case only) store when setting the default values.
Steps to reproduce
Expected behavior
After upgrading from Craft 4, it should still be possible to add a donation to the cart.
Actual behavior
It's not possible to add a donation to the cart.
Craft CMS version
5.5.6.1
Craft Commerce version
5.2.9
PHP version
8.2.26
Operating system and version
No response
Database type and version
MySQL 8.0.36
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: