Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Tom S. Posted May 31, 2018 Posted May 31, 2018 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.
Solution newbie LAC Posted June 1, 2018 Solution Posted June 1, 2018 See template chooseCurrency {{$memberCurrency = ( ( isset( $_SESSION['currency'] ) and in_array( $_SESSION['currency'], \IPS\nexus\Money::currencies() ) ) ? $_SESSION['currency'] : \IPS\nexus\Customer::loggedIn()->defaultCurrency() );}} Tom S. and modman 2
modman Posted January 14, 2021 Posted January 14, 2021 On 5/31/2018 at 11:24 PM, Tom S. said: 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.
Daniel F Posted January 14, 2021 Posted January 14, 2021 30 minutes ago, modman said: @Tom S. I need this too, can you submit the code? Thanks for your help. The solution was already posted here
Recommended Posts