amount with dot and comma, but only comma needed

  • Posts: 97
  • Thank you received: 0
  • Hikashop Business
10 years 1 month ago #173813

-- HikaShop version -- : 2.3.3.
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : nothing

Hi,

We have a strange bug / situation;

When logged in prices in modules and in cart are shown like this;
8.,99 so with dot and comma, but we need only comma in The Netherland.

I've checked currency settings, but all is set right.

When you are logged out, the normal price is shown with only comma.

Where can I find this bug / setting?
We had it with our previous version of Hikashop and I thought when I update to the most recent version it will be fixed. But that is not.

Can you help me out?
Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
10 years 1 month ago #173850

Hi,

There is no bug on that end as far as we know and no one reported it before. So it's probably a currency display setting.
Please edit your currency via the menu System>Currencies and check its options. If you don't find the problem, please provide a screenshot of that page.

Please Log in or Create an account to join the conversation.

  • Posts: 97
  • Thank you received: 0
  • Hikashop Business
10 years 1 month ago #174049

Hi Nicolas,

Please have a look at the 2 screenshots.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 1 month ago #174088

Hi,

Thanks to try to remove the dot for the option "Groups separation".
That should solve the problem, is not thanks to give us a screenshot of the EUR currency in the currency listing to see how it's formatted.

Please Log in or Create an account to join the conversation.

  • Posts: 97
  • Thank you received: 0
  • Hikashop Business
10 years 1 month ago #174212

Hi Xavier,

Removing the dot results in 2 comma's. Removing the comma breaks every price.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 1 month ago #174216

Hi,

Thanks to give us a backend and a ftp access in order to see directly what's happening on your website.
Don't forget to give us the url of that topic.

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
9 years 3 months ago #210496

Hi,
-- HikaShop version -- : 2.4.0.
-- Joomla version -- : 3.3.0
-- PHP version -- : 5.3.29

I have the same/similar problem. Have this been resolved?
Please look at:
www.portal-tlumaczy.pl/index.php?option=...slownikow&Itemid=130
Prices are proper for main price of product and for first option, and wrong for 2,3 and 4 options.
Price with option value is displayed without decimals. If you select price from first option you get Price with option value with decimals only from option price,but still not from main price of product.
It is connected somehow with locals. It is OK for English and wrong for Polish (default language of our site).

Best regards
Jacek

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
9 years 3 months ago #210498

Hi,

We've added some fixes for that in the latest version of HikaShop which came from a server setup issue with the locale of the web server.
Update to the latest version and that should solve the issue.

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
9 years 3 months ago #210615

Thank you Nicolas,

I upgraded to 2.5.0 and now format of all prices are OK, but still there is a problem with calculating Price with option value. It takes decimal numbers only from 1st option prices, but without decimals from 2nd, 3th and 4th options.

What I noticed on Debuger window is that price array is created with mixed formats of prices (with dot or comma) i.e.:

var hikashop_options=Array();
hikashop_options[285]=121.77;
hikashop_options[286]=244.77;
hikashop_options[29]=207,87;
hikashop_options[30]=158,67;
hikashop_options[32]=343,17;
hikashop_options[34]=207,87;
hikashop_options[35]=158,67;
hikashop_options[36]=343,17;
hikashop_options[294]=183,27;
hikashop_options[3]=737,47323340471;
hikashop_options[2]=675,27;

And this probably reason of wrong Price with options calculations.

Best regards
Jacek

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
9 years 3 months ago #210625

Hi,

Edit the file "option" via the menu Display>Views and change the code:

]=".(float)$price.";
to:
]=".(float)str_replace(',','.',$price).";
(twice in the file). That should fix the problem.
Please let us know how it goes.

Please Log in or Create an account to join the conversation.

Time to create page: 0.096 seconds
Powered by Kunena Forum