OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Problems with registering unpaying participants

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

Problems with registering unpaying participants

Postby kjersti » Fri Feb 08, 2008 5:07 am

I am trying to make a registration type for unpaying customers(invited speakers etc.)which is paublicly unavailable and hidden and coded and since it has cost value 0,- this particular registration type would not be redirect the registrants to Paypal, as it is impossible to pay 0. The problems I experience however is that to me it seems that I have to tick a 'publicly available' registration type when enter a fee code.
So the question is: how should I give the registrants access to the 'publicly unavailable registration types' And the other problem is that if I have a registration type with cost value 0 they are still redirected to the PayPal site to pay.How can I avoid this?

Can you help me?

Kjersti
kjersti
 
Posts: 4
Joined: Fri Feb 08, 2008 3:01 am

Re: Problems with registering unpaying participants

Postby jmacgreg » Sat Feb 09, 2008 2:10 pm

Hi Kjersti,

This looks like a bug to me, and I'll report it as such -- there should indeed be a way to register with a conference with a special code, thereby avoiding paying a fee. OCS is currently undergoing active development towards the next release, so this may be addressed in the next little while.

In the meantime, I would suggest having your conference manager register your invited speakers, etc. themselves, through the registration interface.

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: Problems with registering unpaying participants

Postby roseknight » Mon Feb 09, 2009 2:54 pm

Hi James
I actually ran into the same problem. I need both payingfee registration type and nofee registration type. When the Paypal payment is turn on, both registration types redirect users to the PayPal interface, which is not necessary for the nofee registration users.
It is possible to let the conference manager to manually register these users. However, if there are quite a few nofee registrants, it will be tedious to manually register all of them.

Is that possible to fix this issue and publish a patch?

Thanks
Jun
roseknight
 
Posts: 14
Joined: Thu Feb 05, 2009 3:02 pm

Re: Problems with registering unpaying participants

Postby jmacgreg » Mon Feb 09, 2009 10:55 pm

Hi Jun,

Hrm, you posted a year to the day that I said I would post a bug report, but didn't. My apologies to Kjersti for not following up previously. I have posted a bug report here: http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=4054. Please feel free to Cc yourself to the report for any updates, and add any other comments as you see fit.

Cheers,
James
jmacgreg
 
Posts: 4190
Joined: Tue Feb 14, 2006 10:50 am

Re: Problems with registering unpaying participants

Postby jalperin » Thu Feb 12, 2009 7:25 am

Jun,

What would be your preferred way of this being handled? Should the registration complete entirely without any manual intervention? I was writing a bug fix, but I wasn't sure if it was prudent to let anyone fully register with the free registration type without any manual intervention. If you could explain your preferred workflow it would be helpful.

Thanks
jalperin
 
Posts: 156
Joined: Thu Jul 06, 2006 1:03 pm
Location: Buenos Aires

Re: Problems with registering unpaying participants

Postby roseknight » Thu Feb 12, 2009 3:32 pm

Hi Juan
Thank you very much for your reply.
What I expect to do is:
Define two registration types. One is PayFee registrant. The other one is NoFee registrant.
When a user chooses the PayFee registration type, he/she wil be redirected to the PayPal system to pay the conference fee. After paying the fee, he/she is redirected back to the conference website.
When a user choose the NoFee registration type, he/she will directly pass through without being directed to PayPal.

For a short-time solution, you may like to check whether the cost is 0. If Yes, it is a NoFee user. If No, it is a PayFee user. In the long run, you may like to change the user registration module. So far, it seems that all registraion types will be PayFee ones if the PayPal payment is enabled.

Thanks a lot for your support.

Jun
roseknight
 
Posts: 14
Joined: Thu Feb 05, 2009 3:02 pm

Re: Problems with registering unpaying participants

Postby jalperin » Sun Feb 15, 2009 4:36 pm

Jun,

You can easily add a check to see if its a noFee registration type and let the users register without being redirected to PayPal. However, you will have a situation where you are allowing anyone to fully register for your conference without ever making sure they qualify for the NoFee registration. I.e. there is no manual control and any person can register for free.

If this is what you'd like, I can post a patch for you shortly.

Juan
jalperin
 
Posts: 156
Joined: Thu Jul 06, 2006 1:03 pm
Location: Buenos Aires

Re: Problems with registering unpaying participants

Postby roseknight » Sun Feb 15, 2009 10:22 pm

Hi Juan
Thanks a lot for your reply. Your solution sounds great to me. Please post the patch.
To avoid malicious registrants, could you please add a validation check? Just like many forums, a set of random number or characters are generated. The registrant has to input this random number or string in a textfield to validate the registration.

Have a great day.
Jun
roseknight
 
Posts: 14
Joined: Thu Feb 05, 2009 3:02 pm

Re: Problems with registering unpaying participants

Postby jalperin » Mon Feb 16, 2009 6:22 am

Jun,

You can try out this patch. I haven't tested it thoroughly and you may want to change the message displayed.

Code: Select all
Index: classes/registration/form/UserRegistrationForm.inc.php
===================================================================
RCS file: /cvs/ocs2/classes/registration/form/UserRegistrationForm.inc.php,v
retrieving revision 1.17.2.1
diff -u -r1.17.2.1 UserRegistrationForm.inc.php
--- classes/registration/form/UserRegistrationForm.inc.php   3 Nov 2008 22:00:02 -0000   1.17.2.1
+++ classes/registration/form/UserRegistrationForm.inc.php   16 Feb 2009 13:16:58 -0000
@@ -275,7 +275,21 @@
       $queuedPayment =& $paymentManager->createQueuedPayment($schedConf->getConferenceId(), $schedConf->getSchedConfId(), QUEUED_PAYMENT_TYPE_REGISTRATION, $user->getUserId(), $registrationId, $cost, $registrationType->getCurrencyCodeAlpha());
       $queuedPaymentId = $paymentManager->queuePayment($queuedPayment, time() + (60 * 60 * 24 * 30)); // 30 days to complete
 
-      $paymentManager->displayPaymentForm($queuedPaymentId, $queuedPayment);
+      // check for free registration and skip payment in that case
+      if ( $cost == 0 ) {
+         $paymentManager->fulfillQueuedPayment($queuedPaymentId, $queuedPayment);
+         
+         $templateMgr =& TemplateManager::getManager();
+         $templateMgr->assign(array(
+            'currentUrl' => Request::url(null, null, 'index'),
+            'pageTitle' => 'schedConf.registration',
+            'message' => 'schedConf.registration.alreadyRegisteredAndPaid'
+         ));
+         $templateMgr->display('common/message.tpl');
+         exit();         
+      } else {
+         $paymentManager->displayPaymentForm($queuedPaymentId, $queuedPayment);
+      }
 
       return true;
    }


To change the message displayed change the locale key in the line with 'message' => 'schedConf.registration...' to use a different locale key (and make sure the key is in your locale.xml file).

Good luck,
jalperin
 
Posts: 156
Joined: Thu Jul 06, 2006 1:03 pm
Location: Buenos Aires

Re: Problems with registering unpaying participants

Postby roseknight » Mon Feb 16, 2009 2:48 pm

Thanks Juan.
the patch works well for me.

Have a good day.
Jun
roseknight
 
Posts: 14
Joined: Thu Feb 05, 2009 3:02 pm

Re: Problems with registering unpaying participants

Postby jpmcc » Wed Sep 30, 2009 1:06 pm

Worked for me too. I have updated the bug report http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=4054 with a link to your patch and a request that it should be included in the core OCS product

Thanks - John
jpmcc
 
Posts: 9
Joined: Wed Jul 15, 2009 11:19 am

Re: Problems with registering unpaying participants

Postby asmecher » Wed Sep 30, 2009 4:17 pm

Hi all,

Juan's suggestion in this thread is the best work-around for OCS 2.1.2. The change is implemented for OCS 2.3, which will be released soon.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9050
Joined: Wed Aug 10, 2005 12:56 pm

Re: Problems with registering unpaying participants

Postby jpmcc » Thu Oct 01, 2009 12:45 am

Good news. Thanks!
jpmcc
 
Posts: 9
Joined: Wed Jul 15, 2009 11:19 am

Re: Problems with registering unpaying participants

Postby Robertb » Thu Jun 14, 2012 8:10 am

Hi everybody,

there is still one issue, which was not resolved from the initial post:

So the question is: how should I give the registrants access to the 'publicly unavailable registration types'


I got the same issue... I would like to add a booking option for local participants with a reduced conference fee, but the option should not be visible to regular registrants.

I think this could be done by either providing a direct linkto the hidden registration type (which can be distributed among local participants) or by a "fee code" which reduces the fee of the regular registration to a predefined reduced rate during the process.

Is there any way to do such things in the current state of OCS?

Thanks a lot,
Robert
Robertb
 
Posts: 1
Joined: Thu Jun 14, 2012 6:48 am


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest