Moderators: jmacgreg, michael, John
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;
}So the question is: how should I give the registrants access to the 'publicly unavailable registration types'
Return to OCS Technical Support
Users browsing this forum: No registered users and 0 guests