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) »
  • $0 Price Sets
Pages: [1]

Author Topic: $0 Price Sets  (Read 3562 times)

jeff porter

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 2
$0 Price Sets
August 24, 2008, 09:33:45 pm
We were hoping that we could implement $0 price sets and have them work on CiviCRM.  We had them working on 2.0.x, but we had a problem where the system was requiring CC information for PP Pro even though the user had chosen a price set that was $0.  We need the ability to have "free" items along with paid items.  When we checked out the 2.1 sandbox, it appears that $0 price set items are no longer even allowed.  Is this a permanent decision?  If so, any suggestions on how to pull this off?

Thanks

Jeff

Jeff Porter
Foundation for Prader-Willi Research (www.fpwr.org)

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: $0 Price Sets
August 24, 2008, 09:52:52 pm
If i am not wrong, $0 Price Sets are allowed only for authenticated users and not anonymous user.

Kurund
Found this reply helpful? Support CiviCRM

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: $0 Price Sets
August 24, 2008, 10:32:40 pm

I'm pretty sure that in v2.0.x it would allow $0 price sets but not create any of the line items? are your line items of 0 value? (i.e. is there a combination price set that has the total value of 0?)

No decisions are permanent :) We plan to address and clean up price sets a bit more in either 2.2 or 2.3. patches to fix the current version will accelerate the process

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

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: $0 Price Sets
August 25, 2008, 02:35:06 am
Couple of related issues that are fixed in v2.1

http://issues.civicrm.org/jira/browse/CRM-2830
http://issues.civicrm.org/jira/browse/CRM-2534

kurund
Found this reply helpful? Support CiviCRM

jeff porter

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 2
Re: $0 Price Sets
August 25, 2008, 08:15:26 am
I was authenticated on the sandbox as demo/demo.  Its pretty easy to replicate. Just try to add a price set field with $0 value to the "Kari Test" price set.  The form checking rules appear to prevent it.

We are able to add the price set items at $0 to 2.0.6 - but it looks like the form rules introduced in 2.1 now prevent that.  It looks like issue http://issues.civicrm.org/jira/browse/CRM-2830
addresses that - and the suggestion is to use custom fields and attach them to the event through a profile.

The problem we ran into in 2.0.6 is that the system requires a CC in order to process the event registration even though the total cost is $0.  We tried some work arounds (adding in pay later and then selecting it).  We thought in 2.1 that this form checking routines (confirm.php?) would bypass the payment processor if the total cost was $0. 

Right now, we are getting around it by making the "Pay Later" text display the name of the item that is free, and then editing the template to put it up inside of the price set. This will work for now, until we need to implement a "pay later" option. 

Here is the dev page to see what we did:

http://www.chsm.org/dev/civicrm/event/register?id=5&reset=1  (the sponsor pass is the $0 item that is now the pay later option - ignore the 2nd instance of it, we forgot to remove it below)

Jeff



   
Jeff Porter
Foundation for Prader-Willi Research (www.fpwr.org)

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: $0 Price Sets
August 25, 2008, 12:06:26 pm
There were no fields define in "Kari Test". I have added fields to it.

Check http://sandbox.civicrm.org/civicrm/event/info?reset=1&id=10&action=preview, If i check $0, it is by-passing payment and going to confirm page.

So everything seems to working for authenticated use demo/demo.

Kurund
Found this reply helpful? Support CiviCRM

jeff porter

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 2
Re: $0 Price Sets
August 26, 2008, 06:37:57 am
Right, you add a field and make its price $0 (it won't let you)
Jeff Porter
Foundation for Prader-Willi Research (www.fpwr.org)

jeff porter

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 2
Re: $0 Price Sets
August 26, 2008, 06:38:35 am
Clicking on your link yields a non-recoverable error ?
Jeff Porter
Foundation for Prader-Willi Research (www.fpwr.org)

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: $0 Price Sets
August 26, 2008, 06:55:22 am
Jeff:

Sandbox is being reset. So  you have to again create the scenario. :(

Kurund
Found this reply helpful? Support CiviCRM

jeff porter

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 2
Re: $0 Price Sets
August 26, 2008, 06:06:37 pm
I did - still prevents you from creating a $0 item. 
Jeff Porter
Foundation for Prader-Willi Research (www.fpwr.org)

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: $0 Price Sets
August 27, 2008, 02:01:33 am
Check

Price Set with $0 item:
http://sandbox.civicrm.org/civicrm/admin/price/field?reset=1&action=browse&sid=1

Event with above price set:
http://sandbox.civicrm.org/civicrm/event/register?reset=1&action=preview&id=3

Kurund
Found this reply helpful? Support CiviCRM

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: $0 Price Sets
August 27, 2008, 02:17:41 am
Cool - and I see the option of having two items with same price has been implemented - keen to trawl through 2.1 properly and see all the new shiny bits.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

jeff porter

  • I post occasionally
  • **
  • Posts: 72
  • Karma: 2
Re: $0 Price Sets
August 27, 2008, 07:52:01 am
Great. So it works only with check items and not with numeric/text type items?  We were trying to create the $0 price set item using that data type. You get this (see attached)
Jeff Porter
Foundation for Prader-Willi Research (www.fpwr.org)

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: $0 Price Sets
August 28, 2008, 03:34:43 am
Yes you are right in v2.1 we don't allow 0 value for numeric/text type items.

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • $0 Price Sets

This forum was archived on 2017-11-26.