• Online Demo
  • 30-day Free Trial
  #1  
Old 02-08-2011, 09:20 AM
DeanoC DeanoC is offline
Junior Member
 
Join Date: Jan 2011
Posts: 10
Default Get Prices in a particular currency

Hi,
Is there anyway of getting the price in a particular currency? I can get the price via getPackage but seemingly on in the default currenct and FormatCurrency doesn't seem to take a currency code anywhere (which seem odd?).
There are several references in the docs to the 'current blesta currency' but I want this to be displayed before a customer has registered.
This is for a sales sheet which I want to display in a user selected currency and get the price direct from blesta so only one place to update.

Thanks,
Deano
Reply With Quote
  #2  
Old 02-08-2011, 12:03 PM
DeanoC DeanoC is offline
Junior Member
 
Join Date: Jan 2011
Posts: 10
Default

Some digging indicates getpackage responds to a 'currency' input field but getpackages doesn't.

Worse case I could call getpackages and the loop through each package with getpackage with the currency set but this sounds very slow

Has to be a better way?

Deano
Reply With Quote
  #3  
Old 02-08-2011, 03:58 PM
Paul's Avatar
Paul Paul is offline
Blesta Developer
 
Join Date: Apr 2006
Location: Wherever I go, there I am.
Posts: 1,464
Send a message via AIM to Paul Send a message via MSN to Paul
Default

That's probably the way to do it. I suspect the API was not updated for that method after multi-currency was added.
__________________
Paul
Misc Stuff Guy

Blesta
Professional Billing
www.blesta.com
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with paypal and multi currency filip General Discussion 18 09-07-2009 12:40 AM
Currency selection abluegrape Feature Requests 2 10-21-2007 02:43 AM
Multi Currency - Why False Claims? Matt-WHMCS General Discussion 2 08-26-2007 06:12 AM
abbility to add custum currency naja7host Feature Requests 1 07-15-2007 03:13 AM


All times are GMT. The time now is 12:05 PM.