Exchange rate not saved
4 years 2 months ago #343392
by Alex3
Exchange rate not saved was created by Alex3
-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.1.5
-- PHP version -- : 8.1
I need to set the exchange rate 0,000043 But when saving it rounds up to 0.00004
I tried different decimal values but it doesn't work.
How to fix it ?
-- Joomla version -- : 4.1.5
-- PHP version -- : 8.1
I need to set the exchange rate 0,000043 But when saving it rounds up to 0.00004
I tried different decimal values but it doesn't work.
How to fix it ?
Please Log in or Create an account to join the conversation.
4 years 2 months ago - 4 years 2 months ago #343397
by Philip
Replied by Philip on topic Exchange rate not saved
Hello,
I'm sorry for this return, but can you elaborate a little more your context.
For this, provide us these elements :
- Relative settings screenshot
- Details your needs, and what you want to achieved
- List your different test in order to allow us to try to reproduce your issue.
Awaiting your elements to progress on your subject.
Regards
I'm sorry for this return, but can you elaborate a little more your context.
For this, provide us these elements :
- Relative settings screenshot
- Details your needs, and what you want to achieved
- List your different test in order to allow us to try to reproduce your issue.
Awaiting your elements to progress on your subject.
Regards
Last edit: 4 years 2 months ago by Philip.
Please Log in or Create an account to join the conversation.
4 years 2 months ago #343421
by Alex3
Replied by Alex3 on topic Exchange rate not saved
Not saved
Please Log in or Create an account to join the conversation.
4 years 2 months ago - 4 years 2 months ago #343435
by Philip
Replied by Philip on topic Exchange rate not saved
Hello,
Please, in order to allow us to analyze directly on your website the issue provide these elements :
- An Url link to your backend access
- Backend user references (with maximum Acl)
=> Use our Contact us form to provide these elements, and don't forget to add an Url to this topic in order to keep the link.
Regards
Please, in order to allow us to analyze directly on your website the issue provide these elements :
- An Url link to your backend access
- Backend user references (with maximum Acl)
=> Use our Contact us form to provide these elements, and don't forget to add an Url to this topic in order to keep the link.
Regards
Last edit: 4 years 2 months ago by Philip.
Please Log in or Create an account to join the conversation.
4 years 2 months ago #343442
by lousyfool
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Replied by lousyfool on topic Exchange rate not saved
Hi Alex3,
The reason is the format of the database column, which by default is set to "decimal 16,5", meaning 5 decimals behind the dot.
So, to be able to save exchange rates with more decimals (e.g. 6 decimals as in your example), you'll need to change it in phpMyAdmin -> table "yourprefix_hikashop_currency" -> tab "Structure" -> column "currency_rate". Set it to 16,6 or 16,7 according to your needs, and then you'll be able to save and use an exchange rate of 0.000043 or similar.
The reason is the format of the database column, which by default is set to "decimal 16,5", meaning 5 decimals behind the dot.
So, to be able to save exchange rates with more decimals (e.g. 6 decimals as in your example), you'll need to change it in phpMyAdmin -> table "yourprefix_hikashop_currency" -> tab "Structure" -> column "currency_rate". Set it to 16,6 or 16,7 according to your needs, and then you'll be able to save and use an exchange rate of 0.000043 or similar.
Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Please Log in or Create an account to join the conversation.
4 years 2 months ago #343444
by Alex3
Replied by Alex3 on topic Exchange rate not saved
Thanks for the answer! but why should I bother with it. Fellow programmers, please fix this.
Please Log in or Create an account to join the conversation.
4 years 2 months ago #343454
by nicolas
Replied by nicolas on topic Exchange rate not saved
Hi,
It's not a bug, so there is nothing to fix. It's a design choice we made when we first designed our software that there would be no need for more than 5 decimals for exchange rates.
Now, you're saying that 1 more decimal is needed in some cases. @lousyfool provided you with an easy solution for you to allow for it.
We'll look into changing this for new installations of HikaShop. But even if we add this change in the next version of HikaShop, this would change for you as it will only be for new installations of HikaShop. So you still need to do the modification via PHPMyAdmin if you need to enter more decimals than 5 in that setting.
It's not a bug, so there is nothing to fix. It's a design choice we made when we first designed our software that there would be no need for more than 5 decimals for exchange rates.
Now, you're saying that 1 more decimal is needed in some cases. @lousyfool provided you with an easy solution for you to allow for it.
We'll look into changing this for new installations of HikaShop. But even if we add this change in the next version of HikaShop, this would change for you as it will only be for new installations of HikaShop. So you still need to do the modification via PHPMyAdmin if you need to enter more decimals than 5 in that setting.
Please Log in or Create an account to join the conversation.
Time to create page: 0.201 seconds