CoreShop Currency Context
For CoreShop to determine the current currency it uses a concept called context and context resolver.
||Used for testing purposes|
||check if a currency has been changed during a frontend request|
||Mostly this context will apply since it will get the currency based on the current country context|
These Contexts take care about finding the correct currency for the current request.
Create a Custom Resolver
A Currency Context needs to implement the interface
This interface consists of one method called
getCurrency which returns a
CoreShop\Component\Currency\Model\CurrencyInterface or throws an
To register your context, you need to use the tag:
coreshop.context.currency with an optional