Page 1 of 1

[SOLVED]Questions about Currency Rate Engine in OC v4.0.2.3

Posted: Fri May 17, 2024 3:54 am
by stanmx
Hi everyone,

I'm installing OC for the United States area. I changed the Currency to the US Dollar in System > Settings > Local (tab) but next to them I have the Currency Rates Engine with the option European Central Bank Currency Converter. I have some questions:

- How works the Currency Rates Engine?
- Exist an equivalent of European Central Bank Currency Converter for the US Market?
- What others Currency Rate Engine options/extensions are for the US Market?
- What happen if I continue using the European Central Bank Currency Converter option?

--I know, to many questions XD. I hope you can help me with my doubts. Thank you for your time.

Re: Questions about Currency Rate Engine in OC v4.0.2.3

Posted: Fri May 17, 2024 4:39 am
by straightlight
stanmx wrote:
Fri May 17, 2024 3:54 am
Hi everyone,

I'm installing OC for the United States area. I changed the Currency to the US Dollar in System > Settings > Local (tab) but next to them I have the Currency Rates Engine with the option European Central Bank Currency Converter. I have some questions:

- How works the Currency Rates Engine?
- Exist an equivalent of European Central Bank Currency Converter for the US Market?
- What others Currency Rate Engine options/extensions are for the US Market?
- What happen if I continue using the European Central Bank Currency Converter option?

--I know, to many questions XD. I hope you can help me with my doubts. Thank you for your time.
With Event Triggers. :)
('admin_currency_add', 'Updates currencies when a new currency is added.', 'admin/model/localisation/currency/addCurrency/after', 'event/currency', 1),
('admin_currency_edit', 'Updates currencies when a currency is edited.', 'admin/model/localisation/currency/editCurrency/after', 'event/currency', 1),
('admin_currency_setting', 'Updates currencies when settings are saved.', 'admin/model/setting/setting/editSetting/after', 'event/currency', 1),
By setting your currency code, the default currency parameter gets captured during the Event and prioritizes with the one you will select from the currency settings - in this case - for the US.

Note: I would suggest to use the latest code change from Github Opencart v4.1.0.0 or use a recent extension from the Marketplace, due to recent patching about the currency exchange calculations that used to have some bugs in the past.

The latest code change can be found here: https://github.com/opencart/opencart/bl ... cy/ecb.php .

Re: Questions about Currency Rate Engine in OC v4.0.2.3

Posted: Fri May 17, 2024 4:57 pm
by stanmx
straightlight wrote:
Fri May 17, 2024 4:39 am
stanmx wrote:
Fri May 17, 2024 3:54 am
Hi everyone,

I'm installing OC for the United States area. I changed the Currency to the US Dollar in System > Settings > Local (tab) but next to them I have the Currency Rates Engine with the option European Central Bank Currency Converter. I have some questions:

- How works the Currency Rates Engine?
- Exist an equivalent of European Central Bank Currency Converter for the US Market?
- What others Currency Rate Engine options/extensions are for the US Market?
- What happen if I continue using the European Central Bank Currency Converter option?

--I know, to many questions XD. I hope you can help me with my doubts. Thank you for your time.
With Event Triggers. :)
('admin_currency_add', 'Updates currencies when a new currency is added.', 'admin/model/localisation/currency/addCurrency/after', 'event/currency', 1),
('admin_currency_edit', 'Updates currencies when a currency is edited.', 'admin/model/localisation/currency/editCurrency/after', 'event/currency', 1),
('admin_currency_setting', 'Updates currencies when settings are saved.', 'admin/model/setting/setting/editSetting/after', 'event/currency', 1),
By setting your currency code, the default currency parameter gets captured during the Event and prioritizes with the one you will select from the currency settings - in this case - for the US.

Note: I would suggest to use the latest code change from Github Opencart v4.1.0.0 or use a recent extension from the Marketplace, due to recent patching about the currency exchange calculations that used to have some bugs in the past.

The latest code change can be found here: https://github.com/opencart/opencart/bl ... cy/ecb.php .
Thank you straightlight. I don't have really clear that Event Triggers, but I will check in detail very soon. Thank you!

Re: Questions about Currency Rate Engine in OC v4.0.2.3

Posted: Fri May 17, 2024 7:38 pm
by straightlight
stanmx wrote:
Fri May 17, 2024 4:57 pm
straightlight wrote:
Fri May 17, 2024 4:39 am
stanmx wrote:
Fri May 17, 2024 3:54 am
Hi everyone,

I'm installing OC for the United States area. I changed the Currency to the US Dollar in System > Settings > Local (tab) but next to them I have the Currency Rates Engine with the option European Central Bank Currency Converter. I have some questions:

- How works the Currency Rates Engine?
- Exist an equivalent of European Central Bank Currency Converter for the US Market?
- What others Currency Rate Engine options/extensions are for the US Market?
- What happen if I continue using the European Central Bank Currency Converter option?

--I know, to many questions XD. I hope you can help me with my doubts. Thank you for your time.
With Event Triggers. :)
('admin_currency_add', 'Updates currencies when a new currency is added.', 'admin/model/localisation/currency/addCurrency/after', 'event/currency', 1),
('admin_currency_edit', 'Updates currencies when a currency is edited.', 'admin/model/localisation/currency/editCurrency/after', 'event/currency', 1),
('admin_currency_setting', 'Updates currencies when settings are saved.', 'admin/model/setting/setting/editSetting/after', 'event/currency', 1),
By setting your currency code, the default currency parameter gets captured during the Event and prioritizes with the one you will select from the currency settings - in this case - for the US.

Note: I would suggest to use the latest code change from Github Opencart v4.1.0.0 or use a recent extension from the Marketplace, due to recent patching about the currency exchange calculations that used to have some bugs in the past.

The latest code change can be found here: https://github.com/opencart/opencart/bl ... cy/ecb.php .
Thank you straightlight. I don't have really clear that Event Triggers, but I will check in detail very soon. Thank you!
In this case, you don't need to. You simply need to create a new default currency exchange option in your OC admin currencies and assign it to your admin settings as described from the Events description above.

Re: Questions about Currency Rate Engine in OC v4.0.2.3

Posted: Fri May 17, 2024 11:46 pm
by paulfeakins
stanmx wrote:
Fri May 17, 2024 4:57 pm
Thank you straightlight. I don't have really clear that Event Triggers, but I will check in detail very soon. Thank you!
I have no idea why he's talking about Events.

Are you sure USD isn't already supported from the ECB?

Re: Questions about Currency Rate Engine in OC v4.0.2.3

Posted: Sat May 18, 2024 3:13 am
by straightlight
paulfeakins wrote:
Fri May 17, 2024 11:46 pm
stanmx wrote:
Fri May 17, 2024 4:57 pm
Thank you straightlight. I don't have really clear that Event Triggers, but I will check in detail very soon. Thank you!
I have no idea why he's talking about Events.

Are you sure USD isn't already supported from the ECB?
That's because you didn't asked.

Re: Questions about Currency Rate Engine in OC v4.0.2.3

Posted: Sat May 18, 2024 3:47 am
by stanmx
straightlight wrote:
Fri May 17, 2024 7:38 pm
stanmx wrote:
Fri May 17, 2024 4:57 pm
straightlight wrote:
Fri May 17, 2024 4:39 am


With Event Triggers. :)



By setting your currency code, the default currency parameter gets captured during the Event and prioritizes with the one you will select from the currency settings - in this case - for the US.

Note: I would suggest to use the latest code change from Github Opencart v4.1.0.0 or use a recent extension from the Marketplace, due to recent patching about the currency exchange calculations that used to have some bugs in the past.

The latest code change can be found here: https://github.com/opencart/opencart/bl ... cy/ecb.php .
Thank you straightlight. I don't have really clear that Event Triggers, but I will check in detail very soon. Thank you!
In this case, you don't need to. You simply need to create a new default currency exchange option in your OC admin currencies and assign it to your admin settings as described from the Events description above.
Thank you straightlight, I have only one Currency in the Admin: USD Dollar by default. I think I will work with this and if I discover something else, comeback and ask. Thank you for the help.

Re: Questions about Currency Rate Engine in OC v4.0.2.3

Posted: Sat May 18, 2024 4:42 am
by straightlight
stanmx wrote:
Sat May 18, 2024 3:47 am
straightlight wrote:
Fri May 17, 2024 7:38 pm
stanmx wrote:
Fri May 17, 2024 4:57 pm


Thank you straightlight. I don't have really clear that Event Triggers, but I will check in detail very soon. Thank you!
In this case, you don't need to. You simply need to create a new default currency exchange option in your OC admin currencies and assign it to your admin settings as described from the Events description above.
Thank you straightlight, I have only one Currency in the Admin: USD Dollar by default. I think I will work with this and if I discover something else, comeback and ask. Thank you for the help.
:good: