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

Checked for not empty instead of not null because sometimes it returns empty array. #3080

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

ankurvr
Copy link
Member

@ankurvr ankurvr commented Jun 10, 2020

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)

  1. Not getting storepickup option on checkout because of wrong condition getting added in searchcriteria object. #3079: Not getting storepickup option on checkout because of wrong condition getting added in searchcriteria object.

Manual testing scenarios (*)

  1. Create 1 or more new sources with Use as Pickup Location option enabled in it.
  2. Create new stock for default website using newly created sources
  3. Assign products to newly created sources and add inventory in it so it can be available for pickup.
  4. Enable In store Delivery shipping method from Store Config/Sales/Delivery Methods.

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • 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)

sidolov
sidolov previously approved these changes Jun 10, 2020
@sidolov
Copy link
Contributor

sidolov commented Jun 10, 2020

@magento run all tests

@sidolov
Copy link
Contributor

sidolov commented Jun 10, 2020

@magento run all tests

@sidolov
Copy link
Contributor

sidolov commented Jul 16, 2020

@magento run all tests

@engcom-Delta
Copy link

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.
    image
    image

  • Create new stock for default website using newly created sources

  • Assign products to newly created sources
    image

  • 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:
❌ 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)"} []
image

Could you take a look?

@ankurvr
Copy link
Member Author

ankurvr commented Jul 23, 2020

@engcom-Delta Sure will check and get back to you.

@ankurvr
Copy link
Member Author

ankurvr commented Jul 23, 2020

@engcom-Delta Can you please confirm these preconditions for using Multi sources and Pickup In-store?

  1. Stores -> Configuration -> Catalog -> Inventory

Screen Shot 2020-07-23 at 11 01 56 AM

  1. Stores -> Configuration -> Sales -> Delivery Methods -> "In-store Delivery" -> (Search Radius) field have value

Screen Shot 2020-07-23 at 6 59 20 PM

@sidolov sidolov changed the base branch from 1.2-develop to develop November 11, 2021 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants