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) »
  • Suppress display of event fees on information page
Pages: [1]

Author Topic: Suppress display of event fees on information page  (Read 1485 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
Suppress display of event fees on information page
August 20, 2013, 01:26:55 am
CiviCRM 4.1.3

Is there a simple way to suppress the display of the fees on the information page for an event?

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Suppress display of event fees on information page
September 02, 2013, 11:44:49 pm
Dennis :

you can use simple jquery to suppress the fields

Code: [Select]
cj('.event_fees-section').hide();
To learn more, you can read in detail here :
http://civicrm.org/blogs/hershel/how-customize-civicrm-pages-jquery

HTH
-Yashodha
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

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: Suppress display of event fees on information page
September 06, 2013, 10:06:02 pm
Thanks for the tip but I haven't gotten it to work (this is the first time I've played with jquery)

My understanding is that I have to include a line in my theme's info file like

scripts[] = myjquery.js

Then I created a file in the same directory as my theme:

Code: [Select]
<script type="text/javascript">
if (Drupal.jsEnabled) {

  $(document).ready(function () {

    cj('.event_fees-section').hide();

  });
}
</script>

I've cleared the cache but the event fees are still being displayed.

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: Suppress display of event fees on information page
September 16, 2013, 05:29:33 am
I can see that the .js file is being loaded but the event fees are not being suppressed.

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: Suppress display of event fees on information page
January 24, 2014, 04:53:48 pm
We have another event and I am being asked to suppress this fee summary again. I never did get the suggestion in this thread to work.


KilakwaBT

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 11
  • CiviCRM version: 4.5.5
  • CMS version: WordPress 4.1
  • MySQL version: 5.1.68
  • PHP version: 5.3
Re: Suppress display of event fees on information page
February 04, 2014, 09:36:28 am
I needed to do this quickly so I just backed up the event info page template file and removed the code block that displays the event pricing information on the page. It would be a best practice to setup a custom template directory to avoid changes being over written when upgrading. The jquery is a better solution  if you can get it to work as you can quickly change the setting back in the future.

BT

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: Suppress display of event fees on information page
February 14, 2014, 05:49:13 pm
I never did get the jQuery to work but I did modify the code in the custom template directory and all is fine.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Suppress display of event fees on information page

This forum was archived on 2017-11-26.