Community Add-Ons

Add file to this package
Top » Other

Proforma-Rechnung ( Invoice )
for osCommerce Online Merchant v2.2

Hier können sich die Kunden in ihrem Konto eine Proforma-Rechnung ausdrucken.
Bei fragen einfach mailen.

Here, the customers can print out a proforma bill for itself in her account.
With asks e-mail at alfredplein@web.de

Legend:  Download   Report
Expand All / Collapse All
Rechnungsdruck aplein 6 Jun 2006  

Hallo Leute,

Sorry, es gab das Sicherheits Problem immer noch. Zwar nicht mehr so aber anders.

Habe jetzt folgendes in der printorder.php ersetzt

Suche das:

if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}

$customer_number_query = tep_db_query("select customers_id from " . TABLE_ORDERS . " where orders_id = '". tep_db_input(tep_db_prepare_input($HTTP_GET_VARS['order_id'])) . "'");
$customer_number = tep_db_fetch_array($customer_number_query);
if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}
if (!isset($HTTP_GET_VARS['order_id']) || (isset($HTTP_GET_VARS['order_id']) && !is_numeric($HTTP_GET_VARS['order_id']))) {
tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
}

$payment_info_query = tep_db_query("select payment_info from " . TABLE_ORDERS . " where orders_id = '". tep_db_input(tep_db_prepare_input($HTTP_GET_VARS['order_id'])) . "'");
$payment_info = tep_db_fetch_array($payment_info_query);
$payment_info = $payment_info['payment_info'];
/////////////////////////////////////////

und ersetze hier mit:

if (!tep_session_is_registered('customer_id')) {
$navigation->set_snapshot();
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
}

if (!isset($HTTP_GET_VARS['order_id']) || (isset($HTTP_GET_VARS['order_id']) && !is_numeric($HTTP_GET_VARS['order_id']))) {
tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
}
$orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . tep_db_input($oID) . "'");
$customer_info_query = tep_db_query("select customers_id from " . TABLE_ORDERS . " where orders_id = '". (int)$HTTP_GET_VARS['order_id'] . "'");
$customer_info = tep_db_fetch_array($customer_info_query);
if ($customer_info['customers_id'] != $customer_id) {
tep_redirect(tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
}

////////////////////


Jetzt kann man die ID ruhig ändern es passiert nichts mehr.

Rechnungsdruck aplein 6 Jun 2006  
Rechnungsdruck aplein 4 Jun 2006  
Zusatz aplein 5 Aug 2005  
Proforma-Rechnung aplein 4 Aug 2005  
Wichtiger Hinweis Nick Weisser 14 Jul 2005  
Proforma-Rechnung ( Invoice ) Proforma-Rechnung 4 Jul 2005