Jump to content

Question

Posted

I have recently moved from WHMCS to Blesta, and have a bit of a snag, 

With WHMCS I was provided a script for remote page currency, this allowed the currency exchange to be pulled from the database and then worked out using php, so the price in whmcs and on the php page would be the same. Although have no idea how I could do this with blesta.

All I need is for the prices to be displayable on a PHP page using the same exchange rate as blesta.

Any help would be appreciated.

 

Thanks

2 answers to this question

Recommended Posts

  • 0
Posted

I'm not sure how familiar you are developing with Blesta, but the Currencies model is probably what you are looking for.  It has a convert($amount, $from_currency, $to_currency, $company_id) method to convert an amount from one currency to another based on the exchange rate.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...