Thanks DrByte! That must be the problem. The instructions in the readme are as follows:
Add line "define('DIR_WS_MONERIS', DIR_WS_INCLUDES. 'moneris/');" into /catalog/includes/configure.php.
But there's no "catalog" folder in my install. I wondered if it "catalog" was just a custom folder name where the plugin's author had his zen cart install, so I tried adding this line to pblic_html/includes/configure.php -- but the error message persists.
Excuse the ridiculously long post, but I thought I should post the entire contents of the readme file, just to make sure I'm not misreading it.
Thanks again for any help you can provide!
Dave
---README FILE:---
-
Extract all of the files from the Moneris zip package. Make sure all of the files in the package go into their appropriate folders.
-
Go to Admin > Tools > Install SQL Patch and upload the file "Moneris.sql". You should receive a message saying "2 statements processed"
-
Add the following code to the bottom of /catalog/includes/database_tables.php:
// Moneris Orders Table
define('TABLE_MONERIS_ORDERIDS', 'moneris_orderids');
-
Add line "define('DIR_WS_MONERIS', DIR_WS_INCLUDES. 'moneris/');" into /catalog/includes/configure.php.
In /catalog/includes/modules/checkout_process.php FIND THIS:
for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {
if ($order_totals[$i]['code'] == 'ot_subtotal') $order_subtotal = $order_totals[$i]['value'];
if ($$order_totals[$i]['code']->credit_class == true) $credits_applied += $order_totals[$i]['value'];
if ($order_totals[$i]['code'] == 'ot_total') $ototal = $order_totals[$i]['value'];
}
ADD AFTER:
$selected_processor = $payment_modules->selection();
if( $selected_processor[0]['id'] == 'moneriseselectplus' )
{
include(DIR_WS_MONERIS . 'insert_moneris_orderid.php');
}
In /catalog/admin/orders.php FIND THIS:
<?php
for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
echo ' <tr>' . "\n" .
' <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Text">' . $order->totals[$i]['title'] .
'</td>' . "\n" .
' <td align="right" class="'. str_replace('_', '-', $order->totals[$i]['class']) . '-Amount">' . $order->totals[$i]['text'] .
'</td>' . "\n" .
' </tr>' . "\n";
}
?>
</table></td>
</tr>
</table></td>
</tr>
ADD AFTER:
<?php
//Phet - Show eSelect Plus Order ID.
$eSelectPlus_order_id = $db->Execute("select moneris_orderid from " . TABLE_MONERIS_ORDERIDS . " where orders_id = " . $db->prepareInput($oID) );
if ($eSelectPlus_order_id->RecordCount() > 0)
{
echo ' <tr>' . "\n" .
' <td class="main">' . "\n" .
' <table border="1" cellspacing="0" cellpadding="5">' . "\n" .
' <tr>' . "\n" .
' <td class="smallText" align="center"><b>eSelect Plus Order ID</b></td>' . "\n" .
' </tr>';
while (!$eSelectPlus_order_id->EOF)
{
echo ' <tr>' . "\n" .
' <td class="smallText" align="center">' . $eSelectPlus_order_id->fields['moneris_orderid'] . '</td>' .
"\n" .
' </tr>' . "\n";
$eSelectPlus_order_id->MoveNext();
}
echo ' </table>' . "\n" .
' </td>' . "\n" .
' </tr>';
}
?>
- Log into the eSelectPlus Merchant Resource Center and create a DirectPost configuration (Admin ñ DirectPost Config).
Please select the ìPOSTî response method and set the Approved and Declined URLís to your ì/index.php?main_page=checkout_process.phpî file location. Select ìnoî for all
other options. For more information about our DirectPost method of integration, please refer to the DirectPost Integration Guide at
https://www3.moneris.com/connect/en/documents/index.html.
- Log into the Zen Cart administrative tool to enable the Moneris Solutions' eSelectPlus payment module and configure it to use your DirectPost
configurationís ps_store_id and hpp_key values.
- Follow the documentation on how to test Moneris here: https://www3.moneris.com/connect/en/download/feb05/PHP/eSELECTplus_PHP_IG.pdf
Skip to Section 8 How Do I Test My Solution? (P. 19).