Dan Hennion
Dan Hennion

Reputation: 1745

Sylius - Setting Base Currency

I'm trying to change my Sylius base currency for EUR to USD. I've gone into the general settings section in the admin, and chosen USD. I've also edited my channel, and set the locale to EN.US, as well as the currency to USD in there.

I then went into the currencies section, and disabled all but USD. When I tried to disable EUR, I received a warning that this was the base currency and could not be disabled. So I went into the database (sylius_currency) and saw that both USD and EUR were set as enabled and as base. I disabled EUR, and also marked it as no longer being a base currency. Now I only have USD enabled and set as my base currency.

Then I cleared the cache, just in case.

Still, when I check the profiler I see EUR showing up as the base currency, and the every currency listed in both the backend and frontend are in EUR. How is this possible? A disabled currency no longer set as base is still being used instead of the enabled currency that is set to base. How can I get this change to come through correctly?

Upvotes: 1

Views: 1064

Answers (1)

Brett
Brett

Reputation: 2010

So there are a few things to check.

Run a composer install and it should ask you for your settings. This is sometimes hardcoded to a currency that doesn't exist for a channel. Update this.

Clear your cache with cache:clear

Carbide has mentioned he had to login as someone else before it would work.

Upvotes: 1

Related Questions