inventory
inventory copied to clipboard
Checked for not empty instead of not null because sometimes it returns empty array.
Not getting Store pickup enabled on checkout and not getting list of stores to pickup after entering zipcode/pincode in input box while checkout
Description (*)
Due to invalid condition check and no condition check, wrong condition is being added in searchcriteria stores list was not getting results.
Fixed Issues (if relevant)
- magento/inventory#3079: Not getting storepickup option on checkout because of wrong condition getting added in searchcriteria object.
Manual testing scenarios (*)
- Create 1 or more new sources with Use as Pickup Location option enabled in it.
- Create new stock for default website using newly created sources
- Assign products to newly created sources and add inventory in it so it can be available for pickup.
- Enable In store Delivery shipping method from Store Config/Sales/Delivery Methods.
Questions or comments
Contribution checklist (*)
- [x] Pull request has a meaningful description of its purpose
- [x] All commits are accompanied by meaningful commit messages
- [ ] All new or changed code is covered with unit/integration tests (if applicable)
- [ ] All automated tests passed successfully (all builds are green)
@magento run all tests
@magento run all tests
@magento run all tests
Hi @ankurvr during testing PR was found an issue: exception error is appear when product is assigned to two sources Manual testing scenario:
-
Create two new sources with Use as Pickup Location option enabled in it.
-
Create new stock for default website using newly created sources
-
Assign products to newly created sources
-
Enable In-Store Delivery shipping method
-
Add product to cart and go to checkout
-
Click on Pick In Store Tab
-
Click Select Store button under Store section
-
Enter zip code in Select Store pop-up window
Result:
:x: Exception error appear
Report ID: webapi-5f186daf9d056; Message: Notice: Undefined index: austin in /var/www/html/magento2pr/ext/magento/inventory/InventoryInStorePickup/Model/SearchResult/Strategy/DistanceBased.php on line 78 {"exception":"[object] (Exception(code: 0): Report ID: webapi-5f186daf9d056; Message: Notice: Undefined index: austin in /var/www/html/magento2pr/ext/magento/inventory/InventoryInStorePickup/Model/SearchResult/Strategy/DistanceBased.php on line 78 at /var/www/html/magento2pr/lib/internal/Magento/Framework/Webapi/ErrorProcessor.php:207, Exception(code: 0): Notice: Undefined index: austin in /var/www/html/magento2pr/ext/magento/inventory/InventoryInStorePickup/Model/SearchResult/Strategy/DistanceBased.php on line 78 at /var/www/html/magento2pr/lib/internal/Magento/Framework/App/ErrorHandler.php:61)"} []
Could you take a look?
@engcom-Delta Sure will check and get back to you.
@engcom-Delta Can you please confirm these preconditions for using Multi sources and Pickup In-store?
-
Stores -> Configuration -> Catalog -> Inventory
-
Stores -> Configuration -> Sales -> Delivery Methods -> "In-store Delivery" -> (Search Radius) field have value