# How to refresh the SalesChannelContext?

**URL:** https://forum.shopware.com/t/how-to-refresh-the-saleschannelcontext/63981
**Category:** Programming (EN)
**Created:** [14. Januar 2020 um 07:31 UTC](https://forum.shopware.com/t/how-to-refresh-the-saleschannelcontext/63981 "2020-01-14T07:31:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![abinjohnedamana](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/abinjohnedamana/32/17378_2.png) [@abinjohnedamana](https://forum.shopware.com/u/abinjohnedamana)
#### Post date: [14. Januar 2020 um 07:31 UTC](https://forum.shopware.com/t/how-to-refresh-the-saleschannelcontext/63981/1 "2020-01-14T07:31:41Z")

</div>

Hi

i am using ‚SalesChannelContextSwitchEvent‘&nbsp;

I want to do some modifications when the currency changes.

When I am changing USD to Euro

$event-\>getSalesChannelContext()-\>getCurrency(); function returns the USD not Euro.

How to refresh the SalesChannelContext? i want to get the &nbsp;Euro from $event-\>getSalesChannelContext()-\>getCurrency();

When I am changing USD to Euro.
