-
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Describe the bug
Hi!
I have a customer who occasionally needs to create orders manually in the Craft admin. However, when they try to add a line item the error: “Couldn’t recalculate order.” appears.
In the logs we get:
TypeError: craft\commerce\models\LineItem::setPrice(): Argument #1 ($price) must be of type int|float, null given, called in /var/www/html/vendor/craftcms/commerce/src/models/LineItem.php on line 920 and defined in /var/www/html/vendor/craftcms/commerce/src/models/LineItem.php:480
When adding the line items, the price is always displayed as 0.00, even though each item has a valid price. I suspect this is related to the issue.
Steps to reproduce
- Create a manual order in Craft commerce
- Select a line item
- Hit "Add"
- Error happens
Craft CMS version
Craft Pro 5.8.22
Plugin version
3.0.14
Multi-site?
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels