Skip to content

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
Collaborator

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

@engcom-Hotel
Copy link
Collaborator

@magento run all tests

@engcom-Hotel
Copy link
Collaborator

@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests, Unit Tests, WebAPI Tests

@engcom-Hotel engcom-Hotel self-requested a review November 19, 2025 11:51
Copy link
Collaborator

@engcom-Hotel engcom-Hotel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @ankurvr,

Thank you for your contribution!

We have reviewed this PR and it seems some functional tests are failing due to this change.

Also we have tried to run some existing functional tests without PR branch it we can see the "In Store pickup" option for e.g.:

  • StorefrontLoggedInCustomerPickupInStorePreselectedTest
  • GuestCustomerPlaceOrderWithPickupInStoreMethodWithGoogleAPIEnabledTest

Please look into it.

@engcom-Hotel
Copy link
Collaborator

Hello @ankurvr,

Have you got a chance to look into this review comment #3080 (review)

Thank you

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

Projects

Status: Changes Requested

Development

Successfully merging this pull request may close these issues.

4 participants