Skip to content
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

Add an ability to Mark Orders placed with Store Pickup #2030

Closed
maghamed opened this issue Feb 10, 2019 · 3 comments
Closed

Add an ability to Mark Orders placed with Store Pickup #2030

maghamed opened this issue Feb 10, 2019 · 3 comments

Comments

@maghamed
Copy link
Contributor

maghamed commented Feb 10, 2019

To prevent Race Condition we have to have an ability to segregate Orders placed with In Store Pickup delivery method out of other orders. This should be done with newly created ExtensionAttribute

https://github.com/magento-engcom/msi/wiki/Support-of-Store-Pickup-for-Multi-Source-Inventory#Race-condition-between-orders

**Note: Maybe makes sense to add extension attribute to Order object and specify Source which should be used to fulfill the order OR we can detect the Source checking whether Shipping address matches the addresses of our Sources.
@maghamed maghamed added this to the MSI Part III milestone Feb 10, 2019
@toddhainsworth toddhainsworth self-assigned this Feb 11, 2019
@toddhainsworth
Copy link
Member

Hi @maghamed,

I'm starting to look at tackling this one! Hoping you can confirm or correct my understanding of the requirements?

From what I understand, we want to give Store Pickup orders a higher priority in the SSA by indicating that is a Store Pickup order and modifying aspect(s) of the SSA to take this into account when fetching stock.

To accomplish this we first need to add an extension-attribute to the order entity that says whether the order was placed using the Store Pickup option. I'm not familiar with the Store Pickup mechanism yet and how it's implemented (possibly because it's in active development? Re: #2036 😄 ) so I'm wondering if this is indicated by the shipping method used rather than by an extension attribute?

Another extension-attribute should also be added to the order entity that holds the Source that the product(s) should be sourced from (are we going to/have we already handled products that are only available in separate Sources?).

I think this issue might be better tackled after the Store Pickup mechanism has been established, what are your thoughts on this?

@rodrigowebjump
Copy link
Member

Hi @toddhainsworth,

I will try to help. @maghamed please validate our understanding :)

  • The extension attribute must save the source selected by the customer (match shipping address from source vs order is a weak relationship, it can be edited)

  • Modification in SSA to prevent Race condition: The change in the SSA is not for just store pickup orders. It should be modified to subtract all store pickup ordered quantities from each source before processing. So you will avoid an unnecessary stock transfer.
    In this example (https://github.com/magento-engcom/msi/wiki/Support-of-Store-Pickup-for-Multi-Source-Inventory#Race-condition-between-orders), it's supposed that Customer 2 selected pickup order from Source A.

@ishakhsuvarov
Copy link
Contributor

Merged in #2082

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants