OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Special request appear in email

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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Special request appear in email

Postby waluyo » Thu Aug 16, 2012 11:35 pm

I want to add special request to appear in the email. (manual payment notification)
I have this
Code: Select all
A manual payment needs to be processed for the conference {$schedConfName} and the user {$userFullName} (username "{$userName}").

The item being paid for is "{$itemName}".
The cost is {$itemCost} ({$itemCurrencyCode}).

Request : {$specialRequests}


the result does not give me what I want, but still print in its code
Code: Select all
Request : {$specialRequests}


What is the variable for special request?

Regards,
Waluyo
waluyo
 
Posts: 64
Joined: Wed Mar 14, 2012 4:46 pm
Location: UTHM - Malaysia

Re: Special request appear in email

Postby waluyo » Sun Aug 19, 2012 11:31 pm

I think I need to add a new parameter in
plugins/paymethod/manual/ManualPaymentPlugin.inc.php

after
$mail->assignParams(array(

some thing
Code: Select all
'specialRequests' =>........


Please, anyone can help me what is the correct code ......
so I can use variable $specialRequest in the body email of prepared "Manual Payment Notification"

Regards,
Waluyo
waluyo
 
Posts: 64
Joined: Wed Mar 14, 2012 4:46 pm
Location: UTHM - Malaysia

Re: Special request appear in email

Postby asmecher » Mon Aug 20, 2012 9:12 am

Hi Waluyo,

You can use something like this:
Code: Select all
$registrationDao =& DAORegistry::getDAO('RegistrationDAO');
$registration =& $registrationDao->getRegistration($queuedPayment->getAssocId());

$mail->assignParams(array(
  // ... other variables here ...
  'specialRequests' => $registration->getSpecialRequests(),
  // ... other variables here ...
));
Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Special request appear in email

Postby waluyo » Mon Aug 20, 2012 6:09 pm

Thank you,
it works

I am suggesting you to commit since this provides more flexibility to conference manager to modify the "manual payment notification" email.

Also it needs
'itemDescription' => $queuedPayment->getDescription(),

Thank you for your support

Regards,
Waluyo
waluyo
 
Posts: 64
Joined: Wed Mar 14, 2012 4:46 pm
Location: UTHM - Malaysia


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron