this code works, but not with all store countries.
I get the same error as before.
But now I found out, that there seems to be a bug with saving these informations like country in the store settings.
When you Click “Update Settings” there is no error but f.e. the country is not saved.
Can you please test this?
you won't see anything in a screenshot.
Please use your test environment with a seller account and go to Dashboard->Settings->Store.
Try to change the country to “Burundi” foe example and then click “Update settings”.
Then you will see, that there is no error message, but the changed country is not saved.
Even if you fill out some other fields, which may be mandatory. However, there is no message or sign that they were mandatory :-(.
So this has nothing to do with my initial question regarding “Get sellers country”. This now seems to be a bug, please let me know if I shall open a new thread for this.