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.
you need have way keep excange rate dollar , pound , ruppee in database or sort of way.(flags need turned on @ stage)
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
Post a Comment