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) »
  • Only pay later possibility?
Pages: [1]

Author Topic: Only pay later possibility?  (Read 806 times)

frinaldi

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.17
  • MySQL version: 5.1.48
  • PHP version: 5.2.10
Only pay later possibility?
July 11, 2011, 12:26:11 am
Dear all,

I'd like to know if there's a way to force the event payment processor to be ONLY "pay later" ; I'm interesting in this feature because I'd like to use the payment sets to calculate a global price but this price should be review manually by the event team ; then, an email will be send to the participant with the real amount.

I try to disable ALL payment processor but without any success.

I'm using civiCRM 3.1 under Drupal.

Fred

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: Only pay later possibility?
July 11, 2011, 01:17:53 am

you will need to do this via the buildform hook and enable it 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

frinaldi

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.17
  • MySQL version: 5.1.48
  • PHP version: 5.2.10
Re: Only pay later possibility?
July 11, 2011, 02:46:46 am
Thank your for your quick answer ; I find the way to create to the correct hook, but I don't understand how to manage the form object, and so how to force the "pay later" option, in order to hide it to the participant.

Can you give me a link or a sample to better understand this.

One more time, many thanks for your help

nealzarka

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: civicrm 4
  • CMS version: drupal 7
  • MySQL version: 5.0.92-community-log
  • PHP version: 5.2.9
Re: Only pay later possibility?
July 11, 2011, 03:09:40 am
isn't it more simply to hide it with css ? so no need to touch the core code !

frinaldi

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.17
  • MySQL version: 5.1.48
  • PHP version: 5.2.10
Re: Only pay later possibility?
July 11, 2011, 03:21:01 am
Yes it's easier but I need at least to set the pay later option to yes (using javascript???) and hide the payment section using css...but for me it isn't so clean.

So I'd rather do it use code.

But I don't find, for the moment, how to say :

Code: [Select]
$form->setValue('is_pay_later', true);
or something like that

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: Only pay later possibility?
July 11, 2011, 08:17:12 am

doing it in jQuery might be a lot easier and not touch any core files. Check:

http://civicrm.org/blogs/dave-greenberg/now-its-easier-add-custom-behaviors-templates

if you still want to do this via a hook, check:

http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification

also check in your distro: drupal/civitest.module.sample (and search for setDefaults)

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

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: Only pay later possibility?
July 11, 2011, 01:55:20 pm
I don't quite understand the original scenario - if we want an event to be only Pay Later then on the 'Fees' screen of the Configure Event, we opt not to show any Payment Processor and turn on Pay Later - then if we don't want that showing we can hide in the tpl.
Are you trying to get around having to tick the Pay Later when you are creating any Event?
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

nealzarka

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: civicrm 4
  • CMS version: drupal 7
  • MySQL version: 5.0.92-community-log
  • PHP version: 5.2.9
Re: Only pay later possibility?
July 12, 2011, 01:23:16 am
yes strange ... if pay later have to be there i would put it in the HTML header with all informations and turn the registration as free

frinaldi

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6.17
  • MySQL version: 5.1.48
  • PHP version: 5.2.10
Re: Only pay later possibility?
July 13, 2011, 04:20:59 am
Hello and thank you for yours answers

My scenario is the following.
We would like to notify the participant about the fee he will pay, according to the hotel he'll select.

So I define a price set to describe the hotel fees.

But, I don't want, when the participant subscibe online, that he pay now, because our "event team" should add extra fee ; because there's no way to use a price set without a payment processor, I'm looking for a way to auto-select the pay later option AND to hide the immediate payment section.

But my problem is how I can handle this in the code.

I don't know if I'm clear enough...

Thanks

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: Only pay later possibility?
July 13, 2011, 12:56:16 pm
I still don't understand this statement
Quote
because there's no way to use a price set without a payment processor

Can't you set the Event up so it does not have a payment processor?
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

nealzarka

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
  • CiviCRM version: civicrm 4
  • CMS version: drupal 7
  • MySQL version: 5.0.92-community-log
  • PHP version: 5.2.9
Re: Only pay later possibility?
July 13, 2011, 09:46:41 pm
ok i understand, you want an automatique payment calcul + only paylater, so actually you are using a civicrm only to provide the information and registration calculation  without payement, i think you should add an obligation to pay later option + hide the other payment by css  ---> dont ask me i don't know how to add this option --> look at the code for the other price style and copy the condition (sorry im so lame)

sussdorff

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 4
  • CiviCRM version: 3.4
  • CMS version: Drupal 6
Re: Only pay later possibility?
July 22, 2011, 05:59:21 am
We have a hook developed in our system which lets us enforce "Pay later" for members of a certain group. We did this because we have members which gave their approval for a direct debit transfer and we wanted to enforce them to pay with direct debit :-).

Though there exists the possibility for a direct debit payment processor we at that time took the different route as our bookkeeping system contains the bank information of our members (and not civicrm for data security reasons). Now whenever a participant is confirmed (pending from pay later), we will send a record to the bookkeeping system which will create an open position for this person. This enables the bookkeeper to issue direct debits and deal with payments received.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Only pay later possibility?

This forum was archived on 2017-11-26.