problemi con contrib. Unallowed Payment

Questo forum è dedicato alle discussioni riguardanti le contribution per osCommerce

Moderatore: mod Generali

Rispondi
Avatar utente
gameshock
membro Junior
membro Junior
Messaggi: 12
Iscritto il: 03/03/2005, 1:00
Località: Italy
Contatta:

problemi con contrib. Unallowed Payment

Messaggio da gameshock »

sto tentando di istallare questa contrib. (utilissima a mio parere) nel Total pack di Simona

http://www.oscommerce.com/community/contributions,1031

ma ho alcuni problemi nel file catalog/admin/customers.php

ovvero dovrei inserire questo codice :
<!-- START START PAYMENT_UNALLOWED -->
</table>
</td>
<td width="50%" valign="top" class="main">
<table cellspacing="0" cellpadding="0" border="0" align="right">
<tr>
<td class="formArea">
<table border="0" cellspacing="0" cellpadding="2">
<tr class="dataTableHeadingRow">
<td align="center" class="dataTableHeadingContent">*</td>
<td class="dataTableHeadingContent"><?php echo ENTRY_PAYMENT_UNALLOWED; ?></td>
</tr>
<?php
$module_active = explode (";",MODULE_PAYMENT_INSTALLED);
$installed_modules = array();
for ($i = 0, $n = sizeof($directory_array); $i < $n; $i++) {
$file = $directory_array[$i];
if (in_array ($directory_array[$i], $module_active)) {
include(DIR_FS_CATALOG_LANGUAGES . $language . '/modules/payment/' . $file);
include($module_directory . $file);

$class = substr($file, 0, strrpos($file, '.'));
if (tep_class_exists($class)) {
$module = new $class;
if ($module->check() > 0) {
$installed_modules[] = $file;
}
}
?>
<td class="dataTableContent">
<?php echo tep_draw_checkbox_field('payment_unallowed[' . $i . ']', $module->code , (in_array ($module->code, $payments_unallowed)) ? 1 : 0); ?></td>
<td class="dataTableContent"><?php echo $module->title; ?></td>
</tr>
<?php
if ($HTTP_POST_VARS['payment_unallowed'][$i]) {
$HTTP_POST_VARS['customers_payment_unallowed'] .= $HTTP_POST_VARS['payment_unallowed'][$i] . ',';
}
}
}
}
?></td>
</tr>
</table>
</td></tr>
</table>
</tr>
dopo
echo tep_draw_input_field('customers_email_address', $cInfo->customers_email_address, 'maxlength="96"', true);
}
?></td>
</tr>
in questa parte della pagina
<?php
if ($error == true) {
if ($entry_email_address_error == true) {
echo tep_draw_input_field('customers_email_address', $cInfo->customers_email_address, 'maxlength="96"') . ' ' . ENTRY_EMAIL_ADDRESS_ERROR;
} elseif ($entry_email_address_check_error == true) {
echo tep_draw_input_field('customers_email_address', $cInfo->customers_email_address, 'maxlength="96"') . ' ' . ENTRY_EMAIL_ADDRESS_CHECK_ERROR;
} elseif ($entry_email_address_exists == true) {
echo tep_draw_input_field('customers_email_address', $cInfo->customers_email_address, 'maxlength="96"') . ' ' . ENTRY_EMAIL_ADDRESS_ERROR_EXISTS;
} else {
echo $customers_email_address . tep_draw_hidden_field('customers_email_address');
}
} else {
echo tep_draw_input_field('customers_email_address', $cInfo->customers_email_address, 'maxlength="96"', true);
}
?></td>
</tr>

<!--PIVACF start-->
<?php if (ACCOUNT_CF == 'true') { ?>
<tr>
<td class="main"><?php echo ENTRY_CF; ?></td>
<td class="main"><?php
if (ACCOUNT_CF_REQ == 'true') echo tep_draw_input_field('entry_cf', $cInfo->entry_cf, 'maxlength="16"', true);
else echo tep_draw_input_field('entry_cf', $cInfo->entry_cf, 'maxlength="16"'); ?></td>
</tr>
<?php } ?>
<!--PIVACF end-->

</table></td>
</tr>
<?php
if (ACCOUNT_COMPANY == 'true') {
?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="formAreaTitle"><?php echo CATEGORY_COMPANY; ?></td>
</tr>
<tr>
<td class="formArea"><table border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="main"><?php echo ENTRY_COMPANY; ?></td>
<td class="main">
<?php
if ($error == true) {
if ($entry_company_error == true) {
echo tep_draw_input_field('entry_company', $cInfo->entry_company, 'maxlength="32"') . ' ' . ENTRY_COMPANY_ERROR;
} else {
echo $cInfo->entry_company . tep_draw_hidden_field('entry_company');
}
} else {
echo tep_draw_input_field('entry_company', $cInfo->entry_company, 'maxlength="32"');
}
?></td>
</tr>
seguendo il passaggio indicato la pagina si apre con le celle sballate e mi trancia via tutti i campi sopra il Nome Azienda, qualcuno può aiutarmi?
Rispondi