Is there a way to set allowed_countries in V3?

I want to set the allowed countries of the cart programmatically on the website, because I want the user to select the country before adding products to the cart. Then the checkout country selector should only show the selected country.

There was an option in V2

Snipcart.api.configure('allowed_countries', ['CA']);

How can I accomplish this in V3?

Hi @christianzehetner, thanks for reaching out.

This is currently not available in v3, but I went ahead and added it to our backlog, so hopefully we can develop it soon.

If there is anything else we can help, please let us know.


Hey @nelitow. Tank you for adding it to the backlog.