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) »
  • Adding more Price Fee fields
Pages: [1]

Author Topic: Adding more Price Fee fields  (Read 657 times)

upasaka

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
Adding more Price Fee fields
June 11, 2010, 03:09:33 pm
Hello,
I wanted to add more than the 10 default event fee levels that show up in the FEE Tab during event configuration. I changed the NUM_OPTION in CRM/Event/Form/ManageEvent/fee.php  and at CRM/Price/Form/Field.php but makes no difference.

I have done this before once(about 1 or 2 years back), but cant find the right file to do it again. Have been searching for few days using different search terms and cant find the original forum post on it.

Any hints greatly appreciated!

Yashodha Chaku

  • Forum Godess / God
  • Ask me questions
  • *****
  • Posts: 755
  • Karma: 57
    • CiviCRM
Re: Adding more Price Fee fields
June 13, 2010, 11:19:45 pm
upasaka :

You want the no of rows in your fee labels to be increased on the Event Fee form.
The following patch should work for increasing the number of rows to 30 :

Code: [Select]
Index: CRM/Event/Form/ManageEvent/Fee.php
===================================================================
--- CRM/Event/Form/ManageEvent/Fee.php (revision 28220)
+++ CRM/Event/Form/ManageEvent/Fee.php (working copy)
@@ -48,7 +48,7 @@
     /**
      * Constants for number of options for data types of multiple option.
      */
-    const NUM_OPTION = 11;
+    const NUM_OPTION = 31;
     
     /**
      * Constants for number of discounts for the event.
Index: templates/CRM/Event/Form/ManageEvent/Fee.tpl
===================================================================
--- templates/CRM/Event/Form/ManageEvent/Fee.tpl (revision 28224)
+++ templates/CRM/Event/Form/ManageEvent/Fee.tpl (working copy)
@@ -140,9 +140,9 @@
         {ts}Use the table below to enter descriptive labels and amounts for up to ten event fee levels. These will be presented as a list of radio button options. Both the label and dollar amount will be displayed. You can also configure one or more sets of discounted fees by checking "Discounts by Signup Date" below.{/ts}
         <table id="map-field-table">
         <tr class="columnheader"><td scope="column">{ts}Fee Label{/ts}</td><td scope="column">{ts}Amount{/ts}</td><td scope="column">{ts}Default?{/ts}</td></tr>
-        {section name=loop start=1 loop=11}
+        {section name=loop start=1 loop=31}

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

upasaka

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
Re: Adding more Price Fee fields
June 14, 2010, 11:31:30 am
Thank you Yeshodha!
 That helped!
Just for posterity, there are two places in 'template/.../fee.tpl' that have 'loop=11' . Changed both the values.
Thanks again.
 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Adding more Price Fee fields

This forum was archived on 2017-11-26.