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) »
  • Inhibiting display of Contribution Type option list
Pages: [1]

Author Topic: Inhibiting display of Contribution Type option list  (Read 760 times)

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
Inhibiting display of Contribution Type option list
June 18, 2012, 04:16:00 pm
CiviCRM 3.2.3

I'm looking for a way to inhibit the display of the contribution type option list list. On certain pages we do not want all the options to be listed. I think it is going to require some customisation but would like to know if there are any other ways to do this.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Inhibiting display of Contribution Type option list
June 18, 2012, 11:52:14 pm
Are you just looking for a way to remove the option from the menu or do you want to remove references to it in several screens? If the latter is the case you do need a little customization, but customization of the template should be sufficient. Check the developer guide http://book.civicrm.org/developer/techniques/templates (a couple of jQuery lines should get this done)
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
Re: Inhibiting display of Contribution Type option list
June 19, 2012, 12:03:05 am
Remove the options list from all pages. Each page has its own default option but lists all the options. Some brainy users think another option is better than the default which makes tracking lots of fun.


Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Inhibiting display of Contribution Type option list
June 19, 2012, 12:57:41 am
Sounds like a fun customization :-) But I am not sure I understand what you mean
Quote
Each page has its own default option but lists all the options
Can you explain in a little more detail what the problem is?

Quote
Some brainy users think another option is better than the default
Again, not sure I catch your drift.....you might be better of with renaming the option group in the database and changing the default values rather than customizing lots of screens? Can you give a real life example of the issue?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
Re: Inhibiting display of Contribution Type option list
June 19, 2012, 02:01:44 pm
See this page: https://secure.democratsabroad.org/civicrm/contribute/transact?reset=1&id=4

About half-way down there is a options list box for contribution type. The problem is we don't want people choosing another option. The only valid one for this page should be the default, "Regular Contribution".

Another example:

https://secure.democratsabroad.org/civicrm/contribute/transact?reset=1&id=27

Here the only valid option is "Oktoberfest 2012".

I'm not sure what you mean by renaming the option group in the database. Seems like that would be a it more trouble.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Inhibiting display of Contribution Type option list
June 19, 2012, 11:20:44 pm
That would certainly be more trouble, but I did not get your issue quite clearly :-)

If you only want to show specific options in specific places as your examples clearly show, you will have to customize the template/profile. There are several possiblities of tackling this, but they all require customization......as far as I know :-)
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
Re: Inhibiting display of Contribution Type option list
June 20, 2012, 02:45:12 pm
After a bit more research (I am not the developer), I have discovered that the display of the option list is actually in a custom Drupal module for our site. I have looked at the demo version of 4.1 and do not see this feature.

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Inhibiting display of Contribution Type option list
June 20, 2012, 11:34:51 pm
So there is alreay customization  ;D. Did you develop the customizations, or is it done by someone at your company? Or are you a volunteer at Democrats Abroad trying to find out what has been built?
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Inhibiting display of Contribution Type option list

This forum was archived on 2017-11-26.