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 CiviContribute (Moderator: Donald Lobo) »
  • Looking for Rx to remove cents from currency values
Pages: [1]

Author Topic: Looking for Rx to remove cents from currency values  (Read 584 times)

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Looking for Rx to remove cents from currency values
November 11, 2011, 04:38:17 pm
According to some research done about non-profits, people are less likely to join / contribute if numbers on the forms have many zeros in them.

Our org does nothing with partial dollar amounts.

Is there a way to globally turn off the presentation of ".00" behind the amounts on CiviContribute forms?
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

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: Looking for Rx to remove cents from currency values
November 12, 2011, 03:03:36 pm

how about setting the monetary value display here:

http://drupal.demo.civicrm.org/civicrm/admin/setting/localization?reset=1

to be:

%!.0n

Might want to read the tweak the format based on the docs here: http://php.net/manual/en/function.money-format.php

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

mdlueck

  • Ask me questions
  • ****
  • Posts: 382
  • Karma: 4
  • CiviCRM version: 4.7.24
  • CMS version: Drupal 6.x
  • MySQL version: 5.5.54
  • PHP version: 5.3.10
Re: Looking for Rx to remove cents from currency values
November 17, 2011, 05:46:40 pm
Thank you very much for providing a suggestion. I will check it out.
--
Michael Lueck
Lueck Data Systems
http://www.lueckdatasystems.com/

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Looking for Rx to remove cents from currency values

This forum was archived on 2017-11-26.