Currencies
Currency Context
public function fooAction()
{
$currency = $this->get('sylius.context.currency')->getCurrency();
}Getting the list of available currencies for a channel
public function fooAction()
{
// If you don't have it, you can get the current channel from the container
$channel = $this->container->get('sylius.context.channel')->getChannel();
$currencies = $channel->getCurrencies();
}Currency Converter
Switching Currency of a Channel
Displaying Currencies in the templates
Last updated
Was this helpful?
