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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • CiviEvent Suggestions (Moderator: Michał Mach) »
  • Negative Prices in Price Sets
Pages: [1]

Author Topic: Negative Prices in Price Sets  (Read 1785 times)

ahankinson

  • Guest
Negative Prices in Price Sets
May 07, 2009, 11:00:55 am
I'm wondering if I could get some help with Pricing Sets.

I have a client who is looking to add discounts on registration fees if participants opt-out of certain things. For example, if they do not take a conference bag, they would opt-out and receive $10 off their registration fee.

If I put a "-10" in for the cost for pricing sets, the behaviour is wonky. It works fine for single checkboxes, but does not work for radio options or select options.

So, my questions are:

1. Has this been raised before?
2. Would this be possible to implement? 

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: Negative Prices in Price Sets
May 07, 2009, 12:10:32 pm

1. yes

2. Yes it would be possible to implement. Most of the code should be in the file CRM/Core/BAO/PriceSet.php. Please file an issue and submit the patch back when you have fixed the issue. If you are not a programmer, you might want to consider hiring someone from http://civicrm.org/professional/

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions »
  • CiviEvent Suggestions (Moderator: Michał Mach) »
  • Negative Prices in Price Sets

This forum was archived on 2017-11-26.