medusajs / medusa

Building blocks for digital commerce
https://medusajs.com
MIT License
24.49k stars 2.4k forks source link

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

Open WoodlegDev opened 4 months ago

WoodlegDev commented 4 months ago

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

WoodlegDev commented 1 month ago

issue still exists

scriptorShiva commented 2 weeks ago

@WoodlegDev Is this issue resolved? If yes, how??

WoodlegDev commented 2 weeks ago

@scriptorShiva unfortunately not. We implemented for the time custom logic, but it's not optimal. It's not critical for us anymore - but in my experience help is better on the discord