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
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.

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: 63
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: 63
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: 9201
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: 63
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 4 guests