point 1,60

Questo forum è dedicato alle discussioni riguardanti le contribution per osCommerce

Moderatore: mod Generali

Avatar utente
oversize
membro Senior
membro Senior
Messaggi: 280
Iscritto il: 28/07/2005, 18:54
Località: carrara
Contatta:

point 1,60

Messaggio da oversize »

www.bigmuscle.it
www.erboristeria-benessere.com

integratori sportivi,proteine,aminoacidi,creatina,glutammina.
sara75
membro Regular
membro Regular
Messaggi: 199
Iscritto il: 18/06/2004, 0:00
Località: Torino- Brescia
Contatta:

Messaggio da sara75 »

Ma hai attivato il modulo in Moduli -> Totale Ordini ?
Immagine
Prima regola: Fai un backup prima di modificare il codice.
Seconda regola: Ti sei ricordato di fare un backup ?
Avatar utente
oversize
membro Senior
membro Senior
Messaggi: 280
Iscritto il: 28/07/2005, 18:54
Località: carrara
Contatta:

Messaggio da oversize »

mi da questo errore in moduli totale ordine


Warning: main(/home/bigmasww/public_html/includes/languages/italian/modules/order_total/ot_redemptions.php): failed to open stream: No such file or directory in /home/bigmasww/public_html/admin/modules.php on line 128

Warning: main(): Failed opening '/home/bigmasww/public_html/includes/languages/italian/modules/order_total/ot_redemptions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bigmasww/public_html/admin/modules.php on line 128
www.bigmuscle.it
www.erboristeria-benessere.com

integratori sportivi,proteine,aminoacidi,creatina,glutammina.
Avatar utente
oversize
membro Senior
membro Senior
Messaggi: 280
Iscritto il: 28/07/2005, 18:54
Località: carrara
Contatta:

Messaggio da oversize »

questo è il file:


<?php
/*
$Id: modules.php,v 1.47 2003/06/29 22:50:52 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

require('includes/application_top.php');

$set = (isset($HTTP_GET_VARS['set']) ? $HTTP_GET_VARS['set'] : '');

if (tep_not_null($set)) {
switch ($set) {
case 'shipping':
$module_type = 'shipping';
$module_directory = DIR_FS_CATALOG_MODULES . 'shipping/';
$module_key = 'MODULE_SHIPPING_INSTALLED';
define('HEADING_TITLE', HEADING_TITLE_MODULES_SHIPPING);
break;
case 'ordertotal':
$module_type = 'order_total';
$module_directory = DIR_FS_CATALOG_MODULES . 'order_total/';
$module_key = 'MODULE_ORDER_TOTAL_INSTALLED';
define('HEADING_TITLE', HEADING_TITLE_MODULES_ORDER_TOTAL);
break;
case 'payment':
default:
$module_type = 'payment';
$module_directory = DIR_FS_CATALOG_MODULES . 'payment/';
$module_key = 'MODULE_PAYMENT_INSTALLED';
define('HEADING_TITLE', HEADING_TITLE_MODULES_PAYMENT);
break;
}
}

$action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');

if (tep_not_null($action)) {
switch ($action) {
case 'save':
while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
}
tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']));
break;
case 'install':
case 'remove':
$file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
$class = basename($HTTP_GET_VARS['module']);
if (file_exists($module_directory . $class . $file_extension)) {
include($module_directory . $class . $file_extension);
$module = new $class;
if ($action == 'install') {
$module->install();
} elseif ($action == 'remove') {
$module->remove();
}
}
tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class));
break;
}
}
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<script language="javascript" src="includes/general.js"></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_MODULES; ?></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_SORT_ORDER; ?></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td>
</tr>
<?php
$file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
$directory_array = array();
if ($dir = @dir($module_directory)) {
while ($file = $dir->read()) {
if (!is_dir($module_directory . $file)) {
if (substr($file, strrpos($file, '.')) == $file_extension) {
$directory_array[] = $file;
}
}
}
sort($directory_array);
$dir->close();
}

$installed_modules = array();
for ($i=0, $n=sizeof($directory_array); $i<$n; $i++) {
$file = $directory_array[$i];

include(DIR_FS_CATALOG_LANGUAGES . $language . '/modules/' . $module_type . '/' . $file);
include($module_directory . $file);

$class = substr($file, 0, strrpos($file, '.'));
if (tep_class_exists($class)) {
$module = new $class;
if ($module->check() > 0) {
if ($module->sort_order > 0) {
$installed_modules[$module->sort_order] = $file;
} else {
$installed_modules[] = $file;
}
}

if ((!isset($HTTP_GET_VARS['module']) || (isset($HTTP_GET_VARS['module']) && ($HTTP_GET_VARS['module'] == $class))) && !isset($mInfo)) {
$module_info = array('code' => $module->code,
'title' => $module->title,
'description' => $module->description,
'status' => $module->check());

$module_keys = $module->keys();

$keys_extra = array();
for ($j=0, $k=sizeof($module_keys); $j<$k; $j++) {
$key_value_query = tep_db_query("select configuration_title, configuration_value, configuration_description, use_function, set_function from " . TABLE_CONFIGURATION . " where configuration_key = '" . $module_keys[$j] . "'");
$key_value = tep_db_fetch_array($key_value_query);

$keys_extra[$module_keys[$j]]['title'] = $key_value['configuration_title'];
$keys_extra[$module_keys[$j]]['value'] = $key_value['configuration_value'];
$keys_extra[$module_keys[$j]]['description'] = $key_value['configuration_description'];
$keys_extra[$module_keys[$j]]['use_function'] = $key_value['use_function'];
$keys_extra[$module_keys[$j]]['set_function'] = $key_value['set_function'];
}

$module_info['keys'] = $keys_extra;

$mInfo = new objectInfo($module_info);
}

if (isset($mInfo) && is_object($mInfo) && ($class == $mInfo->code) ) {
if ($module->check() > 0) {
echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class . '&action=edit') . '\'">' . "\n";
} else {
echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">' . "\n";
}
} else {
echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class) . '\'">' . "\n";
}
?>
<td class="dataTableContent"><?php echo $module->title; ?></td>
<td class="dataTableContent" align="right"><?php if (is_numeric($module->sort_order)) echo $module->sort_order; ?></td>
<td class="dataTableContent" align="right"><?php if (isset($mInfo) && is_object($mInfo) && ($class == $mInfo->code) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif'); } else { echo '<a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td>
</tr>
<?php
}
}

ksort($installed_modules);
$check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = '" . $module_key . "'");
if (tep_db_num_rows($check_query)) {
$check = tep_db_fetch_array($check_query);
if ($check['configuration_value'] != implode(';', $installed_modules)) {
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . implode(';', $installed_modules) . "', last_modified = now() where configuration_key = '" . $module_key . "'");
}
} else {
tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Installed Modules', '" . $module_key . "', '" . implode(';', $installed_modules) . "', 'This is automatically updated. No need to edit.', '6', '0', now())");
}
?>
<tr>
<td colspan="3" class="smallText"><?php echo TEXT_MODULE_DIRECTORY . ' ' . $module_directory; ?></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();

switch ($action) {
case 'edit':
$keys = '';
reset($mInfo->keys);
while (list($key, $value) = each($mInfo->keys)) {
$keys .= '<b>' . $value['title'] . '</b><br>' . $value['description'] . '<br>';

if ($value['set_function']) {
eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
} else {
$keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']);
}
$keys .= '<br><br>';
}
$keys = substr($keys, 0, strrpos($keys, '<br><br>'));

$heading[] = array('text' => '<b>' . $mInfo->title . '</b>');

$contents = array('form' => tep_draw_form('modules', FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'] . '&action=save'));
$contents[] = array('text' => $keys);
$contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
$heading[] = array('text' => '<b>' . $mInfo->title . '</b>');

if ($mInfo->status == '1') {
$keys = '';
reset($mInfo->keys);
while (list(, $value) = each($mInfo->keys)) {
$keys .= '<b>' . $value['title'] . '</b><br>';
if ($value['use_function']) {
$use_function = $value['use_function'];
if (ereg('->', $use_function)) {
$class_method = explode('->', $use_function);
if (!is_object(${$class_method[0]})) {
include(DIR_WS_CLASSES . $class_method[0] . '.php');
${$class_method[0]} = new $class_method[0]();
}
$keys .= tep_call_function($class_method[1], $value['value'], ${$class_method[0]});
} else {
$keys .= tep_call_function($use_function, $value['value']);
}
} else {
$keys .= $value['value'];
}
$keys .= '<br><br>';
}
$keys = substr($keys, 0, strrpos($keys, '<br><br>'));

$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=remove') . '">' . tep_image_button('button_module_remove.gif', IMAGE_MODULE_REMOVE) . '</a> <a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . (isset($HTTP_GET_VARS['module']) ? '&module=' . $HTTP_GET_VARS['module'] : '') . '&action=edit') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
$contents[] = array('text' => '<br>' . $mInfo->description);
$contents[] = array('text' => '<br>' . $keys);
} else {
$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $mInfo->code . '&action=install') . '">' . tep_image_button('button_module_install.gif', IMAGE_MODULE_INSTALL) . '</a>');
$contents[] = array('text' => '<br>' . $mInfo->description);
}
break;
}

if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
echo ' <td width="25%" valign="top">' . "\n";

$box = new box;
echo $box->infoBox($heading, $contents);

echo ' </td>' . "\n";
}
?>
</tr>
</table></td>
</tr>
</table></td>
<!-- body_text_eof //-->
</tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
www.bigmuscle.it
www.erboristeria-benessere.com

integratori sportivi,proteine,aminoacidi,creatina,glutammina.
sara75
membro Regular
membro Regular
Messaggi: 199
Iscritto il: 18/06/2004, 0:00
Località: Torino- Brescia
Contatta:

Messaggio da sara75 »

oversize ha scritto:mi da questo errore in moduli totale ordine


Warning: main(/home/bigmasww/public_html/includes/languages/italian/modules/order_total/ot_redemptions.php): failed to open stream: No such file or directory in /home/bigmasww/public_html/admin/modules.php on line 128

Warning: main(): Failed opening '/home/bigmasww/public_html/includes/languages/italian/modules/order_total/ot_redemptions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/bigmasww/public_html/admin/modules.php on line 128
Questo errore significa che non c'è la traduzione in languages/italian/modules/oreder_total del file ot_redemptions.php
Inseririsci quel file (probabilmente nella contrib c'era solo per l'inglese!), nella cartella che ti ho indicato e imposta il modulo, vedrai che poi funziona :wink:
Immagine
Prima regola: Fai un backup prima di modificare il codice.
Seconda regola: Ti sei ricordato di fare un backup ?
Avatar utente
oversize
membro Senior
membro Senior
Messaggi: 280
Iscritto il: 28/07/2005, 18:54
Località: carrara
Contatta:

Messaggio da oversize »

ora in MODULI>TOTALE ORDINE è apparso POINTS REEDEMPITION, poi lo tradurro', ho provato a fare un ordine : questo è quell oche viene scritto alla fine dell'ordine:

Sub-Totale: 22.00EUR
PaccoOrdinario (Tariffa): 7.00EUR
Totale: 29.00EUR
Points Redeemed(500 x 0.04EUR): -20.00EUR

è giusto cosi o dovrebbe dare il totale gia scontato dei punti ( 9 euro)???
questa è l'email di conferma che mi arriva:

Numero Ordine: 1512
Dettagli Ordine: http://www.bigmuscle.it/.....
Data di Ordine: sabato 15 aprile, 2006

Prodotti
------------------------------------------------------
1 x 001-whey amino explode 180 capsule da 2300 mg () = 22.00EUR
------------------------------------------------------
Sub-Totale: 22.00EUR
PaccoOrdinario (Tariffa): 7.00EUR
Totale: 29.00EUR
Points Redeemed(500 x 0.04EUR): -20.00EUR

Indirizzo di Spedizione



è tutto giusto? :?:

_______________________________
ultima cosa:
quando vado in admin a confermare i punti mi arriva questa email :

EMAIL_GREET_MR
EMAIL_TEXT
EMAIL_TEXT_BALANCE_CONFIRMED
EMAIL_TEXT_ORDER_NUMBER 151
EMAIL_TEXT_DATE_ORDERED sabato 15 aprile, 2006
TABLE_HEADING_POINTS = 2.00
TABLE_HEADING_POINTS_VALUE 0.08EUR
EMAIL_TEXT_BALANCE 771.00 TABLE_HEADING_POINTS_VALUE = 30.84EUR
EMAIL_TEXT_POINTS_URL
http://www.bigmuscle.it/my_points.php
EMAIL_TEXT_SUCCESS_POINTS
EMAIL_CONTACT

EMAIL_SEPARATOR
BIGMUSCLE.


quale è il file da modificare?
www.bigmuscle.it
www.erboristeria-benessere.com

integratori sportivi,proteine,aminoacidi,creatina,glutammina.
Bass
membro Master
membro Master
Messaggi: 3593
Iscritto il: 18/04/2004, 0:00
Località: Varese
Contatta:

Messaggio da Bass »

oversize ha scritto: è giusto cosi o dovrebbe dare il totale gia scontato dei punti ( 9 euro)???
questa è l'email di conferma che mi arriva:
Nell'ordinamento in order total devi mettere prima lo sconto e poi il totale

'iao

Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto

http://www.semilandia.it
sara75
membro Regular
membro Regular
Messaggi: 199
Iscritto il: 18/06/2004, 0:00
Località: Torino- Brescia
Contatta:

Messaggio da sara75 »

oversize ha scritto: ultima cosa:
quando vado in admin a confermare i punti mi arriva questa email :

EMAIL_GREET_MR
EMAIL_TEXT
EMAIL_TEXT_BALANCE_CONFIRMED
EMAIL_TEXT_ORDER_NUMBER 151
EMAIL_TEXT_DATE_ORDERED sabato 15 aprile, 2006
TABLE_HEADING_POINTS = 2.00
TABLE_HEADING_POINTS_VALUE 0.08EUR
EMAIL_TEXT_BALANCE 771.00 TABLE_HEADING_POINTS_VALUE = 30.84EUR
EMAIL_TEXT_POINTS_URL
http://www.bigmuscle.it/my_points.php
EMAIL_TEXT_SUCCESS_POINTS
EMAIL_CONTACT

EMAIL_SEPARATOR
BIGMUSCLE.


quale è il file da modificare?
Mi sembra che ti manchi il file customers_points_pending.php in includes/languages/italian

:)
Immagine
Prima regola: Fai un backup prima di modificare il codice.
Seconda regola: Ti sei ricordato di fare un backup ?
Avatar utente
oversize
membro Senior
membro Senior
Messaggi: 280
Iscritto il: 28/07/2005, 18:54
Località: carrara
Contatta:

Messaggio da oversize »

in effetti il file non c'era

è questo giusto???

_______________
<?php
/*
$Id: customers_points_pending.php, v 1.60 2005/NOV/03 22:05:00 dgw_ Exp $
http://www.deep-silver.com

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2005 osCommerce

Released under the GNU General Public License
*/

require('includes/application_top.php');

require(DIR_WS_CLASSES . 'currencies.php');
$currencies = new currencies();

// drop-down filter array
$filter_selection_array = array( array('id' => '1', 'text' => TEXT_POINTS_PENDING),
array('id' => '2', 'text' => TEXT_POINTS_CONFIRMED),
array('id' => '3', 'text' => TEXT_POINTS_CANCELLED),
array('id' => '4', 'text' => TEXT_ALL_ORDERS));


$action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : '');

if (tep_not_null($action)) {
switch ($action) {

case 'confirmconfirm':
$oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);

$customer_query = tep_db_query('select customer_id, date_added, points_pending, status from '. TABLE_CUSTOMERS_POINTS_PENDING .' where status = 1 and orders_id = '. $oID);
$customer_points = tep_db_fetch_array($customer_query);

if ($customer_points['status'] == 1) {
tep_db_query('update '. TABLE_CUSTOMERS . ' set customers_shopping_points = customers_shopping_points + '. $customer_points['points_pending'] . 'where customers_id = '. $customer_points['customer_id']);
}

$customer_notified = '0';
$customer_query = tep_db_query("select customers_lastname, customers_firstname, customers_gender, customers_email_address, customers_shopping_points from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_points['customer_id'] . "'");
$customer = tep_db_fetch_array($customer_query);
$balance = $customer['customers_shopping_points'];
$gender = $customer['customers_gender'];
$first_name = $customer['customers_firstname'];
$last_name = $customer['customers_lastname'];
$name = $first_name . ' ' . $last_name;

if (isset($HTTP_POST_VARS['notify']) && ($HTTP_POST_VARS['notify'] == 'on')) {
if (ACCOUNT_GENDER == 'true') {
if ($gender == 'm') {
$greet = sprintf(EMAIL_GREET_MR, $last_name);
} else {
$greet = sprintf(EMAIL_GREET_MS, $last_name);
}

} else {

$greet = sprintf(EMAIL_GREET_NONE, $first_name);
}

$email_text = $greet . "\n" . EMAIL_TEXT . "\n" . EMAIL_TEXT_BALANCE_CONFIRMED . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($customer_points['date_added']) . "\n" . TABLE_HEADING_POINTS . ' = ' . number_format($customer_points['points_pending'],2) . "\n" . TABLE_HEADING_POINTS_VALUE . ' ' . $currencies->format($customer_points['points_pending'] * REDEEM_POINT_VALUE) . "\n" . EMAIL_TEXT_BALANCE . ' ' . $balance . ' ' . TABLE_HEADING_POINTS_VALUE . ' = ' . $currencies->format($balance * REDEEM_POINT_VALUE) . "\n" . EMAIL_TEXT_POINTS_URL . "\n" . tep_catalog_href_link(FILENAME_CATALOG_MY_POINTS) . "\n" . EMAIL_TEXT_SUCCESS_POINTS . "\n" . EMAIL_CONTACT . "\n\n" . EMAIL_SEPARATOR . "\n" . '<b>' . STORE_NAME . '</b>.' . "\n\n";

tep_mail($name, $customer['customers_email_address'], EMAIL_TEXT_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

$customer_notified = '1';
$messageStack->add_session(sprintf(NOTICE_EMAIL_SENT_TO, $name . '( ' . $customer['customers_email_address']. ').'), 'success');
}

if (isset($HTTP_POST_VARS['queue_confirm'])) {
tep_db_query('update '. TABLE_CUSTOMERS_POINTS_PENDING . ' set status = 2 where status = 1 and orders_id = '. $oID);

} else {

$messageStack->add_session(NOTICE_RECORED_REMOVED, 'warning');
tep_db_query("delete from " . TABLE_CUSTOMERS_POINTS_PENDING . " where orders_id = '" . $oID . "'");
}
$messageStack->add_session(SUCCESS_POINTS_UPDATED, 'success');
tep_redirect(tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action'))));
break;
case 'confirmcancel':
$oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
$comment = $HTTP_POST_VARS['comment'];

$database_queue = '0';
if (isset($HTTP_POST_VARS['queue_cancel'])) {
tep_db_query('update '. TABLE_CUSTOMERS_POINTS_PENDING . ' set status = 3, comment = \''. $comment . '\' where status = 1 and orders_id = '. $oID);
$database_queue = '1';
$messageStack->add_session(SUCCESS_DATABASE_UPDATED, 'success');

$customer_notified = '0';
$customer_query = tep_db_query('select customer_id, date_added, points_pending from '. TABLE_CUSTOMERS_POINTS_PENDING .' where orders_id = '. $oID);
$customer_points = tep_db_fetch_array($customer_query);

$customer_query = tep_db_query("select customers_lastname, customers_firstname, customers_gender, customers_email_address, customers_shopping_points from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_points['customer_id'] . "'");
$customer = tep_db_fetch_array($customer_query);
$balance = $customer['customers_shopping_points'];
$gender = $customer['customers_gender'];
$first_name = $customer['customers_firstname'];
$last_name = $customer['customers_lastname'];
$name = $first_name . ' ' . $last_name;

if (isset($HTTP_POST_VARS['notify']) && ($HTTP_POST_VARS['notify'] == 'on')) {
$notify_comment = '';
if (isset($HTTP_POST_VARS['comment']) && tep_not_null($comment)) {
$notify_comment = sprintf(EMAIL_TEXT_COMMENT . ' ' . $comment) . "\n";
$customer_balance = '';
$success = '';
if ($customer['customers_shopping_points'] > 0) {
$customer_balance = sprintf(EMAIL_TEXT_BALANCE . ' ' . $balance . ' ' . TABLE_HEADING_POINTS_VALUE . ' = ' . $currencies->format($balance * REDEEM_POINT_VALUE)) . "\n";
$success = sprintf(EMAIL_TEXT_SUCCESS_POINTS) . "\n";
}
}

if (ACCOUNT_GENDER == 'true') {
if ($gender == 'm') {
$greet = sprintf(EMAIL_GREET_MR, $last_name);
} else {
$greet = sprintf(EMAIL_GREET_MS, $last_name);
}
} else {
$greet = sprintf(EMAIL_GREET_NONE, $first_name);
}
$email_text = $greet . "\n" . EMAIL_TEXT . "\n" . EMAIL_TEXT_BALANCE_CANCELLED . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($customer_points['date_added']) . "\n" . TABLE_HEADING_POINTS . ' = ' . $customer_points['points_pending'] . "\n" . TABLE_HEADING_POINTS_VALUE . ' ' . $currencies->format($customer_points['points_pending'] * REDEEM_POINT_VALUE). "\n" . $notify_comment . $customer_balance . EMAIL_TEXT_POINTS_URL . "\n" . tep_catalog_href_link(FILENAME_CATALOG_MY_POINTS) . "\n" . $success . EMAIL_CONTACT . "\n" . EMAIL_CONTACT . "\n\n" . EMAIL_SEPARATOR . "\n" . '<b>' . STORE_NAME . '</b>.' . "\n\n";

tep_mail($name, $customer['customers_email_address'], EMAIL_TEXT_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

$customer_notified = '1';
$messageStack->add_session(sprintf(NOTICE_EMAIL_SENT_TO, $name . '( ' . $customer['customers_email_address']. ').'), 'success');
}

} else {
tep_db_query("delete from " . TABLE_CUSTOMERS_POINTS_PENDING . " where orders_id = '" . $oID . "'");
}
tep_redirect(tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action'))));
break;
case 'ajustpoints':
$oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
$ajust = $HTTP_POST_VARS['points_to_aj'];

$points_ajusted = false;
if (tep_not_null($ajust)) {
tep_db_query('update '. TABLE_CUSTOMERS_POINTS_PENDING . ' set points_pending = '. $ajust . ' where status = 1 and orders_id = '. $oID);
} else {
$messageStack->add_session(WARNING_DATABASE_NOT_UPDATED, 'warning');
}
tep_redirect(tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action'))));
break;
case 'pe_rollback':
$oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
$d_comment = 'TEXT_DEFAULT_COMMENT';

$customer_query = tep_db_query('select customer_id, date_added, points_pending, status from '. TABLE_CUSTOMERS_POINTS_PENDING .' where status = 2 and orders_id = '. $oID);
$customer_points = tep_db_fetch_array($customer_query);

if ($customer_points['status'] == 2) {
tep_db_query('update '. TABLE_CUSTOMERS . ' set customers_shopping_points = customers_shopping_points - '. $customer_points['points_pending'] . 'where customers_id = '. $customer_points['customer_id']);
tep_db_query('update '. TABLE_CUSTOMERS_POINTS_PENDING . ' set status = 1, comment = \''. $d_comment . '\' where status = 2 and orders_id = '. $oID);
}

$customer_notified = '0';
$customer_query = tep_db_query("select customers_lastname, customers_firstname, customers_gender, customers_email_address, customers_shopping_points from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_points['customer_id'] . "'");
$customer = tep_db_fetch_array($customer_query);
$balance = $customer['customers_shopping_points'];
$gender = $customer['customers_gender'];
$first_name = $customer['customers_firstname'];
$last_name = $customer['customers_lastname'];
$name = $first_name . ' ' . $last_name;

if (isset($HTTP_POST_VARS['notify']) && ($HTTP_POST_VARS['notify'] == 'on')) {
$notify_comment = '';
if (isset($HTTP_POST_VARS['comment']) && tep_not_null($comment)) {
$notify_comment = sprintf(EMAIL_TEXT_ROLL_COMMENT . ' ' . $comment) . "\n";
$customer_balance = '';
$success = '';
if ($customer['customers_shopping_points'] > 0) {
$customer_balance = sprintf(EMAIL_TEXT_BALANCE . ' ' . $balance . ' ' . TABLE_HEADING_POINTS_VALUE . ' = ' . $currencies->format($balance * REDEEM_POINT_VALUE)) . "\n";
$success = sprintf(EMAIL_TEXT_SUCCESS_POINTS) . "\n";
}
}

if (ACCOUNT_GENDER == 'true') {
if ($gender == 'm') {
$greet = sprintf(EMAIL_GREET_MR, $last_name);
} else {
$greet = sprintf(EMAIL_GREET_MS, $last_name);
}

} else {

$greet = sprintf(EMAIL_GREET_NONE, $first_name);
}

$email_text = $greet . "\n" . EMAIL_TEXT . "\n" . EMAIL_TEXT_BALANCE_ROLL_BACK . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($customer_points['date_added']) . "\n" . TABLE_HEADING_POINTS . ' = ' . $customer_points['points_pending'] . "\n" . TABLE_HEADING_POINTS_VALUE . ' ' . $currencies->format($customer_points['points_pending'] * REDEEM_POINT_VALUE). "\n" . $notify_comment . $customer_balance . EMAIL_TEXT_POINTS_URL . "\n" . tep_catalog_href_link(FILENAME_CATALOG_MY_POINTS) . "\n" . $success . EMAIL_CONTACT . "\n\n" . EMAIL_SEPARATOR . "\n" . '<b>' . STORE_NAME . '</b>.' . "\n\n";

tep_mail($name, $customer['customers_email_address'], EMAIL_TEXT_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

$customer_notified = '1';
$messageStack->add_session(sprintf(NOTICE_EMAIL_SENT_TO, $name . '( ' . $customer['customers_email_address']. ').'), 'success');
}

$messageStack->add_session(SUCCESS_POINTS_UPDATED, 'success');
tep_redirect(tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action'))));
break;
case 'deleteconfirm':
$oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);

tep_db_query("delete from " . TABLE_CUSTOMERS_POINTS_PENDING . " where orders_id = '" . $oID . "'");

tep_redirect(tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action'))));
break;
}
}

include(DIR_WS_CLASSES . 'order.php');
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<script language="javascript" src="includes/general.js"></script>
<script language="javascript"><!--
function validate(field) {
var valid = "0123456789."
var ok = "yes";
var temp;
for (var i=0; i<field.value.length; i++) {
temp = "" + field.value.substring(i, i+1);
if (valid.indexOf(temp) == "-1") ok = "no";
}
if (ok == "no") {
alert("<?php echo POINTS_ENTER_JS_ERROR; ?>");
field.focus();
field.value = "";
}
}
//--></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<!-- header //-->
<?php
require(DIR_WS_INCLUDES . 'header.php');
?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
if (($action == 'edit') && ($order_exists == true)) {
$order = new order($oID);
?>
<tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT); ?></td>
<td class="pageHeading" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('action'))) . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>'; ?></td>
</tr>
</table></td>
<?php
} else {
?>
<tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', 1, HEADING_IMAGE_HEIGHT); ?></td>
<td class="smalltext" align="right"><?php echo ' <b> ' . HEADING_RATE . ' </b>    ' . HEADING_AWARDS . $currencies->format(1) . ' = ' . number_format(POINTS_PER_AMOUNT_PURCHASE,2) .' &nbsp' . HEADING_POINTS .'    ' . HEADING_REDEEM . number_format(POINTS_PER_AMOUNT_PURCHASE,2) .' &nbsp' . HEADING_POINTS .' = ' . $currencies->format(POINTS_PER_AMOUNT_PURCHASE * REDEEM_POINT_VALUE); ?></td>
</tr>
<tr><?php echo tep_draw_form('status', FILENAME_CUSTOMERS_POINTS_PENDING, '', 'get'); ?>
<td colspan="3" class="smallText" align="right"><?php echo HEADING_TITLE_STATUS . ' ' . tep_draw_pull_down_menu('filter_selection', $filter_selection_array, '', 'onChange="this.form.submit();"'); ?></td>
</form></tr>
</table></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent"><a href="<?php echo "$PHP_SELF?viewedSort=c_name-asc"; ?>"title="<?php echo TABLE_HEADING_SORT . TABLE_HEADING_CUSTOMERS . TABLE_HEADING_SORT_UA; ?>">+</a> <?php echo TABLE_HEADING_CUSTOMERS; ?> <a href="<?php echo "$PHP_SELF?viewedSort=c_name-desc"; ?>"title="<?php echo TABLE_HEADING_SORT . TABLE_HEADING_CUSTOMERS . TABLE_HEADING_SORT_DA; ?>">-</a></td>
<td class="dataTableHeadingContent" align="right"><a href="<?php echo "$PHP_SELF?viewedSort=ot-asc"; ?>"title="<?php echo TABLE_HEADING_SORT . TABLE_HEADING_ORDER_TOTAL . TABLE_HEADING_SORT_U1; ?>">+</a> <?php echo TABLE_HEADING_ORDER_TOTAL; ?> <a href="<?php echo "$PHP_SELF?viewedSort=ot-desc"; ?>"title="<?php echo TABLE_HEADING_SORT . TABLE_HEADING_ORDER_TOTAL . TABLE_HEADING_SORT_D1; ?>">-</a></td>
<td class="dataTableHeadingContent" align="right"><a href="<?php echo "$PHP_SELF?viewedSort=points-asc"; ?>"title="<?php echo TABLE_HEADING_SORT . TABLE_HEADING_POINTS . TABLE_HEADING_SORT_U1; ?>">+</a> <?php echo TABLE_HEADING_POINTS; ?> <a href="<?php echo "$PHP_SELF?viewedSort=poinst-desc"; ?>"title="<?php echo TABLE_HEADING_SORT . TABLE_HEADING_POINTS . TABLE_HEADING_SORT_D1; ?>">-</a></td>
<td class="dataTableHeadingContent" align="right"><a href="<?php echo "$PHP_SELF?viewedSort=points-asc"; ?>"title="Sort <?php echo TABLE_HEADING_POINTS . ' --> A-B-C From Top ' ; ?>">+</a> <?php echo TABLE_HEADING_POINTS_VALUE; ?> <a href="<?php echo "$PHP_SELF?viewedSort=points-desc"; ?>"title="<?php echo TABLE_HEADING_SORT . TABLE_HEADING_DATE_PURCHASED . TABLE_HEADING_SORT_D1; ?>">-</a></td>
<td class="dataTableHeadingContent" align="center"><a href="<?php echo "$PHP_SELF?viewedSort=date-asc"; ?>"title="<?php echo TABLE_HEADING_SORT . TABLE_HEADING_DATE_PURCHASED . TABLE_HEADING_SORT_U1; ?>">+</a> <?php echo TABLE_HEADING_DATE_PURCHASED; ?> <a href="<?php echo "$PHP_SELF?viewedSort=date-desc"; ?>"title="<?php echo TABLE_HEADING_SORT . TABLE_HEADING_DATE_PURCHASED . TABLE_HEADING_SORT_D1; ?>">-</a></td>
<td class="dataTableHeadingContent"><a href="<?php echo "$PHP_SELF?viewedSort=o_status-asc"; ?>"title="<?php echo TABLE_HEADING_SORT . TABLE_HEADING_ORDERS_STATUS . TABLE_HEADING_SORT_UA; ?>">+</a> <?php echo TABLE_HEADING_ORDERS_STATUS; ?> <a href="<?php echo "$PHP_SELF?viewedSort=o_status-desc"; ?>"title="<?php echo TABLE_HEADING_SORT . TABLE_HEADING_ORDERS_STATUS . TABLE_HEADING_SORT_DA; ?>">-</a></td>
<td class="dataTableHeadingContent"><a href="<?php echo "$PHP_SELF?viewedSort=o_status-asc"; ?>"title="<?php echo TABLE_HEADING_SORT . TABLE_HEADING_POINTS_STATUS . TABLE_HEADING_SORT_UA; ?>">+</a> <?php echo TABLE_HEADING_POINTS_STATUS; ?> <a href="<?php echo "$PHP_SELF?viewedSort=o_status-desc"; ?>"title="<?php echo TABLE_HEADING_SORT . TABLE_HEADING_POINTS_STATUS . TABLE_HEADING_SORT_DA; ?>">-</a></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td>
</tr>
<?php
$filter_selection = $HTTP_GET_VARS['filter_selection'];
switch ($filter_selection) {
case '1':
$filter_selection = " and cpp.status = '1' ";
break;
case '2':
$filter_selection = " and cpp.status = '2' ";
break;
case '3':
$filter_selection = " and cpp.status = '3' ";
break;
case '4':
$filter_selection = '';
break;
default:
$filter_selection = " and cpp.status = '1' ";
}

//sort view
if (isset($HTTP_GET_VARS['viewedSort'])){
$viewedSort = $HTTP_GET_VARS['viewedSort'];
tep_session_register('viewedSort');
}
if (isset($HTTP_GET_VARS['page']))
{
$page = $HTTP_GET_VARS['page'];
tep_session_register('page');
}
if(!isset($page)) $page = 1;

switch ($viewedSort) {
case "c_name-asc":
$sort .= "o.customers_name";
break;
case "c_name-desc":
$sort .= "o.customers_name DESC";
break;
case "ot-asc":
$sort .= "order_total";
break;
case "ot-desc":
$sort .= "order_total DESC";
break;
case "points-asc":
$sort .= "points_pending";
break;
case "points-desc":
$sort .= "points_pending DESC";
break;
case "date-asc":
$sort .= "o.date_purchased";
break;
case "date-desc":
$sort .= "o.date_purchased DESC";
break;
case "o_status-asc":
$sort .= "orders_status_name";
break;
case "o_status-desc":
$sort .= "orders_status_name DESC";
break;
case "p_status-asc":
$sort .= "status";
break;
case "p_status-desc":
$sort .= "status DESC";
break;
default:
$sort .= "o.orders_id DESC";
}
//sort view

$orders_query_raw = "select o.orders_id, o.orders_status, o.customers_name, o.customers_email_address, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total, cpp.points_pending as points_pending, cpp.comment as comment, cpp.status as status from " . TABLE_ORDERS . " o , " . TABLE_ORDERS_TOTAL . " ot , " . TABLE_ORDERS_STATUS . " s , customers_points_pending cpp where ot.class = 'ot_total' " . $filter_selection . "and cpp.orders_id = o.orders_id and o.orders_id = ot.orders_id and o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' order by $sort";

$orders_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $orders_query_raw, $orders_query_numrows);
$orders_query = tep_db_query($orders_query_raw);
$showbuttons = 0;

while ($orders = tep_db_fetch_array($orders_query)) {
$order = new order($orders['order_id']);

if ((!isset($HTTP_GET_VARS['oID']) || (isset($HTTP_GET_VARS['oID']) && ($HTTP_GET_VARS['oID'] == $orders['orders_id']))) && !isset($oInfo) &&($orders['status'] < 4)) {
$oInfo = new objectInfo($orders);
}

if (isset($oInfo) && is_object($oInfo) && ($orders['orders_id'] == $oInfo->orders_id)) {
echo ' <tr id="defaultSelected" class="dataTableRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit') . '\'">' . "\n";
} else {
echo ' <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href=\'' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID')) . 'oID=' . $orders['orders_id']) . '\'">' . "\n";
}

if( $orders['orders_id'] == $oInfo->orders_id && $orders['status'] == 1) {
$showbuttons = 1;
}

if( ($orders['orders_id'] == $oInfo->orders_id && $orders['status'] == 2) || ( $orders['orders_id'] == $oInfo->orders_id && $orders['status'] == 3)){
$showbuttons = 2;
}

if($orders['status'] == 1) {
$points_status_name = TEXT_POINTS_PENDING;
}
else if($orders['status'] == 2)
$points_status_name = TEXT_POINTS_CONFIRMED;
else if($orders['status'] == 3)
$points_status_name = '<font color="FF0000">' . TEXT_POINTS_CANCELLED . '</font>';

if($orders['orders_status'] == 2) {
$points_status_name = TEXT_POINTS_PROCESSING;
}

if($orders['status'] < 4) {
?>
<td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $orders['orders_id'] . '&action=edit') . '">' . tep_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW_EDIT) . '</a> ' . $orders['customers_name']; ?></td>
<td class="dataTableContent" align="right"><?php echo strip_tags($orders['order_total']); ?></td>
<td class="dataTableContent" align="right"><?php echo number_format($orders['points_pending'],2); ?></td>
<td class="dataTableContent" align="right"><?php echo $currencies->format($orders['points_pending'] * REDEEM_POINT_VALUE); ?></td>
<td class="dataTableContent" align="center"><?php echo tep_date_short($orders['date_purchased']); ?></td>
<td class="dataTableContent"><?php echo $orders['orders_status_name']; ?></td>
<td class="dataTableContent"><?php echo $points_status_name; ?></td>
<td class="dataTableContent" align="right"><?php if (isset($oInfo) && is_object($oInfo) && ($orders['orders_id'] == $oInfo->orders_id) && ($orders['status'] < 4)) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID')) . 'oID=' . $orders['orders_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td>
</tr>
<?php
}
}
?>
<tr>
<td colspan="5"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" valign="top"><?php echo $orders_split->display_count($orders_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_ORDERS); ?></td>
<td class="smallText" align="right"><?php echo $orders_split->display_links($orders_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page'], tep_get_all_get_params(array('page', 'oID', 'action'))); ?></td>
</tr>
</table></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();

switch ($action) {
case 'confirm':
$heading[] = array('text' => '<b>' . TEXT_CONFIRM_POINTS . '</b>');

$contents = array('form' => tep_draw_form('points', FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=confirmconfirm'));
$value_field = TEXT_CONFIRM_POINTS_LONG. '<br>';
$contents[] = array('text' => $value_field);
$contents[] = array('text' => '<br>' . tep_draw_checkbox_field('queue_confirm', '', true) . ' ' . TEXT_QUEUE_POINTS_TABLE);
$contents[] = array('text' => tep_draw_checkbox_field('notify', '', true) . ' ' . TEXT_NOTIFY_CUSTOMER);
$contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_confirm_points.gif', BUTTON_TEXT_CONFIRM_PENDING_POINTS) . ' <a href="' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'cancel':
$heading[] = array('text' => '<b>' . TEXT_CANCEL_POINTS . '</b>');

$contents = array('form' => tep_draw_form('points', FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=confirmcancel'));
$contents[] = array('text' => TEXT_CANCEL_POINTS_LONG);
$contents[] = array('text' => '<br>' . tep_draw_checkbox_field('queue_cancel', '', true) . ' ' . TEXT_QUEUE_POINTS_TABLE);
$contents[] = array('text' => tep_draw_checkbox_field('notify', '', true) . ' ' . TEXT_NOTIFY_CUSTOMER);
$value_field = TEXT_CANCELLATION_REASON .'<BR>'. tep_draw_input_field('comment', 0);
$contents[] = array('text' => $value_field);

$contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_cancel_points.gif', BUTTON_TEXT_CANCEL_PENDING_POINTS) . ' <a href="' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'ajust':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_AJUST_POINTS . '</b>');

$contents = array('form' => tep_draw_form('points', FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=ajustpoints'));
$contents[] = array('text' => '<b>'. TEXT_INFO_HEADING_AJUST_POINTS . '</b><br>');
$value_field = TEXT_AJUST_INTRO . '<br><br>' . TEXT_POINTS_TO_AJUST . '<br>'. tep_draw_input_field('points_to_aj', '' , 'onBlur="validate(this)"');
$contents[] = array('text' => $value_field);

$contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_ajust_points.gif', BUTTON_TEXT_AJUST_POINTS) . ' <a href="' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'rollback':
$heading[] = array('text' => '<b>' . TEXT_ROLL_POINTS . '</b>');

$contents = array('form' => tep_draw_form('points', FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=pe_rollback'));
$contents[] = array('text' => '<b>'. TEXT_ROLL_POINTS . '</b><br>');
$value_field = TEXT_ROLL_POINTS_LONG. '<br>';
$contents[] = array('text' => $value_field);
$contents[] = array('text' => '<br>'. tep_draw_checkbox_field('notify', '', true) . ' ' . TEXT_NOTIFY_CUSTOMER);
$value_field = TEXT_ROLL_REASON .'<BR>'. tep_draw_input_field('comment', 0);
$contents[] = array('text' => $value_field);
$contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_rollback_points.gif', BUTTON_TEXT_ROLL_POINTS) . ' <a href="' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_RECORD . '</b>');

$contents = array('form' => tep_draw_form('points', FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO );
$contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', BUTTON_TEXT_REMOVE_RECORD) . ' <a href="' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;

default:
if (isset($oInfo) && is_object($oInfo)) {
$heading[] = array('text' => TEXT_INFO_HEADING_PENDING_NO .'<b>' . $oInfo->orders_id . '</b>');

if($showbuttons == 1) {
$cInfo->customers_email_address == $orders['customers_email_address'] ;

$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=confirm') . '">' . tep_image_button('button_confirm_points.gif', BUTTON_TEXT_CONFIRM_PENDING_POINTS) . '</a> <a href="' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=cancel') . '">' . tep_image_button('button_cancel_points.gif', BUTTON_TEXT_CANCEL_PENDING_POINTS) . '</a> <a href="' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=ajust') . '">' . tep_image_button('button_ajust_points.gif', BUTTON_TEXT_AJUST_POINTS) . '</a> <a href="' . tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $oInfo->customers_email_address) . '">' . tep_image_button('button_email.gif', IMAGE_EMAIL) . '</a> <a href="' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', BUTTON_TEXT_REMOVE_RECORD) . '</a>');
}

if($showbuttons == 2) {
$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=rollback') . '">' . tep_image_button('button_rollback_points.gif', BUTTON_TEXT_ROLL_POINTS) . '</a> <a href="' . tep_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $oInfo->customers_email_address) . '">' . tep_image_button('button_email.gif', IMAGE_EMAIL) . '</a> <a href="' . tep_href_link(FILENAME_CUSTOMERS_POINTS_PENDING, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', BUTTON_TEXT_REMOVE_RECORD) . '</a>');
}

if($oInfo->comment == 'TEXT_DEFAULT_COMMENT') {
$oInfo->comment = TEXT_DEFAULT_COMMENT;
}
if($oInfo->comment == 'TEXT_DEFAULT_REDEEMED') {
$oInfo->comment = TEXT_DEFAULT_REDEEMED;
}

$contents[] = array('text' => '<br><b>' . TEXT_INFO_POINTS_COMMENT . '</b><br>' . $oInfo->comment );
$contents[] = array('text' => '<br>' . TEXT_DATE_ORDER_CREATED . ' ' . tep_date_short($oInfo->date_purchased));
if (tep_not_null($oInfo->last_modified)) $contents[] = array('text' => TEXT_DATE_ORDER_LAST_MODIFIED . ' ' . tep_date_short($oInfo->last_modified));
$contents[] = array('text' => '<br><b>' . TEXT_INFO_PAYMENT_METHOD . '</b><br>' . $oInfo->payment_method);
}
break;
}

if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
echo ' <td width="25%" valign="top">' . "\n";

$box = new box;
echo $box->infoBox($heading, $contents);

echo ' </td>' . "\n";
}
?>
</tr>
</table></td>
</tr>
<?php
}
?>
</table></td>
<!-- body_text_eof //-->
</tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>



emememme dovrei tradurlo ?????????? dove?
www.bigmuscle.it
www.erboristeria-benessere.com

integratori sportivi,proteine,aminoacidi,creatina,glutammina.
sara75
membro Regular
membro Regular
Messaggi: 199
Iscritto il: 18/06/2004, 0:00
Località: Torino- Brescia
Contatta:

Messaggio da sara75 »

oversize ha scritto:in effetti il file non c'era

è questo giusto???
No, non è il file giusto !
Guarda se ne hai uno che si chiama così nella cartella english :wink:
Immagine
Prima regola: Fai un backup prima di modificare il codice.
Seconda regola: Ti sei ricordato di fare un backup ?
Avatar utente
oversize
membro Senior
membro Senior
Messaggi: 280
Iscritto il: 28/07/2005, 18:54
Località: carrara
Contatta:

Messaggio da oversize »

il file in inglese è questo (catalog/includes/language/english/modules/order_total

<?php
/*
$Id: ot_redemptions.php,v 1.60 2005/NOV/03 11:40:16 dsa Exp $
http://www.deep-silver.com

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2002 osCommerce

Released under the GNU General Public License
*/

define('MODULE_ORDER_TOTAL_REDEMPTIONS_TITLE', 'Points Redeemptions');
define('MODULE_ORDER_TOTAL_REDEMPTIONS_HEADER', 'Points Redeemptions');
define('MODULE_ORDER_TOTAL_REDEMPTIONS_DESCRIPTION', 'Points Redeemptions');
define('MODULE_ORDER_TOTAL_REDEMPTIONS_TEXT', 'Points Redeemed');


?>

__________________

mentre in admin é :


<?php
/*
$Id: orders.php,v 1.25 2003/06/20 00:28:44 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2002 osCommerce

Released under the GNU General Public License
*/

define('HEADING_TITLE', 'Orders');
define('HEADING_TITLE_SEARCH', 'Order ID:');
define('HEADING_TITLE_STATUS', 'Status:');

define('TABLE_HEADING_COMMENTS', 'Comments');
define('TABLE_HEADING_CUSTOMERS', 'Customers');
define('TABLE_HEADING_ORDER_TOTAL', 'Order Total');
define('TABLE_HEADING_DATE_PURCHASED', 'Date Purchased');
define('TABLE_HEADING_STATUS', 'Status');
define('TABLE_HEADING_ACTION', 'Action');
define('TABLE_HEADING_QUANTITY', 'Qty.');
define('TABLE_HEADING_PRODUCTS_MODEL', 'Model');
define('TABLE_HEADING_PRODUCTS', 'Products');
define('TABLE_HEADING_TAX', 'Tax');
define('TABLE_HEADING_TOTAL', 'Total');
define('TABLE_HEADING_PRICE_EXCLUDING_TAX', 'Price (ex)');
define('TABLE_HEADING_PRICE_INCLUDING_TAX', 'Price (inc)');
define('TABLE_HEADING_TOTAL_EXCLUDING_TAX', 'Total (ex)');
define('TABLE_HEADING_TOTAL_INCLUDING_TAX', 'Total (inc)');

define('TABLE_HEADING_CUSTOMER_NOTIFIED', 'Customer Notified');
define('TABLE_HEADING_DATE_ADDED', 'Date Added');

define('ENTRY_CUSTOMER', 'Customer:');
define('ENTRY_SOLD_TO', 'SOLD TO:');
define('ENTRY_DELIVERY_TO', 'Delivery To:');
define('ENTRY_SHIP_TO', 'SHIP TO:');
define('ENTRY_SHIPPING_ADDRESS', 'Shipping Address:');
define('ENTRY_BILLING_ADDRESS', 'Billing Address:');
define('ENTRY_PAYMENT_METHOD', 'Payment Method:');
define('ENTRY_CREDIT_CARD_TYPE', 'Credit Card Type:');
define('ENTRY_CREDIT_CARD_OWNER', 'Credit Card Owner:');
define('ENTRY_CREDIT_CARD_NUMBER', 'Credit Card Number:');
define('ENTRY_CREDIT_CARD_EXPIRES', 'Credit Card Expires:');
define('ENTRY_SUB_TOTAL', 'Sub-Total:');
define('ENTRY_TAX', 'Tax:');
define('ENTRY_SHIPPING', 'Shipping:');
define('ENTRY_TOTAL', 'Total:');
define('ENTRY_DATE_PURCHASED', 'Date Purchased:');
define('ENTRY_STATUS', 'Status:');
define('ENTRY_DATE_LAST_UPDATED', 'Date Last Updated:');
define('ENTRY_NOTIFY_CUSTOMER', 'Notify Customer:');
define('ENTRY_NOTIFY_COMMENTS', 'Append Comments:');
define('ENTRY_PRINTABLE', 'Print Invoice');

define('TEXT_INFO_HEADING_DELETE_ORDER', 'Delete Order');
define('TEXT_INFO_DELETE_INTRO', 'Are you sure you want to delete this order?');
define('TEXT_INFO_RESTOCK_PRODUCT_QUANTITY', 'Restock product quantity');
define('TEXT_DATE_ORDER_CREATED', 'Date Created:');
define('TEXT_DATE_ORDER_LAST_MODIFIED', 'Last Modified:');
define('TEXT_INFO_PAYMENT_METHOD', 'Payment Method:');

define('TEXT_ALL_ORDERS', 'All Orders');
define('TEXT_NO_ORDER_HISTORY', 'No Order History Available');

define('EMAIL_SEPARATOR', '------------------------------------------------------');
define('EMAIL_TEXT_SUBJECT', 'Order Update');
define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:');
define('EMAIL_TEXT_INVOICE_URL', 'Detailed Invoice:');
define('EMAIL_TEXT_DATE_ORDERED', 'Date Ordered:');
define('EMAIL_TEXT_STATUS_UPDATE', 'Your order has been updated to the following status.' . "\n\n" . 'New status: %s' . "\n\n" . 'Please reply to this email if you have any questions.' . "\n");
define('EMAIL_TEXT_COMMENTS_UPDATE', 'The comments for your order are' . "\n\n%s\n\n");

define('ERROR_ORDER_DOES_NOT_EXIST', 'Error: Order does not exist.');
define('SUCCESS_ORDER_UPDATED', 'Success: Order has been successfully updated.');
define('WARNING_ORDER_NOT_UPDATED', 'Warning: Nothing to change. The order was not updated.');

######## Points/Rewards Module V1.60 BOF ##################
define('ENTRY_NOTIFY_POINTS', 'Confirm Pending Points:');
define('ENTRY_CONFIRMED_POINTS', 'Points Confirmed. ');
define('SUCCESS_POINTS_UPDATED', 'Success: Customer Points account has been successfully updated.');

define('EMAIL_TEXT_SUBJECT', 'Shopping Points Account Update');
define('EMAIL_TEXT_BALANCE_CONFIRMED', 'Points confirmed for the following order details.');
define('EMAIL_GREET_MR', 'Dear Mr. %s,');
define('EMAIL_GREET_MS', 'Dear Ms. %s,');
define('EMAIL_GREET_NONE', 'Dear %s');
define('TABLE_HEADING_POINTS', 'Points');
define('TABLE_HEADING_POINTS_VALUE', 'Value');
define('EMAIL_TEXT', 'This is to inform you that your Shopping Points Account has been updated.');
define('EMAIL_TEXT_BALANCE', 'Your current Shopping Points balance:');
define('EMAIL_TEXT_POINTS_URL', 'Please click the following link to your Shopping Points Account for more details');
define('EMAIL_TEXT_COMMENT', 'Cancellation Reason :');
define('EMAIL_TEXT_SUCCESS_POINTS', 'Points are available at your account, during the checkout procces you will be able to pay for your purchase items with your points balance. '. "\n" .'Thank you for shopping at ' . STORE_NAME . ' and we looking forward to serving you again.');
define('EMAIL_CONTACT', 'If you have any questions or for help with any of our online services, please email the store-owner: ' . STORE_OWNER_EMAIL_ADDRESS . '.');
######## Points/Rewards Module V1.60 EOF ##################


?>
______________________________________________________
www.bigmuscle.it
www.erboristeria-benessere.com

integratori sportivi,proteine,aminoacidi,creatina,glutammina.
sara75
membro Regular
membro Regular
Messaggi: 199
Iscritto il: 18/06/2004, 0:00
Località: Torino- Brescia
Contatta:

Messaggio da sara75 »

fai questo controllo:
la contribution ti avrà certamente fornito dei file da inserire nella cartella includes/languages/english e admin/includes/languages/english
TUTTI i file che hai aggiunto in queste cartelle li devi tradurre e inserire nelle rispettive cartelle includes/languages/italian e admin/includes/languages/italian
Questo però lo devi prendere come abitudine per ogni contribution che installi..... il tuo negozio è in italiano, quindi usi i files che si trovano nelle cartelle italian, se aggiungi i file di lingua solo nella cartella english è normale che non funzionino :wink:
Immagine
Prima regola: Fai un backup prima di modificare il codice.
Seconda regola: Ti sei ricordato di fare un backup ?
Avatar utente
oversize
membro Senior
membro Senior
Messaggi: 280
Iscritto il: 28/07/2005, 18:54
Località: carrara
Contatta:

Messaggio da oversize »

ok risolto mancavano due file in language/italian , grande sara mi sei stata di super aiuto , bass idem.

e ora dopo essermi scervellato per settimane a risolvere questo problema mi sto per imbattere in un altro :shock:

vorreei insrtallare la chat live v1 l'ho scaricata da oscommerce ,ho visto che ci sono pochissimi file , qualcuno l'ha installata? è facile da installare?
www.bigmuscle.it
www.erboristeria-benessere.com

integratori sportivi,proteine,aminoacidi,creatina,glutammina.
Bass
membro Master
membro Master
Messaggi: 3593
Iscritto il: 18/04/2004, 0:00
Località: Varese
Contatta:

Messaggio da Bass »

oversize ha scritto:o
vorreei insrtallare la chat live v1 l'ho scaricata da oscommerce ,ho visto che ci sono pochissimi file , qualcuno l'ha installata? è facile da installare?
Perche' non metti phponline, ci vogliono due minuti ad installarla e su oscommerce.com c'e' il box gia' pronto :wink:

'iao

Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto

http://www.semilandia.it
Avatar utente
oversize
membro Senior
membro Senior
Messaggi: 280
Iscritto il: 28/07/2005, 18:54
Località: carrara
Contatta:

Messaggio da oversize »

Bass ha scritto:
oversize ha scritto:o
vorreei insrtallare la chat live v1 l'ho scaricata da oscommerce ,ho visto che ci sono pochissimi file , qualcuno l'ha installata? è facile da installare?
Perche' non metti phponline, ci vogliono due minuti ad installarla e su oscommerce.com c'e' il box gia' pronto :wink:

'iao

Sergio
si infatti la chat live fa un po schifo ....pero' bass i tuoi due minuti per me diventano ferragosto.

ho scaricato phponline info box ,ci sono solo 2 file ,il phponline e il redame,non dirmi che bastano solo questi??
www.bigmuscle.it
www.erboristeria-benessere.com

integratori sportivi,proteine,aminoacidi,creatina,glutammina.
Rispondi