-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: hooks of LineItem are missing #10086
Comments
Hi there, we are adding hooks as necessary, so we might not have gotten to it just yet. I cannot say when we'll be able to look into it though, so we'd be more than happy if you can just open a PR adding the hooks. Thanks! |
Hi @sradevski, I have been working on the workflow However, after several hours working on it, I noticed that achieving my goal won't be possible at the moment due to the impossibility of supplying the workflow with additional_data like in Looking forward for future fixes about it. |
@dupuisbenjamin the way you extend models is different in V2, please check https://docs.medusajs.com/learn/customization/custom-features. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 3 days. |
This issue was closed because it has been stalled for 3 days with no activity. |
Package.json file
Node.js version
v20.17.0
Database and its version
PostgreSQL v10.4
Operating system name and version
Windows 11
Browser name
No response
What happended?
I'm trying to extend the LineItem on an order. While there is no documentation for extending the Order module, I've found a similar one for the Cart. Here is the link
I'd like to consume the lineItemCreated workflow hook, similarly to step 4. I've checked the https://docs.medusajs.com/learn/advanced-development/workflows/workflow-hooks and the reference https://docs.medusajs.com/resources/medusa-workflows-reference, and couldn't find any hooks that allows you to add additional_data to a line_item.
Expected behavior
According to the reference guide and to the github
I am expecting to be able to do the following
Actual behavior
Error that there is no hook on addOrderLineItemsWorkflow
Link to reproduction repo
The text was updated successfully, but these errors were encountered: