Answers.Body: <p>Here is an extension that adds support for discounts on contributions:</p>
  <p><a href="https://civicrm.org/extensions/discount-contributions" rel="nofollow noreferrer">https://civicrm.org/extensions/discount-contributions</a></p>
  <p>Edit: It has been improved with time, and seems to be working well so far. In the long term, it might be more interesting to get it merged in the main CiviDiscount extension.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-14T19:20:05.267Z
Answers.Text: I've used this successfully out of the box, and another CiviCRM vendor submitted patches, so folks can consider this extension tested now.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-28T13:35:04.433Z
Answers.Text: This looks to be exactly what I want, but I don't seem to be able to install it. I've put the code in the extensions directory but it doesn't show up in the extentions screen for me to install (document says install as a regular extension). I do already have CiviDiscount installed.
Answers.UserDisplayName: Mick Kahn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-04T12:15:08.230Z
Answers.Text: Had to clear the CiviCRM cache to get it to install, but otherwise does exactly what I want.
Answers.UserDisplayName: Mick Kahn
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-02T13:41:09.867Z
Answers.LastActivityDate: 2024-03-05T14:34:59.427Z
Answers.LastEditDate: 2024-03-05T14:34:59.427Z
Answers.UserDisplayName: bgm
Answers.Body: <p>You can use Discount for event registrations too, assuming you mean the fundraising dinner is an event sign up?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-02T18:49:34.823Z
Answers.Text: No, the point is that it is a contribution page.  not an event.
Answers.UserDisplayName: Sonicthoughts
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-03T08:48:04.647Z
Answers.Text: Ok, so I'm not sure thats the desired behaviour of CiviDiscount, Contribution pages without Membership are in effect donation pages so giving a discount on a donation doesn't seem to make sense. You could simply point supporters to a different donation page which implied the discount or something along those lines with a module.
Answers.UserDisplayName: Parvez Saleh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-22T13:11:08.697Z
Answers.Text: I've had to work around this limitation at times, since I sometimes have a plain contribution page to buy a book or a t-shirt, with a member/code discount. In one case I duplicated/adapted the buildAmount function of cividiscount, and in one case I had to override the DiscountCalculator() because I didn't want to have to configure every single priceset-item.
Answers.UserDisplayName: bgm
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-01T07:34:47.400Z
Answers.Text: @bgm can you share how you modified buildAmount function for applying discounts to a plain contribution page? I see it checks for page type but it gets confusing from there.
Answers.UserDisplayName: schatz
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-02T13:41:28.000Z
Answers.Text: @schatz OK, posted below as an answer.
Answers.UserDisplayName: bgm
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-10-05T15:22:01.327Z
Answers.Text: Just to add a use case where a contribution page is being used in a non membership/event setting and not a donation, we use for payment of assessment fees
Answers.UserDisplayName: mhawksey
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-02T14:44:19.127Z
Answers.LastActivityDate: 2015-11-02T14:44:19.127Z
Answers.UserDisplayName: Parvez Saleh
Body: <p>I have seen references to CiviDiscount on contribution pages for memberships.  Can it be used for a fundraising dinner?  Note - I often struggle between creating an event or contribution page for fundraising dinners - both have tradeoffs</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-04-01T02:45:01.740Z
Comments.Text: What is the downside of an Event in this scenario?
Comments.UserDisplayName: petednz - fuzion
Tags: <contribution-page><cividiscount>
Title: Can CiviDiscount be used on a Contribution Page without Membership
ThreadText: # Can CiviDiscount be used on a Contribution Page without Membership
  
  (Asked by: username_0 on 2015-10-30)
  
  I have seen references to CiviDiscount on contribution pages for memberships. Can it be used for a fundraising dinner? Note - I often struggle between creating an event or contribution page for fundraising dinners - both have tradeoffs
  
  **Tags:** contribution-page, cividiscount
  
  > **Comments:**
  > **username_1**: What is the downside of an Event in this scenario?  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2019-08-02. Score: 5
  
  Here is an extension that adds support for discounts on contributions:
  
  <https://civicrm.org/extensions/discount-contributions>
  
  Edit: It has been improved with time, and seems to be working well so far. In the long term, it might be more interesting to get it merged in the main CiviDiscount extension.
  
  > **Comments:**
  > **username_3**: I've used this successfully out of the box, and another CiviCRM vendor submitted patches, so folks can consider this extension tested now.  
  > **username_4**: This looks to be exactly what I want, but I don't seem to be able to install it. I've put the code in the extensions directory but it doesn't show up in the extentions screen for me to install (document says install as a regular extension). I do already have CiviDiscount installed.  
  > **username_4**: Had to clear the CiviCRM cache to get it to install, but otherwise does exactly what I want.  
  
  ---
  
  ### Answer by username_5 on 2015-11-02. Score: 1
  
  You can use Discount for event registrations too, assuming you mean the fundraising dinner is an event sign up?
  
  > **Comments:**
  > **username_0**: No, the point is that it is a contribution page.  not an event.  
  > **username_5**: Ok, so I'm not sure thats the desired behaviour of CiviDiscount, Contribution pages without Membership are in effect donation pages so giving a discount on a donation doesn't seem to make sense. You could simply point supporters to a different donation page which implied the discount or something along those lines with a module.  
  > **username_2**: I've had to work around this limitation at times, since I sometimes have a plain contribution page to buy a book or a t-shirt, with a member/code discount. In one case I duplicated/adapted the buildAmount function of cividiscount, and in one case I had to override the DiscountCalculator() because I didn't want to have to configure every single priceset-item.  
  > **username_6**: @username_2 can you share how you modified buildAmount function for applying discounts to a plain contribution page? I see it checks for page type but it gets confusing from there.  
  > **username_2**: @username_6 OK, posted below as an answer.  
  > **username_7**: Just to add a use case where a contribution page is being used in a non membership/event setting and not a donation, we use for payment of assessment fees  
  
  ---
  
  