Hi Paul,
The description of the item is set in classes/payment/ocs/OCSQueuedPayment.inc.php in the getDescription function; that's the best place to add the conference name. Instead of:
- Code: Select all
case QUEUED_PAYMENT_TYPE_REGISTRATION:
return Locale::translate('payment.type.registration');
...you could use...
- Code: Select all
case QUEUED_PAYMENT_TYPE_REGISTRATION:
$conferenceDao =& DAORegistry::getDAO('ConferenceDAO');
$conference =& $conferenceDao->getConference($this->conferenceId);
return Locale::translate('payment.type.registration', array('conferenceTitle' => $conference->getTitle()));
You'd need to change the payment.type.registration key in the locale file (locale/en_US/locale.xml) to include the {$conferenceTitle} variable wherever you wanted it displayed.
Otherwise, the PayPalPaymentForm.inc.php class is probably the best place to make your changes. If you think they'd be suitable for inclusion in the next release, please consider submitting them to us as a unified patch (diff -u).
Regards,
Alec Smecher
Public Knowledge Project Team