frontends icon indicating copy to clipboard operation
frontends copied to clipboard

Ability to fetch all countries using the useCountries composable

Open niklaswolf opened this issue 3 months ago • 1 comments

Describe the feature

Currently the useCountries composable only returns a subset of countries, whatever is configured as the default page-size for the API (in most cases this should be 100). It is also not possible to change the API-call using the composable, because you can not pass criteria (or at least a subset like pageSize). It would be nice to have a way to fetch all countries using the composable (doesn't have to be the solution to pass criteria!).

Description

Acceptance Criteria

No response

Additional information

  • [x] Would you be willing to help implement this feature?

Checks

niklaswolf avatar Oct 01 '25 07:10 niklaswolf

I have found that this is a limitation in Shopware itself. You can configure the limit in your z-shopware.yaml:

shopware:
	api:
		store:
			max_limit: 500

niklaswolf avatar Oct 01 '25 11:10 niklaswolf