Joomla Payment Form by Joomdonation — Plugin Edit Notes

This space is used to share personal notes for setting up and editing the PMF (Joomla Payment Form) extension by Joomdonation.

Payment Form Joomdonation

Please note, that the version these edits were made for is 4.2 — this was in May, 2016. Suitability for the latest version from Joomdonation in 2024 is unknown.

These are all the edits I made at the time;

  • Show All Payments in Control Panel
  • Trigger Datepicker with Input Field
  • Datepicker Cleanup
  • Confirmation Step GoBack Anchor Link
  • Change Error Bubble Location for Mobile

Show All Payments in Control Panel

This includes Pending, Review & Failed status.


change to (line 51):

//$query->where('(tbl.published=1 OR tbl.payment_method LIKE "os_offline%")');

Trigger Datepicker with Input Field

Change behavior to trigger the date selector popup by directly clicking the date input field. Copy over and override this file:


copy to /templates/yourtemplate/html/com_pmform/form/default.php


$fields = $this->form->getFields();


$dateFields = array();


foreach ($fields as $field)


if ($field->type == 'Date')
$dateFields[] = $field->name;




Note: Replace #showdate with correct name from custom fields

foreach ($dateFields as $fieldName)
$('#<?php echo $fieldName?>_img').click();

Hide the button on the right side with CSS override:

button#showdate_img { padding: 0 !important; }
div.controls div.input-append { display: block !important; }

Datepicker Cleanup

PMF Uses the Joomla core calendar. “DHTML Date/Time Selector.”, some old documentation can be found here –> These methods are really inconvenient and I wish there would be a better calendar system.


  • disable annoying effect that makes the calendar fields move on hover

.calendar thead .hilite { /* How do the buttons in header appear when hover */
background: #bbbbbb;
color: #000000;
/* border: 1px solid #cccccc; */
/* padding: 1px; */

  • hide bottom message bar, top left about calendar and top right close buttons

.calendar .hiderow .button, .footrow { display: none; }


  • add the ‘hiderow’ class used in css, and change title length to fit the absence of week numbers. aka. fix layout position.


row = Calendar.createElement("tr", thead); (row 771)


row.className = "hiderow"; // added line
var title_length = 8; // changed from 6


  • remove week numbers

param_default("weekNumbers",     false);

  • change date range

param_default("range", [2016, 2017]);

PS. replace with calendar-uncompressed.js and calendar-setup-uncompressed.js for easier editing. example:

mv calendar.js calendar.js.bak
mv calendar-setup.js calendar-setup.js.bak
cp calendar-uncompressed.js calendar.js
cp calendar-setup-uncompressed.js calendar-setup.js

Confirmation Step GoBack Anchor Link

By default when user chooses to go back to edit form details in the confirmation step, it just goes to the very top of the previous page. Like this we can implement anchor link positioning.


copy to /templates/yourtemplate/html/com_pmform/confirmation/default.php

<script type="text/javascript">
function goBack()
var form = document.adminForm;
form.action = '<?php echo base64_decode($this->formPageUrl); ?>#pmform' ;

Added “#pmform” anchor link to script. Then add <a name=”pmform”> </a> to form position on page.

Change Error Bubble Location for Mobile

The “this field is required” speech bubble jumps out of div and breaks mobile layout. To change position more to the left for example.



$(formId).validationEngine('attach', {

below add:

promptPosition : "topRight:-130",

Files to Edit Payment Pages

These files change code layout of payment related pages. Text strings contained can be edited within the component backend itself.

  • Payment confirmation page


copy to /templates/yourtemplate/html/com_pmform/confirmation/default.php

Note: the file was copied already in anchor link edit above

  • Redirecting to PayPal notice page


  • Cancelled payment page


copy to /templates/yourtemplate/html/com_pmform/cancel/default.php

Test URL —>

  • Successful payment page


copy to /templates/yourtemplate/html/com_pmform/complete/default.php

Fix Corner

Payment cancelation translation string is completely missing.



PM_CANCELLED="Payment Cancelled"

PMF is incompatible with “TheGrue Menu” module extension. Need to disable Touch Events or the form wont work properly at all.


Remove this code bit:

/* Touch Events
/* ------------------------------------ */
wipeLeft: function() {
// Close
$.sidr('close', 'sidr-main');
wipeRight: function() {
// Open
$.sidr('open', 'sidr-main');
preventDefaultEvents: false

If getting this or error message or similar:

This email address is being protected from spambots. You need JavaScript enabled to view it.” class=”inputbox validate[required,custom[email]]” size=”35″ />

—> Need to disable “Content – Email Cloaking” plugin.

Change to Simple Email Layout

Simple list of form fields and values followed by line-break.



return '<tr>' . '<td class="title_cell">' . $this->title . '</td>' . '<td class="field_cell">' . $fieldValue . '</td>' . ‘</tr>';

change to (example plain version):

return $this->title . ': ' . $fieldValue . '</br />';



<td class="title_cell">
<?php echo JText::_('PF_TOTAL_AMOUNT'); ?>
<?php echo PMFormHelper::formatCurrency($row->total_amount, $config); ?>

change to:

<br /><?php echo JText::_('PF_TOTAL_AMOUNT'); ?>: <?php echo PMFormHelper::formatCurrency($row->total_amount, $config); ?><br />


<td class="title_cell">
<?php echo JText::_('PF_PAYMENT_OPTION');?>
<?php echo JText::_($method->getTitle()); ?>

change to:

<?php echo JText::_('PF_PAYMENT_OPTION');?>: <?php echo JText::_($method->getTitle()); ?><br />


<td class="title_cell">
<?php echo JText::_('PF_TRANSACTION_ID');?>
<?php echo $row->transaction_id; ?>

change to:

<?php echo JText::_('PF_TRANSACTION_ID');?>: <?php echo $row->transaction_id; ?>



return '<tr>' . '<td class="title_cell">' . $this->title . '</td>' . '<td class="field_cell">' . $fieldValue . '</td>' . '</tr>';

change to:

return $this->title . ': ' . $fieldValue . '</br />';

Also I made some edits to the style sheet file at;


And that’s the end of my post.

Comments welcome on Joomdonation’s Payment Form plugin.
Thanks for visit and share if possible, please.

Leave a Comment