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) »
  • 4.2 - How do you NOT display the contribution amount labels
Pages: [1]

Author Topic: 4.2 - How do you NOT display the contribution amount labels  (Read 792 times)

jday

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 6
  • CiviCRM version: 4.2
  • CMS version: 7.15
4.2 - How do you NOT display the contribution amount labels
September 07, 2012, 10:23:56 am
I've got a fresh install of 4.2. I've created a contribution page for donations and would like to show some suggested amounts like $25, $50, $100 etc. There is no need for a label and putting the number in there looks ridiculous. Isn't there a checkbox somewhere to turn those off?

If I leave the label field blank it will not save the contribution option.

I get this error either way, with or without a label: Warning: strtolower() expects parameter 1 to be string, array given in CRM_Core_DAO::getFieldValue() (line 716 of /var/www/mysite.org/sites/all/modules/civicrm/CRM/Core/DAO.php).

DamonKirkpatrick

  • I post occasionally
  • **
  • Posts: 58
  • Karma: 0
  • One job but so many responsibilities.
    • Friends of Georgia State Parks
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.35
  • MySQL version: 5.1.48
  • PHP version: 5.3.8
Re: 4.2 - How do you NOT display the contribution amount labels
November 09, 2012, 07:15:55 am
I had the same problem.  I didn't resolve it but worked around it using a hyphen as the label.  It sounds clunky but ended up looking ok on the site.

grandesigns

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 1
  • CiviCRM version: 4.4.20
  • CMS version: Wordpress
Re: 4.2 - How do you NOT display the contribution amount labels
November 11, 2012, 07:07:14 pm
The best fix I've found so far was to set them all to the same thing, then remove the label and extra space a couple of jquery functions as below:

Code: [Select]
jQuery('#priceset label').each(function() {jQuery(this).text(jQuery(this).text().replace('-', ''));});
jQuery('#priceset label').each(function() {jQuery(this).text(jQuery(this).text().replace(/\s\s+/g, ' '));});

jday

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 6
  • CiviCRM version: 4.2
  • CMS version: 7.15
Re: 4.2 - How do you NOT display the contribution amount labels
November 30, 2012, 07:12:07 am
Thanks for the suggestions, I appreciate your help.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: 4.2 - How do you NOT display the contribution amount labels
November 30, 2012, 04:09:17 pm
I think this was a regression several releases ago - am pretty certain Label was not required a year ago or so
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • 4.2 - How do you NOT display the contribution amount labels

This forum was archived on 2017-11-26.