Hi guys,
I asked simmilar question before, but now it's related, but a bit different.
My question is: What would be the best place (strategy) for this to work.
When user hits the website - and we can identify where he comes from, and what currency to apply - where/how should I implement this?
LIke first I thought of keep in in Master razor as a code snippet. - Because this is supposed to run only in the front-end. And /Admin must not be affected by this.
But I don't think that this should be a very elegant solution.
Than Global.asax Session_Start() might have been a good idea. - But this affects the /Admin, and as I said, I don't want to mess with anything that might come in a way before page load kicks in. So this did not really worked out as I expected.
Did not try Application_Start() in Global.asax but not sure if I can change currency while beying there, or whether that could be a great place for such code.
Otherwise have to think of something else, I guess.
Am hoping to hear some ideas on how you would implement this?
Bonus question: When managing languages, I doun't think that Subdomain like dk.xyz.com should be any different than xyz.com/da-dk/ right?
Because I find it a bit easyer to reddirect to a subdomain rather than a ISO locale, but wanted to hear your oppinion.