inventory
inventory copied to clipboard
In-Store pickup store selection wrongly loads all available sources
If Magento has several sources associated with the website stock, and a configurable option is associated with only some of these and not all, if it is put in the cart, during checkout only the sources/stores where it is associated should be visible for it to be picked up. It's instead showing all sources of the website stock. On the contrary, if the same product is added to the cart but from its simple product page, not as an option of the configurable, the list of stores/sources in the checkout will reflect its associations with sources.
I've tracked down the issue to vendor/magento/module-inventory-in-store-pickup-frontend/view/frontend/web/js/view/store-selector.js at line 171, qty_options is null when there's a simple product, and has values when the product is a configurable option. But this should not affect the availability of store selections, it should reflect the association that the product has
Preconditions (*)
- Magento 2.4.3-p3
- PHP 7.4
Steps to reproduce (*)
- Have multiple sources associated with the website stock
- Associate a simple product with only one of the sources
- Have the simple product to be an option of a configurable product
- Add the simple product to the cart from the configurable page
- Click the "select store" button in the checkout when choosing the in-store pickup option
Expected result (*)
- Only the associated source should be visible in the popup
Actual result (*)
- All website sources are shown in the popup
Hi @ganeddact. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.
Add a comment to assign the issue: @magento I am working on this
- Join Magento Community Engineering Slack and ask your questions in #github channel.