First, make sure you re-wrote your freecharger_2.php to be freecharger2.php and use:
freecharger2
FREECHARGER2
Next, customize the 3 class files:
/includes/classes/order.php
and around line 582 change to:
Code:
if ($_SESSION['payment'] != 'freecharger' && $_SESSION['payment'] != 'freecharger2') {
/includes/classes/payment.php
and change the code around line 39 to:
Code:
// Free Payment Only shows
if ((zen_get_configuration_key_value('MODULE_PAYMENT_FREECHARGER_STATUS') || zen_get_configuration_key_value('MODULE_PAYMENT_FREECHARGER2_STATUS')) and ($_SESSION['cart']->show_total()==0 and $_SESSION['shipping']['cost']== 0)) {
$this->selected_module = $module;
if (file_exists(DIR_FS_CATALOG . DIR_WS_MODULES . '/payment/' . 'freecharger.php')) {
$include_modules[] = array('class'=> 'freecharger', 'file' => 'freecharger.php');
}
if (file_exists(DIR_FS_CATALOG . DIR_WS_MODULES . '/payment/' . 'freecharger2.php')) {
$include_modules[] = array('class'=> 'freecharger2', 'file' => 'freecharger2.php');
}
/includes/classes/order_total.php
and change the code around line 216 to:
Code:
if ( $difference <= 0.009 && ($_SESSION['payment'] != 'freecharger' && $_SESSION['payment'] != 'freecharger2')) {
That should allow for both Free Charger files to work ...
Bookmarks