Hi all!
I am new to drupal/ubercart. I found it quite intresting in configuring ubercart. I am now struck with currencies. It shows USD as default currencies. I want to change that to INR. Can anyone help me in that...
Thanks in advance..
|
UbercartOne cart to rule them all... |
|
| Donate | Affiliates | Sponsors | ||
Currency
Submitted by jovemac@drupal.org on Fri, 08/22/2008 - 09:15
Hi all! I am new to drupal/ubercart. I found it quite intresting in configuring ubercart. I am now struck with currencies. It shows USD as default currencies. I want to change that to INR. Can anyone help me in that... Thanks in advance..
Check out the Store settings section for the Format settings form. You should be able to adjust it there in a Currency format fieldset. Is there a way user can switch currency? E.g.: say from dollar to pound and as it switches the amount of products is changed on the basis of current currency value. I did something like this for our current site which lets users view products in different currencies. Gotta say though, it's not a pretty solution Works like this: 1. Let user choose currency and set a cookie so you can identify the chosen currency after the fact 2. In sites/default/settings.php, I have: <?php... which tells Drupal to look for a different products tables depending on the currency set. 3. The table uc_products is duplicated once for each currency (_cad_uc_products, _eur_uc_products, _usd_uc_products), with only the prices changing. 4. The variable_set() and variable_get() functions were altered in such a way that when any ubercart-currency specific variables are requested, they are also forked (like the tables) and prefixed with the currency. This tricks Ubercart into thinking we're only dealing with one currency A bit messy, but it works and until there is a better solution it will have to do IMO there is now a better solution: Multi-Currency Support, read the README.txt, otherwise you won't get it working! Additional might be IP-based determination of a visitor's Country of interest for you which was also kindly contributed by TR few days ago. Good luck and report your experiences IMO there is now a better solution: Multi-Currency Support, read the README.txt, otherwise you won't get it working!
Additional might be IP-based determination of a visitor's Country of interest for you which was also kindly contributed by TR few days ago. Good luck and report your experiences Looks like a nice module - too bad it wasn't available when I was developing this functionality for our site. One thing I don't like about it is how it determines which currency to use (options are: profile field or ip-based). We needed to let customers switch currencies on the fly, without editing any profile settings or restricting them to a currency based on their IP. What I would love to see is *proper* multi currency handling built into Ubercart The Multicurrency module does provide a block you can use to allow the customer to choose / switch on the fly. You can use *any* method you want to select the currency; the provided block is an example showing how a simple UI select component can be used to do the currency switching. In any case, the determination of which currency to use is outside the scope of this module, so you're mistaken that this module restricts you to only two methods. The IP-based determination of country is a different module, completely separated from the multi-currency function. They are two distinct non-interacting modules. But like with the block described above, IP is another way to determine which currency to use. Using the Profile module is yet another way. But you're not required to use any of these methods. BTW, I do consider this a *proper* multi-currency handler, which can be integrated into core Ubercart as-is. I'm happy to discuss any of the details, but may I suggest the thread at http://www.ubercart.org/contrib/6102 as a more appropriate place. Wow, looks like again a great contrib by TR. //Check out the Store settings section for the Format settings form. You should be able to adjust it there in a Currency format fieldset.// Tried the same. But couldnt edit the currency format. Its not allowing to edit. Please advise.
|
|
Joined: 08/22/2008