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) »
  • CiviDiscount Module Extension
Pages: 1 ... 4 5 [6] 7 8

Author Topic: CiviDiscount Module Extension  (Read 24794 times)

mcgeehon

  • I post occasionally
  • **
  • Posts: 76
  • Karma: 0
  • CiviCRM version: 4.x
  • CMS version: 7.x
  • MySQL version: 5.x
  • PHP version: 5.2.x
Re: CiviDiscount Module Extension
May 04, 2013, 10:49:42 am
Is CiviDiscount broken in 4.3.x for Membership discounts?    I am running CiviDiscount 2.1 and Civi 4.3.2.

When I apply a 100% discount to my contribution page for membership signup, the price reduction is shown correctly on the initial page.  However when I submit the transaction, the review page shows the full price, and when I confirm, Paypal charges me the full price.   I have tried this with different discount levels and am always charged 100% of the cost.

I wasn't sure if this was only related to Membership type discounts only?

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: CiviDiscount Module Extension
May 04, 2013, 04:44:40 pm

does it work if the discount is < 100%, say a 50% discount?

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

mcgeehon

  • I post occasionally
  • **
  • Posts: 76
  • Karma: 0
  • CiviCRM version: 4.x
  • CMS version: 7.x
  • MySQL version: 5.x
  • PHP version: 5.2.x
Re: CiviDiscount Module Extension
May 04, 2013, 06:49:30 pm
I tried with 100%, 99% and 45% without luck.   I also tried a discount with a fixed dollar amount and I am still charged full price.
The discount only shows up on the first contribution page with membership enrollment once applied, but that's it.

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: CiviDiscount Module Extension
May 04, 2013, 07:37:13 pm

1. Did it ever work (since that was never our main use case, i suspect it was not well tested)

2. Any chance you can take a look at the code and help debug it

You might want to file an issue for this on the issue tracker so others are aware of it. We do hope that more community folks help maintain and bug fix this extension

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

mcgeehon

  • I post occasionally
  • **
  • Posts: 76
  • Karma: 0
  • CiviCRM version: 4.x
  • CMS version: 7.x
  • MySQL version: 5.x
  • PHP version: 5.2.x
Re: CiviDiscount Module Extension
May 04, 2013, 09:58:45 pm
Sure.  I will file a bug against this.  I am going to be away for several weeks, so wont be able to look into this further until June.

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: CiviDiscount Module Extension
May 05, 2013, 06:53:19 am

ok cool, we'll push the issue to the next release and when u get back u can take a look and potentially provide a patch

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

Cat Paquin

  • I post occasionally
  • **
  • Posts: 32
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Joomla 3.2.3
  • MySQL version: 5.5.30
  • PHP version: 5.3.17
Re: CiviDiscount Module Extension
May 15, 2013, 05:55:26 pm
When I switched to using a price set, the discount started working all the way through to PayPal again. Just a thought.

tac12

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Drupal6
  • MySQL version: 5.1.69
  • PHP version: 5.3.3
Re: CiviDiscount Module Extension
September 24, 2013, 04:32:00 am
I'm running civiCRM 4.3.5 on Drupal 6 and have installed cividiscount  which seems to work nicely.

I've just tried to set up a more complicated event/price set combo with varying discounts depending on the type of membership our constituents have:

eg  in the price set I have

Item 1
Item 2
Item 3

I want to apply say a monetary discount of 5 to item 1,  7 to item 2  and 10 to item 3. 

I set up the discounts and applied them to the price set,  but I only seem to get one of the discounts acting?

Am I missing something?

Adrian






So I set up  3 discounts

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: CiviDiscount Module Extension
September 24, 2013, 06:47:15 am

pretty sure that only one discount is applicable at any time in cividiscount. hence u see that behavior

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

tac12

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Drupal6
  • MySQL version: 5.1.69
  • PHP version: 5.3.3
Re: CiviDiscount Module Extension
September 27, 2013, 08:52:54 am
Thanks or the reply lobo.

Thats a shame,  I'll have to find another way of doing what I need.

- Adrian

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: CiviDiscount Module Extension
September 27, 2013, 08:55:56 am

if your org has the funding or the developer skills, maybe you'll can contribute code and/or sponsor someone to do the needed development. Seems like a fair bit of work and infrastructure is already present for this

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

mclyde

  • I post frequently
  • ***
  • Posts: 171
  • Karma: 3
    • International Society for Bayesian Analysis
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.x
  • MySQL version: 5.136
  • PHP version: 5.2.16
Re: CiviDiscount Module Extension
November 25, 2013, 10:04:27 am
Adrian

I have used different automatic discounts based on membership types but I am running under Drupal  6.25 (need to update and Civcrm 4.2.8 with Discount version 2.1)  - I create a different discount code for the different groups (i.e student members, regular members) that is hidden

The automatic discounts have been applied to line items in pricesets in Events (I have not tried for other pricesets in Membership/Contribution pages)

These have worked in conjunction with regular discount codes that are entered on the event page (i.e. 100% discount for an invited speaker) but only one will work.  i.e. if you apply the discount code that takes effect; if you do not apply the discount code and are logged in the member discount takes effect.  (having more than one would be great but wold open up lots of complications :-)

So this is possible, but may be a matter of configuration or versions :-)

hope this helps!
Merlise
Merlise Clyde

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: CiviDiscount Module Extension
December 12, 2013, 10:07:35 am
I just installed CiviDiscount on a site running Joomla 2.5.14 and Civi 4.3.7.  When I try to set it up using Events, I don't see a box for choosing which events it should be associated with.  I have one for Price Sets and one for Memberships, but not for events.  I have two active events and I double checked that both are marked as Public and both are paid events with prices defined on the Fees tab.  Am I missing something obvious?
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

seb

  • I’m new here
  • *
  • Posts: 26
  • Karma: 1
  • CiviCRM version: 4.6.4
  • CMS version: Drupal 7/Drupal 8
  • MySQL version: Ver 14.14 Distrib 5.5.44, for debian-linux-gnu
  • PHP version: PHP 5.6.9-0+deb8u1
Re: CiviDiscount Module Extension
January 30, 2014, 10:04:36 am
This is a nice module.  I am going to use it to discount event registration fees for a membership group, but I have run into a bit of a problem, and wouldn't mind some help debugging it (not sure where in the code this happens!)

So I have an Event Price Set with 2 fields, one a required Select field, the other an optional Checkbox field, for 5 items total. In Discount, it gives me the option to apply the discount to specific line items of the price set in question, so I add the 4 entries of the Select field, leaving the Checkbox unselected.  Pretty straightforward, exactly what the Admin interface appears to be designed for..

But on the Event registration page, all 5 price items are being discounted, including the one I did not select in the admin interface.

So either the admin interface selection box is not being parsed in the code upon submit, the registration page is not applying the discounted prices properly, or there's some kind of bug somewhere in between.

As far as I can tell the Admin just does this to actually save the admin page submit, there doesnt seem to be any special parsing in this function:
Code: [Select]
public function postProcess() {
 (stuff)
       $item = CDM_BAO_Item::add($params);
 (stuff)
}

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: CiviDiscount Module Extension
January 30, 2014, 10:22:01 am

might want to track the code and debug it here:

cividiscount.php, function cividiscount_civicrm_buildAmount

a few folks have reported this, so would be good to get a PR for this. You can submit your PR here:

https://github.com/dlobo/org.civicrm.module.cividiscount

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 ... 4 5 [6] 7 8
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • CiviDiscount Module Extension

This forum was archived on 2017-11-26.