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 ... 3 4 [5] 6 7 8

Author Topic: CiviDiscount Module Extension  (Read 24794 times)

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
December 01, 2012, 05:28:02 pm
Thanks Pete! 

Out of curiosity - if that is the case then why is there an admin/public setting?  (selecting these should not be an option for the user, which I think was the reason they were set up that way, back when we used the regular membership form and not price sets.  Just want to make sure that I don;t  allow users to renew free memberships :-)

cheers,
Merlise
Merlise Clyde

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviDiscount Module Extension
December 04, 2012, 11:32:37 am
Quote
Perhaps I am missing something, but I would like to be able to provide an automatic discount to any membership (public or admin) for a discount on an event registration, so these memberships should be selectable as well.
Fixed.

Quote
I did notice that the automatic member discount appears on membership pages, but is not appearing on event pages.
This is already working/fixed.

Thanks
Kurund
Found this reply helpful? Support CiviCRM

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
December 04, 2012, 12:58:34 pm
Kurund - Is the automatic discount on event pages for members fixed under 4.2.6?   or do I need to wait and upgrade to 4.2.7 to see the change?  (I am under D6/C4.2.6 currently)


I selected the list of membership types
and then selected the event page

When I go to the event page and logged in with a membership type that should have a discount, no discounts are evident (the page in question does not use pricesets), but I have also tried with pricesets and no luck either. 

best,
Merlise





thanks!
Merlise

Merlise Clyde

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviDiscount Module Extension
December 05, 2012, 12:48:59 am
You need to run CiviCRM from svn until 4.2.7 release.

Check wiki.civicrm.org/confluence/display/CRMDOC42/Installing+CiviCRM+from+subversion+(SVN)+repository

HTh
Kurund
Found this reply helpful? Support CiviCRM

Dragon501c3

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Wordpress
  • MySQL version: 5
  • PHP version: 5
Re: CiviDiscount Module Extension
December 07, 2012, 02:06:47 pm
I found the CiviDiscount extension listed on the civicrm.org and it looked like the solution to a membership discount program that the 501c3 organization I volunteer with has been running offline because we could not apply it through our online renewals in CiviCRM.  I downloaded the file, followed the installation instructions on github and when I started having problems, I went back to github to look for help/information and there was an entirely different file name available for download. 
I am not a programmer/developer which means I do lack some experience where it counts...but I am not a complete dolt (I've managed to set up a Wordpress site and get an install of CiviCRM working pretty well...)  I've noticed a lot of recent activity on the project and believe I downloaded an older or in between version of the CiviDiscount extension.  The file name is dlobo-org.civicrm.module.cividiscount-d0c8187  I am getting the following error code Fatal error: Cannot make non static method CRM_Core_DAO::fields() static in class CDM_DAO_Item in /home/xxx/xxx.org/wp-content/plugins/civicrm-extensions/dlobo-org.civicrm.module.cividiscount-d0c8187/CDM/DAO/Item.php on line 367 I can't disable or uninstall CiviDiscount.  I have seen this error referred to as the "static field" issue, and I believe I have seen a solution that involves executing code on the civicrm MySQL database but now I cannot find it and am a bit concerned it might not be the right solution for the unusually named extension file I managed to install.
If someone could PLEASE help me fix this issue so I can uninstall, I promise to stay out of the way until there is a stable release for the current version of CiviCRM and/or until I am a little more dangerous with php and MySQL.  I am currently running CiviCRM 4.1.3 by the way (and can't update the core until I can uninstall this!)
THANK YOU IN ADVANCE!

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviDiscount Module Extension
December 10, 2012, 06:42:05 am
CiviDiscount extension won't work on 4.1.3

Kurund
Found this reply helpful? Support CiviCRM

Dragon501c3

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Wordpress
  • MySQL version: 5
  • PHP version: 5
Re: CiviDiscount Module Extension
December 10, 2012, 03:21:26 pm
I was able to disable CiviDiscount by following the instructions in this post: http://forum.civicrm.org/index.php/topic,25511.msg107920.html#msg107920 (Thanks) BUT I still got error:Fatal error: Cannot make non static method CRM_Core_DAO::fields() static in class CDM_DAO_Item in /xxx/user/domain.org/wp-content/plugins/civicrm-extensions/dlobo-org.civicrm.module.cividiscount-d0c8187/CDM/DAO/Item.php on line 367    So, I went to the IRC and Mr. Lobo gave me the following SQL script to run: select v.* from civicrm_option_value v, civicrm_option_group g where g.name like '%system_extens%' AND v.option_group_id = g.id;  The script did not fix the problem, but I was finally able to get to System Settings menu without an error, so I deleted my extensions directory, went to System Settings and removed the addresses from "Directories" and "Resource URLs."  This was the ONLY extension I was running so this worked for me.  If you are running more than one extension and you don't want to remove them all and start over, you will need to selectively remove the directories related to the extension you want to remove.  I hope this info will help some other folks!
« Last Edit: December 10, 2012, 06:07:49 pm by Dragon501c3 »

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: CiviDiscount Module Extension
December 18, 2012, 09:47:19 pm
Just checking to see the status on the next version of CiviCRM so that I can get the discounts up and working. Thanks!

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
March 12, 2013, 08:22:33 am
Members who have membership created offline still are unable to have the automatic discount apply even though they are now selectable in the list when creating the discount code.
Merlise Clyde

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
March 12, 2013, 10:49:50 am
Lance and I found the fix  (reported as an issue on github)

Necessary change is in line 776 of cividiscount.php

Code: [Select]
   // get all membership types ordered by weight
      $membershipTypes = CRM_Member_BAO_MembershipType::getMembershipTypes();

should be
 
Code: [Select]
   // get all membership types ordered by weight
      $membershipTypes = CRM_Member_BAO_MembershipType::getMembershipTypes(FALSE);

By default the argument is TRUE so it is returning only memberships with visibility = public which means that honorary or free memberships are not receiving the discount on events.
Merlise Clyde

CatorgHans

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.4
  • CMS version: drupal
Re: CiviDiscount Module Extension
March 22, 2013, 03:40:27 am
I see a discount text field appearing in the participant entry for an event.

But I don't see anything on the online event registration pages.
Is that what it is supposed to be doing?

It makes a lot of sense to me that a discount option is also given to online registrants.

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
March 22, 2013, 08:27:22 am

Did u offer a discount for a specific event? The discount field only appears if the user can apply a discount for that event

Note that we do not have generic discounts as yet (i.e. a discount for all events)

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

CatorgHans

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.4
  • CMS version: drupal
Re: CiviDiscount Module Extension
March 22, 2013, 08:34:58 am
Yes, I did
In d7 with 4.2.8
and
In d6 with 4.2.8

In both cases no discount text field appeared on Public Registration page.

It did on Register Participant page in CiviCRM admin.

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
March 22, 2013, 09:12:18 am

we've been using v2.0 for civicon: http://civicrm.org/civicrm/event/register?reset=1&id=280

with good success. Not sure what is happening on your site and why. Ping me on IRC and we can discuss

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

jsimonis

  • I post frequently
  • ***
  • Posts: 316
  • Karma: 4
    • Forward Support, Inc.
  • CiviCRM version: 4.4-4.5
  • CMS version: Drupal 7
  • MySQL version: 5.5.37-cll
  • PHP version: 5.3.29
Re: CiviDiscount Module Extension
April 17, 2013, 12:56:09 am
I was able to get it working on our site. I just wish I could apply a discount to specific event types instead of having to go in and add each individual event to the settings.

Pages: 1 ... 3 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.