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) »
  • Problem Increasing Maximum Number of Discount Sets
Pages: [1]

Author Topic: Problem Increasing Maximum Number of Discount Sets  (Read 615 times)

breity

  • Guest
Problem Increasing Maximum Number of Discount Sets
February 26, 2010, 12:04:06 pm
Hi, so I'm trying to allow more than 6 discount sets for an event.  I'm using Drupal, CiviEvent 3.03.  I've changed the "const NUM_DISCOUNTS=6" to "const NUM_DISCOUNTS=10" in CRM/Event/Form/ManageEvent/Fee.php, as well as all the corresponding values in templates/Event/Form/ManageEvent/Fee.tpl.

The Event Configuration page will now let me add additional discount sets, but when I hit Save, only the first 6 are actually added.  Any 7th discount set or above is not saved (and I have confirmed this in the database).

Is there anywhere else in the code that I need to modify to allow more than 6 discount sets for each event?  Thanks for any help!

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: Problem Increasing Maximum Number of Discount Sets
February 26, 2010, 01:16:57 pm

your best bet will be to go in and debug the code at: CRM/Event/Form/ManageEvent/Fee.php (from line 589 in v3.1)

i took a quick look at the code and could not spot the issue :(

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

breity

  • Guest
Re: Problem Increasing Maximum Number of Discount Sets
February 26, 2010, 02:41:07 pm
Hmm, so here are the errors I'm getting when trying to save the discount sets:

array_combine() expects parameter 1 to be array, null given in /custom-php-folder/CRM/Event/Form/ManageEvent/Fee.php on line 144.

Invalid argument supplied for foreach() in /custom-php-folder/CRM/Event/Form/ManageEvent/Fee.php on line 146.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Problem Increasing Maximum Number of Discount Sets

This forum was archived on 2017-11-26.