jsp - Currency conversion in online shopping website -


in online shopping website have. how can change currency , forth different currency rates based on user's selection preference or choice?

for example:

suppose have user uk items price must converted in pound (£) when displayed. if user want see item price in rupee , if user india need automatically changed rupee,

anybody can explain?

i think first need setup localizations. should detect when user logins or press country , change price rate. accordingly have following once change of user noticed.

  1. you need have way keep excange rate dollar , pound , ruppee in database or sort of way.(flags need turned on @ stage)

  2. when localization activated recompute price based on flag let if usa flag on. math , return items user , same other countries want .

    itemprice * exchagerate = the actual price of country rate

alloha .


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -