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
I am very close now - thanks for all your help so far. As before, I am able to create orders that are split between sellers. When I login as a seller or choose a seller in the admin interface, then I select an order and click on fulfil, then 'mark as shipped', I now get that the order cannot be found, e.g:
No Order with the id '7' could be found
However I am able to fulfil an order if I'm on the default channel, so I guess it's a permissions issue.
To Reproduce
Create two sellers and add a product to each of them through the GraphQL frontend (as specified in the multivendor.plugin README.md
Login with a customer
Add items to an order (one from each seller)
Set the order shipping address
Query the appropriate shipping methods
Set the order shipping methods for each different seller
Checkout the order
Login to the admin interface and select either one of the seller's channels
Select the newly created order
Click on fulfil order and give it a fufilment method and tracking code
Click on mark as shipped.
Expected behavior
Order will be in a partially shipped state (for the seller who marked it as shipped)
Environment (please complete the following information):
@vendure/core version:2.0
Nodejs version: 19.2
Database (mysql/postgres etc): postgres
Additional context
Running the dev-server on the master branch of 2.0
The text was updated successfully, but these errors were encountered:
I have had a slightly deeper look into this and I think I know what the problem is.
From tracing through what happens; when a new order is initially created it is provided with an id (say 16), and associated with the default channel.
Once a user goes through checkout, new aggregate orders are created for each seller that that has a product in the order (e.g, for two products, aggregate orders with Ids 17 and 18 are created).
In the admin interface, when logged in as a seller (or with the seller channel selected), when the option to 'mark as shipped' is provided, it will attempt to find the original order id (i.e. 16) rather than the aggregate order id (17) and so fails with the reported error.
Describe the bug
I am very close now - thanks for all your help so far. As before, I am able to create orders that are split between sellers. When I login as a seller or choose a seller in the admin interface, then I select an order and click on fulfil, then 'mark as shipped', I now get that the order cannot be found, e.g:
However I am able to fulfil an order if I'm on the default channel, so I guess it's a permissions issue.
To Reproduce
Expected behavior
Order will be in a partially shipped state (for the seller who marked it as shipped)
Environment (please complete the following information):
Additional context
Running the dev-server on the master branch of 2.0
The text was updated successfully, but these errors were encountered: