commercetools / sunrise-spa

SUNRISE shop template as a single-page application
https://sunrise-spa.now.sh
Apache License 2.0
51 stars 78 forks source link

Fetch countries/languages/currencies from ct project #147

Open lauraluiz opened 5 years ago

lauraluiz commented 5 years ago

Project settings endpoint is available in GraphQL, but it requires an additional permission to fetch (view_project_settings) which is not selected when choosing the template SPA in the MC. As it is quite error prone, we should consider trying to fetch it, but if it fails it should fallback to the configured version in sunrise.config.js.

zeina-idris commented 5 years ago

A nice to have feature, not important if users are already comfortable by manually setting these values.