Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted May 31, 20186 yr When a user goes to the store they can change the currency using this widget: How can I change it programmatically? I figured it's not a database setting as if I set the currency in one browser, it goes back to the default in a different browser. I also don't see any cookies about currency setting. Is it using $_SESSIONs? I just want to be able to manually change from the default currency if the user is from the U.K. for example.
June 1, 20186 yr Solution See template chooseCurrency {{$memberCurrency = ( ( isset( $_SESSION['currency'] ) and in_array( $_SESSION['currency'], \IPS\nexus\Money::currencies() ) ) ? $_SESSION['currency'] : \IPS\nexus\Customer::loggedIn()->defaultCurrency() );}}
January 14, 20214 yr I just want to be able to manually change from the default currency if the user is from the U.K. for example. @Tom S. I need this too, can you submit the code? Thanks for your help.
January 14, 20214 yr @Tom S. I need this too, can you submit the code? Thanks for your help. The solution was already posted here