CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Total Fees line not displaying with decimal point
Pages: [1] 2

Author Topic: Total Fees line not displaying with decimal point  (Read 6329 times)

anative

  • Guest
Total Fees line not displaying with decimal point
May 12, 2009, 07:00:35 pm
I'm using a Price Set with a number of different options.  Its working except that the "Total Fee(s)" line at the bottom is displaying without a decimal point.  For example:

$99.99 displays as $9999

I've checked the localization settings.  Monetary Amount Display is set to "%c %a" and Monetary Value Display is set to "%n".

Any ideas?

Thanks!
Jon

anative

  • Guest
Re: Total Fees line not displaying with decimal point
May 15, 2009, 09:37:30 pm
Well if I can't get it to display the total correctly on that page how about a way to have the total line always hidden?  Right now it hides until a item is selected.

Jon

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Total Fees line not displaying with decimal point
May 16, 2009, 06:53:46 am

can you reproduce this on http://drupal.demo.civicrm.org/ and if so file an issue along with steps on how to reproduce

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

anative

  • Guest
Re: Total Fees line not displaying with decimal point
May 16, 2009, 01:20:12 pm
Quote from: Donald Lobo on May 16, 2009, 06:53:46 am
can you reproduce this on http://drupal.demo.civicrm.org/ and if so file an issue along with steps on how to reproduce

I just went and created an identical price set and event on the demo site and it works like it should.  The Total Fee(s) line displays with the decimal point.

Any ideas on what I have done wrong on my site?

Thanks so much!
Jon

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Total Fees line not displaying with decimal point
May 16, 2009, 01:50:48 pm

Use firebug (or your favorite javascript debugger) and check if you detect any js errors in the script. Might be a browser/system/js code issue

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

anative

  • Guest
Re: Total Fees line not displaying with decimal point
May 22, 2009, 12:43:17 pm
Quote from: Donald Lobo on May 16, 2009, 01:50:48 pm

Use firebug (or your favorite javascript debugger) and check if you detect any js errors in the script. Might be a browser/system/js code issue

lobo

I ran through the site with firebug and don't see any errors.  I also tried creating a brand new price set and event and am having the same isssue.  I'm going to reinstall Drupal and CiviCRM into a brand new directory along with a new database and see if the problem persists.

Thanks for your help.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Total Fees line not displaying with decimal point
May 22, 2009, 02:55:25 pm
May be you should try to upgrade to latest release CiviCRM v2.2.3.

Kurund
Found this reply helpful? Support CiviCRM

gilesclark

  • Guest
Re: Total Fees line not displaying with decimal point
June 09, 2009, 03:29:36 am
Actually I get the same problem. It only happens on the initial page where the people order a number of tickets. Once it goes past that the monetary value displays perfectly.

I also get stray characters "£ " in the administration side of events.
« Last Edit: June 09, 2009, 03:42:56 am by gilesclark »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Total Fees line not displaying with decimal point
June 09, 2009, 05:58:18 am
gilesclark:

Can you replicate this on http://drupal.demo.civicrm.org

Kurund
Found this reply helpful? Support CiviCRM

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Total Fees line not displaying with decimal point
June 09, 2009, 10:27:17 am
Quote from: gilesclark on June 09, 2009, 03:29:36 am
Actually I get the same problem. It only happens on the initial page where the people order a number of tickets. Once it goes past that the monetary value displays perfectly.

I also get stray characters "£ " in the administration side of events.

I'm suspicious that the problem is connected to changes in monetary locale settings. If you've modified currency or monetary display fields on your site, then make the same changes on demo to see if that replicates the behavior.
Protect your investment in CiviCRM by  becoming a Member!

gilesclark

  • Guest
Re: Total Fees line not displaying with decimal point
June 09, 2009, 12:48:34 pm
Quote from: Kurund Jalmi on June 09, 2009, 05:58:18 am
gilesclark:

Can you replicate this on http://drupal.demo.civicrm.org


Mine is  a joomla installation and i couldnt get the joomla demo to work at all.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Total Fees line not displaying with decimal point
June 09, 2009, 02:49:47 pm
The code that handles this functionality is the same for Joomla and Drupal (as is almost all of the CiviCRM codebase) - so you can try and reproduce on the Drupal demo.

That said, where did you get stuck on the Joomla demo? (I'm able to login to the Admin site and view Price Sets, etc.)

http://joomla.demo.civicrm.org/administrator/index2.php
Protect your investment in CiviCRM by  becoming a Member!

gilesclark

  • Guest
Re: Total Fees line not displaying with decimal point
June 11, 2009, 06:48:16 am
I could get into the administration fine, it was when I tried to run a test of the online registration it just failed and returned to the front page.

As I said at firt the only point where this fails is at the beginning of online reg where you start putting in how many tickets of each type you require. Once you move beyond that it looks fine. Hiding the fees output at this early stage would be fine for me.

Giles

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Total Fees line not displaying with decimal point
June 12, 2009, 12:17:36 pm
There were some configuration problems on the Joomla demo. Some user had emptied the Monetary Display field value (default is %!i) - which caused money fields to not function properly. Also, the DB config for the front-end was pointing to a different DB then the admin.

I've fixed those and modified one of the sample events to use a price set. The price display on the initial registration page seems to be working as expected. You can try it at:

http://joomla.demo.civicrm.org/index.php?option=com_civicrm&task=civicrm/event/register&id=2&reset=1&action=preview

You can also try and replicate your problem by modifying the price set linked to this event to match your setup.

http://joomla.demo.civicrm.org/administrator/index2.php?option=com_civicrm&task=civicrm/admin/price/field&reset=1&action=browse&sid=3
Protect your investment in CiviCRM by  becoming a Member!

gilesclark

  • Guest
Re: Total Fees line not displaying with decimal point
June 16, 2009, 02:27:04 am
Thanks I have tested the demo installation and you are absolutely right. It works perfectly.

Looking again at my install on the localization tab I can only select English (USA) both for default language and monetary locale. No other options are offered. I wonder if this could be part of the problem?

Any thoughts?

If I am to go for a complete re-install I assume I have to remove the database fields too?


********* sometime later ************

I've just finished a complete re-install, with new downloads, and still get the error.

Giles
« Last Edit: June 16, 2009, 04:28:29 am by gilesclark »

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Total Fees line not displaying with decimal point

This forum was archived on 2017-11-26.