Jump to content

Using two currencies in WHMCS with conversion base issue


Inna

Recommended Posts

Hello,
I'm using WHMCS in a localhost environment with two different currencies: 1) A 2) B
And A=10B at the moment.
I want to set all products prices to A, so that conversion base of B would be considered here to multiple each price to 10.

For example:
Product1: monthly 1A / Annually 10A
Product1 then should be monthly 10B and annually 100B.
For the first time when I click to recalculate and update prices, that works fine.
But the issue is when I change B's conversion base from 10 to 12. Then in this situation:
Product1: monthly would be 120B and annually 1200B!

That's the problem I have at the moment and I'm unfortunately unable to solve it.
I want to change B's conversion base to, e.g 12, so that the correct monthly price should be 12B and annually 120B.

Can you help me what should I do to overcome this problem?

Link to comment
Share on other sites

19 hours ago, Inna said:

Can you help me what should I do to overcome this problem?

is "A" your default currency in WHMCS ? if so, then what you're trying to do should work.

if I create a fake currency, BRI, and set it to 10x the default currency (in my case GBP)...

ORmV4cW.png

and then run "Update Product Prices" routine from the currencies page, the BRI price for a product is updated to 10x the GBP price...

Waa5Ho8.png

if I then change the currency rate to 12, run the product price updater again, the BRI prices are changed to 12x the GBP prices...

h68G96U.png

if "A" wasn't your default currency, then I don't think what you're trying to do will work without a lot of effort - but if it is, then it should work out of the box as I describe above.

Link to comment
Share on other sites

Hello @brian! and thanks for the reply, it worked 😄

My mistake was that I had set 'B' as the default currency and all changes I did were wrong due to this matter.

The client I'm working with is going to use only local currency but all prices are based on USD, in this case I need USD as default and base currency, and the local currency as to be affected by conversion base rate.

Also my client has only one gateway payment which only accepts local currency and he does not accept any USD or other currencies, but there's one another problem:

Clients can choose between USD and BRI, and suppose if I purchase 'Product A' in USD, I will be redirected to the gateway payment to pay only 1 USD! But if you refer to purchase Product A with BRI currency, you pay 10 BRI. Then we both have 'Product A' in our products list!

If I change default currency in database to BRI, then I think all prices would be messed up again.

How to only let clients purchase with BRI currency? I mean no one be able to use USD in this case?

Does hiding currencies from template work? Or other things should be done?

Thanks in advance

Link to comment
Share on other sites

On 20/08/2019 at 12:07, Inna said:

Clients can choose between USD and BRI, and suppose if I purchase 'Product A' in USD, I will be redirected to the gateway payment to pay only 1 USD! But if you refer to purchase Product A with BRI currency, you pay 10 BRI. Then we both have 'Product A' in our products list!

also, remember that in WHMCS, once a client has ordered, they cannot change their currency in WHMCS (and neither should admin change it for them)..

so if a client orders from the site and pays in USD, when they next login, they will only see your products that are available (priced) in USD - they cannot purchase any products in BRI (they won't even see them and they won't have a way to change currencies in the cart anyway).

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated