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

Shipping Methods don't get listed for cart based on requirements #7162

Open
WoodlegDev opened this issue Apr 26, 2024 · 0 comments
Open

Shipping Methods don't get listed for cart based on requirements #7162

WoodlegDev opened this issue Apr 26, 2024 · 0 comments

Comments

@WoodlegDev
Copy link

Bug report

Describe the bug

When using the store/shipping-options/{cart_id} endpoint in our Medusa store, the API returns an empty array instead of listing the available shipping options based on the cart's requirements. This issue does not occur when using the store/shipping-options endpoint, which correctly displays all shipping options with their respective minimum and maximum cart requirements. Additionally, attempting to manually add a shipping option that does not meet the cart requirements correctly prevents the addition, indicating some functionality of the shipping logic works as intended.

Steps to reproduce the behavior

  1. Go to the Medusa store API endpoint store/shipping-options/{cart_id}.
  2. Observe that the response is an empty array despite existing shipping options that should match the cart's criteria.
  3. Compare with the results from the store/shipping-options endpoint where shipping options are displayed correctly.

Expected behavior

The expected behavior is that the store/shipping-options/{cart_id} endpoint should return a list of available shipping options that match the current cart's requirements, similar to how the generic store/shipping-options endpoint operates.

Screenshots

If applicable, add screenshots to help explain your problem.
image
image
image
image

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

1 participant