Closed brent-hoover closed 6 years ago
@zenweasel
This is most prob. because how the layout is implemented in Reaction.
So if I order 1 product from the Primary shop and 1 from the marketplace shop, this is what I get in the Order Summary window(The one you get when you click on a order from Orders's Menu in the Action bar)
Order Part 1
->
and below that the same order again.
Order Part 1
(continued) ->
Even the subtotal/payment calculated in these is incorrect. Do we want to display something like below? Order Part 1 -> summary/invoice/shipping of items from Primary Shop Order Part 2 -> summary/invoice/shipping of items from Marketplace Shop
Or we want just a single order which combines all the orders?
A marketplace admin should just see a single order that combines all the orders for now
@zenweasel Right now the marketplace admin only sees only the items belongs to his shop in the order. While the primary owner sees both the items in the order.
Yes, that is the expected/desired behavior
Isn't that confusing, because the Primary Owner can't "Approve/Capture" the item of the Marketplace Shop(I approved/captured the payment as primary owner and then when I login form the market place I again get the option to approve/capture the item.)
It's the what we came up to when we finished this "alpha" version of the marketplace functionality. It's far from optimal but it worked for now.
@zenweasel This issue is a timing issue. When a order is updated, a hook is run to remove the old OrderSearch
doc and add the new one. Since the orders is displayed twice, it is updated twice(and the hook runs almost together).
In general the order of execution is
remove doc
insert doc
remove doc
insert doc
but in the rare case it becomes
remove doc
remove doc
insert doc
insert doc
You get the error in the issue.
A easy way to fix this would be to change the insert
operation to a upsert
operation.
Also for the order being displayed twice. I checked and it is there since at-least release-1.6
.
Should I proceed with just changing the insert
to upsert
?
Issue Description
Receive an error in the server console when shipping an order in the marketplace. Notification does not appear to be sent and order is not marked "shipped"
Steps to Reproduce
Versions