saleor / saleor-storefront

A GraphQL-powered, NextJs-based, PWA storefront for Saleor. IMPORTANT: This project is [DEPRECATED] in favor of saleor/react-storefront soon to become our default demo and storefront starter pack.
https://demo.saleor.io/
BSD 3-Clause "New" or "Revised" License
771 stars 680 forks source link

Checkout does not respect shipping countries #395

Open petedermott opened 5 years ago

petedermott commented 5 years ago

What I'm trying to achieve

When trying to restrict shipping to specific countries then the shipping address page (/checkout/shipping-address/) will show and allow selection all of the countries, rather than those that are specified in the Shipping Zones fields.

If you pick a country that is not covered by a shipping zone you do not receive an error but you cannot continue to the next step.

Steps to reproduce the problem

  1. Clone the 0.6.0 release of the storefront
  2. Clone the 2.7.0 release of the saleor core
  3. Install both as normal
  4. Populate the DB
  5. From the django dashboard remove some shipping zones
  6. Add items to the cart and checkout through the 2.0 storefront

What I expected to happen

Either:

  1. You should not be able to select a country that you won't ship to or
  2. You should get an error that you do not ship to that country when it is selected

System information Operating system: Windows 10 / WSL Ubuntu 18.04 Browser: Firefox 67.0.4 (64-bit)

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

maarcingebala commented 4 years ago

When time, we need to investigate if this is a frontend-only problem or we're getting incorrect data from backend in this case.