Skip to content

Setting Address for Multivendor Order #2167

Closed Answered by tlodge
dylviz asked this question in Q&A
Discussion options

You must be logged in to vote

I kept the outer condition but changed the inner to look at shippingLines rather than lines - full method:

 async onTransitionStart(fromState, toState, data) {
        const { ctx, order } = data;
        if (fromState === 'AddingItems' && toState === 'ArrangingPayment') {
            for (const line of data.order.shippingLines) {
                if (!line.shippingMethodId) {
                    return 'not all lines have shipping';
                }
            }
        }

I didn't change anything else. I have convinced myself that this could be the right fix, but not 100% sure it won't break something else. Found another anomaly that I'll add as a new discussion so I don't hijack this …

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@tlodge
Comment options

@dylviz
Comment options

@tlodge
Comment options

Answer selected by dylviz
@tlodge
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants