|
ECB SEO SHOP SOFTWARE - IMEDES SOFTWARE DOWNLOADS
*****************************************
* *
* INSTALLATION-GUIDE *
* *
*****************************************
* @package ibillnr *
* @compatible SP2.1 *
*****************************************
--------------
NEW FILES:
--------------
inc/xtc_get_next_ibillnr.inc.php
inc/xtc_inc_next_ibillnr.inc.php
inc/xtc_set_ibillnr.inc.php
includes/functions/database.php
--------------
NEW DIRS:
--------------
imedes_library
includes/classes/adodb_full
--------------
CHANGED FILES:
--------------
admin/includes/application_top.php
admin/includes/classes/order.php
admin/includes/functions/sessions.php
admin/orders.php
admin/print_order.php
includes/application_top.php
includes/functions/sessions.php
lang/english/admin/buttons.php
lang/english/admin/configuration.php
lang/english/admin/english.php
lang/english/lang_english.conf
lang/german/admin/buttons.php
lang/german/admin/configuration.php
lang/german/admin/german.php
lang/german/lang_german.conf
templates/xtc4/admin/print_order.html
-------------
INSTALLATION:
-------------
1. Datenkbankerweiterungen durchführen
ALTER TABLE `orders` ADD `ibn_billnr` INT NOT NULL ,
ADD `ibn_billdate` DATE NOT NULL ;
INSERT INTO `configuration` ( `configuration_id` , `configuration_key` , `configuration_value` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` )
VALUES (
'', 'IBN_BILLNR', '1', '1', '99', NULL , '0000-00-00 00:00:00', NULL , ''
);
2. new_files kopieren.
3. changed_files kopieren, oder bei nicht standard-version folgende änderungen durchführen:
-admin/includes/application_top.php
---------------------------------------------------------------------------------------------------
Achtung!!!! Diese folgende Änderung ist nur notwendig, wenn Sie bisher noch KEINE Bibliothek von Imedes
erworben haben, welches unter einer Bezahllizenz steht. Falls Sie nicht sicher sind, dann schauen Sie
einfach in den Quellcode der entsprechenden Datei oder sprechen uns einfach an
finde folgendes:
require_once(DIR_FS_INC . 'xtc_db_connect.inc.php');
require_once(DIR_FS_INC . 'xtc_db_close.inc.php');
require_once(DIR_FS_INC . 'xtc_db_error.inc.php');
require_once(DIR_FS_INC . 'xtc_db_query.inc.php');
require_once(DIR_FS_INC . 'xtc_db_queryCached.inc.php');
require_once(DIR_FS_INC . 'xtc_db_perform.inc.php');
require_once(DIR_FS_INC . 'xtc_db_fetch_array.inc.php');
require_once(DIR_FS_INC . 'xtc_db_num_rows.inc.php');
require_once(DIR_FS_INC . 'xtc_db_data_seek.inc.php');
require_once(DIR_FS_INC . 'xtc_db_insert_id.inc.php');
require_once(DIR_FS_INC . 'xtc_db_free_result.inc.php');
require_once(DIR_FS_INC . 'xtc_db_fetch_fields.inc.php');
require_once(DIR_FS_INC . 'xtc_db_output.inc.php');
require_once(DIR_FS_INC . 'xtc_db_input.inc.php');
und ersetze es mit:
require_once('../'.DIR_WS_FUNCTIONS.'database.php');
//require_once(DIR_FS_INC . 'xtc_db_connect.inc.php');
//require_once(DIR_FS_INC . 'xtc_db_close.inc.php');
//require_once(DIR_FS_INC . 'xtc_db_error.inc.php');
//require_once(DIR_FS_INC . 'xtc_db_query.inc.php');
//require_once(DIR_FS_INC . 'xtc_db_queryCached.inc.php');
//require_once(DIR_FS_INC . 'xtc_db_perform.inc.php');
//require_once(DIR_FS_INC . 'xtc_db_fetch_array.inc.php');
//require_once(DIR_FS_INC . 'xtc_db_num_rows.inc.php');
//require_once(DIR_FS_INC . 'xtc_db_data_seek.inc.php');
//require_once(DIR_FS_INC . 'xtc_db_insert_id.inc.php');
//require_once(DIR_FS_INC . 'xtc_db_free_result.inc.php');
//require_once(DIR_FS_INC . 'xtc_db_fetch_fields.inc.php');
//require_once(DIR_FS_INC . 'xtc_db_output.inc.php');
//require_once(DIR_FS_INC . 'xtc_db_input.inc.php');
---------------------------------------------------------------------------------------------------
Achtung!!!! Diese folgende Änderung ist nur notwendig, wenn Sie bisher noch KEINE Bibliothek von Imedes
erworben haben, welches unter einer Bezahllizenz steht. Falls Sie nicht sicher sind, dann schauen Sie
einfach in den Quellcode der entsprechenden Datei oder sprechen uns einfach an
finde folgendes:
xtc_db_connect() or die('Unable to connect to database server!');
und ersetze es mit:
require_once (DIR_FS_CATALOG.'imedes_library/db_connect_alt_admin.php');
db_connect_alt() or die('Unable to connect to database server!');
global $ADODB_FETCH_MODE;
$ADODB_FETCH_MODE=ADODB_FETCH_ASSOC;
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-admin/includes/classes/order.php
---------------------------------------------------------------------------------------------------
finde folgendes:
customers_status_image,
customers_ip,
language,
und füge danach ein:
ibn_billnr,
ibn_billdate,
---------------------------------------------------------------------------------------------------
finde folgendes:
'date_purchased' => $order['date_purchased'],
'orders_status' => $order['orders_status'],
und füge danach ein:
'ibn_billnr' => $order['ibn_billnr'], // ibillnr
'ibn_billdate' => $order['ibn_billdate'], // ibillnr
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-admin/includes/functions/sessions.php
---------------------------------------------------------------------------------------------------
Achtung!!!! Diese folgende Änderung ist nur notwendig, wenn Sie bisher noch KEINE Bibliothek von Imedes
erworben haben, welches unter einer Bezahllizenz steht. Falls Sie nicht sicher sind, dann schauen Sie
einfach in den Quellcode der entsprechenden Datei oder sprechen uns einfach an
finde folgendes:
function _sess_write($key, $val) {
global $SESS_LIFE;
und füge danach ein:
if(!is_object($db)){// Vermutlich wird das $db objekt gelöscht, bevor die Session geschrieben wird
global$db;
require_once (DIR_FS_CATALOG.'imedes_library/db_connect_alt_admin.php');
db_connect_alt() or die('Unable to connect to database server!');
$db->Execute("SET NAMES 'latin1'");
$db->Execute("SET CHARACTER_SET_CLIENT=latin1");
$db->Execute("SET CHARACTER_SET_RESULTS=latin1");
}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-admin/orders.php
---------------------------------------------------------------------------------------------------
finde folgendes:
$order = new order($oID);
}
und füge danach ein:
// ibillnr beginn --------------------------------
if( ($_GET['action2']=='set_ibillnr') && ($order->info['ibn_billnr']==0) ) {
require_once (DIR_FS_INC.'xtc_get_next_ibillnr.inc.php');
require_once (DIR_FS_INC.'xtc_set_ibillnr.inc.php');
require_once (DIR_FS_INC.'xtc_inc_next_ibillnr.inc.php');
$ibillnr = xtc_get_next_ibillnr();
xtc_set_ibillnr($_GET['oID'], $ibillnr);
xtc_inc_next_ibillnr();
xtc_redirect(FILENAME_ORDERS. "?page=1&oID=".$_GET['oID']."&action=edit");
}
// ibillnr end --------------------------------
---------------------------------------------------------------------------------------------------
finde folgendes:
<td><table border="0" cellspacing="0" cellpadding="2">
und ersetze es mit:
<td>
<table border="0" cellspacing="0" cellpadding="2">
<?php // ibillnr
$raw_date = $order->info['ibn_billdate'];
$year = substr($raw_date, 0, 4);
$month = (int)substr($raw_date, 5, 2);
$day = (int)substr($raw_date, 8, 2);
if (@date('Y', mktime($hour, $minute, $second, $month, $day, $year)) == $year) {
$r=date('d-m-Y', mktime($hour, $minute, $second, $month, $day, $year));
} else {
$r=ereg_replace('2037' . '$', $year, date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, 2037)));
}
$d=$order->info['ibn_billnr'].'-'.$r;
?>
<tr>
<td class="main"><b><?php echo ENTRY_BILLING; ?></b></td>
<td class="main"><?php echo $order->info['ibn_billnr']>0?$d:''; ?></td>
</tr>
---------------------------------------------------------------------------------------------------
finde folgendes:
echo '<a class="button" href="'.xtc_href_link(FILENAME_GV_MAIL, xtc_get_all_get_params(array ('cID', 'action')).'cID='.$order->customer['ID']).'">'.BUTTON_SEND_COUPON.'</a>';
}
?>
und füge danach ein:
<?php
if( $order->info['ibn_billnr']==0 ) {
?>
<a class="button" href="orders.php?page=1&oID=<? echo $_GET['oID']; ?>&action=edit&action2=set_ibillnr"><?php echo BUTTON_BILL; ?></a>
<?php
} // if($order->info['ibn_billnr']==0)
?>
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-admin/print_order.php
---------------------------------------------------------------------------------------------------
finde folgendes:
$smarty->assign('order_data', $order_data);
$smarty->assign('order_total', $order_total);
und füge danach ein:
// ibillnr beginn -----------------------------
$raw_date = $order->info['ibn_billdate'];
$year = substr($raw_date, 0, 4);
$month = (int)substr($raw_date, 5, 2);
$day = (int)substr($raw_date, 8, 2);
if (@date('Y', mktime($hour, $minute, $second, $month, $day, $year)) == $year) {
$r=date('d-m-Y', mktime($hour, $minute, $second, $month, $day, $year));
} else {
$r=ereg_replace('2037' . '$', $year, date(DATE_FORMAT, mktime($hour, $minute, $second, $month, $day, 2037)));
}
$d=$order->info['ibn_billnr'].'-'.$r;
$smarty->assign('IBN_BILLNUMBER', $d);
$smarty->assign('IBN_BILLDATE', xtc_date_short($order->info['ibn_billdate'].' 00:00:00'));
// ibillnr end -----------------------------
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-includes/application_top.php
---------------------------------------------------------------------------------------------------
Achtung!!!! Diese folgende Änderung ist nur notwendig, wenn Sie bisher noch KEINE Bibliothek von Imedes
erworben haben, welches unter einer Bezahllizenz steht. Falls Sie nicht sicher sind, dann schauen Sie
einfach in den Quellcode der entsprechenden Datei oder sprechen uns einfach an
finde folgendes:
require_once (DIR_FS_INC.'xtc_db_connect.inc.php');
require_once (DIR_FS_INC.'xtc_db_close.inc.php');
require_once (DIR_FS_INC.'xtc_db_error.inc.php');
require_once (DIR_FS_INC.'xtc_db_perform.inc.php');
require_once (DIR_FS_INC.'xtc_db_query.inc.php');
require_once (DIR_FS_INC.'xtc_db_queryCached.inc.php');
require_once (DIR_FS_INC.'xtc_db_fetch_array.inc.php');
require_once (DIR_FS_INC.'xtc_db_num_rows.inc.php');
require_once (DIR_FS_INC.'xtc_db_data_seek.inc.php');
require_once (DIR_FS_INC.'xtc_db_insert_id.inc.php');
require_once (DIR_FS_INC.'xtc_db_free_result.inc.php');
require_once (DIR_FS_INC.'xtc_db_fetch_fields.inc.php');
require_once (DIR_FS_INC.'xtc_db_output.inc.php');
require_once (DIR_FS_INC.'xtc_db_input.inc.php');
und ersetze es mit.
require_once(DIR_WS_FUNCTIONS.'database.php');
// require_once (DIR_FS_INC.'xtc_db_connect.inc.php');
// require_once (DIR_FS_INC.'xtc_db_close.inc.php');
// require_once (DIR_FS_INC.'xtc_db_error.inc.php');
// require_once (DIR_FS_INC.'xtc_db_perform.inc.php');
// require_once (DIR_FS_INC.'xtc_db_query.inc.php');
// require_once (DIR_FS_INC.'xtc_db_queryCached.inc.php');
// require_once (DIR_FS_INC.'xtc_db_fetch_array.inc.php');
// require_once (DIR_FS_INC.'xtc_db_num_rows.inc.php');
// require_once (DIR_FS_INC.'xtc_db_data_seek.inc.php');
// require_once (DIR_FS_INC.'xtc_db_insert_id.inc.php');
// require_once (DIR_FS_INC.'xtc_db_free_result.inc.php');
// require_once (DIR_FS_INC.'xtc_db_fetch_fields.inc.php');
// require_once (DIR_FS_INC.'xtc_db_output.inc.php');
// require_once (DIR_FS_INC.'xtc_db_input.inc.php');
---------------------------------------------------------------------------------------------------
Achtung!!!! Diese folgende Änderung ist nur notwendig, wenn Sie bisher noch KEINE Bibliothek von Imedes
erworben haben, welches unter einer Bezahllizenz steht. Falls Sie nicht sicher sind, dann schauen Sie
einfach in den Quellcode der entsprechenden Datei oder sprechen uns einfach an
finde folgendes:
xtc_db_connect() or die('Unable to connect to database server!');
und ersetze es mit:
require_once (DIR_FS_CATALOG.'imedes_library/db_connect_alt.php');
db_connect_alt() or die('Unable to connect to database server!');
global $ADODB_FETCH_MODE;
$ADODB_FETCH_MODE=ADODB_FETCH_ASSOC;
---------------------------------------------------------------------------------------------------
Achtung!!!! Diese folgende Änderung ist nur notwendig, wenn Sie bisher noch KEINE Bibliothek von Imedes
erworben haben, welches unter einer Bezahllizenz steht. Falls Sie nicht sicher sind, dann schauen Sie
einfach in den Quellcode der entsprechenden Datei oder sprechen uns einfach an
finde folgendes:
// include the language translations
require (DIR_WS_LANGUAGES.$_SESSION['language'].'/'.$_SESSION['language'].'.php');
und füge danach ein:
$db->Execute("SET NAMES 'latin1'");
$db->Execute("SET CHARACTER_SET_CLIENT=latin1");
$db->Execute("SET CHARACTER_SET_RESULTS=latin1");
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-includes/functions/sessions.php
---------------------------------------------------------------------------------------------------
Achtung!!!! Diese folgende Änderung ist nur notwendig, wenn Sie bisher noch KEINE Bibliothek von Imedes
erworben haben, welches unter einer Bezahllizenz steht. Falls Sie nicht sicher sind, dann schauen Sie
einfach in den Quellcode der entsprechenden Datei oder sprechen uns einfach an
finde folgendes:
function _sess_write($key, $val) {
global $SESS_LIFE;
und füge danach ein:
if(!is_object($db)){// Vermutlich wird das $db objekt gelöscht, bevor die Session geschrieben wird
global$db;
require_once (DIR_FS_CATALOG.'imedes_library/db_connect_alt.php');
db_connect_alt() or die('Unable to connect to database server!');
$db->Execute("SET NAMES 'latin1'");
$db->Execute("SET CHARACTER_SET_CLIENT=latin1");
$db->Execute("SET CHARACTER_SET_RESULTS=latin1");
}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/english/admin/buttons.php
---------------------------------------------------------------------------------------------------
finde folgendes:
define('BUTTON_REVIEW_APPROVE', 'OK');
define('BUTTON_SEND_EMAIL', 'Send eMail');
define('BUTTON_SEND_COUPON', 'Send Coupon');
und füge danach ein:
define('BUTTON_BILL', 'Invoice'); // ibillnr
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/english/admin/configuration.php
---------------------------------------------------------------------------------------------------
finde folgendes:
define('EMAIL_FROM_TITLE' , 'eMail from');
define('EMAIL_FROM_DESC' , 'The eMail Adress used in (sent) eMails.');
und füge danach ein:
define('IBN_BILLNR_TITLE', '[ibillnr] Next Invoice Numer'); // ibillnr
define('IBN_BILLNR_DESC', '');
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/english/admin/english.php
---------------------------------------------------------------------------------------------------
finde folgendes:
define('TITLE_MEMO','Customers MEMO');
und füge danach ein:
define('ENTRY_BILLING', 'Invoice Number'); // ibillnr
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/english/lang_english.conf
---------------------------------------------------------------------------------------------------
finde folgendes:
head_artnr = 'Product. No'
head_price = 'Price'
head_single_price = 'Singleprice'
und füge danach ein:
billnumber = 'Invoice Number:'
billdate = 'Invoice Date:'
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/german/admin/buttons.php
---------------------------------------------------------------------------------------------------
finde folgendes:
define('BUTTON_SEND_COUPON', 'Gutschein senden');
und füge danach ein:
define('BUTTON_BILL', 'Fakturieren'); // ibillnr
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/german/admin/configuration.php
---------------------------------------------------------------------------------------------------
finde folgendes:
define('STORE_OWNER_EMAIL_ADDRESS_DESC' , 'Die eMail Adresse des Shop-Betreibers');
und füge danach ein:
define('IBN_BILLNR_TITLE', '[ibillnr] Nächste Rechnungsnummer'); //ibillnr
define('IBN_BILLNR_DESC', 'Beim fakturieren einer Bestellung wird diese Nummer als nächstes vergeben.');
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/german/admin/german.php
---------------------------------------------------------------------------------------------------
finde folgendes:
define('TITLE_MEMO','Kunden MEMO');
und füge danach ein:
define('ENTRY_BILLING', 'Rechnungsnummer:'); // ibillnr
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/german/lang_german.conf
---------------------------------------------------------------------------------------------------
finde folgendes:
head_price = 'Preis:'
head_single_price = 'Einzelpreis:'
csID = 'Kundennummer:'
und füge danach ein:
billnumber = 'Rechnungsnummer:'
billdate = 'Rechnungsdatum:'
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/admin/print_order.html
---------------------------------------------------------------------------------------------------
finde folgendes:
<strong>{#payment#}</strong> {$PAYMENT_METHOD}<br>
<strong>{#order#}</strong> {$oID}<br>
<strong>{#date#}</strong> {$DATE}<br>
und füge danach ein:
{if $IBN_BILLNUMBER!='' }
<strong>{#billnumber#}</strong> {$IBN_BILLNUMBER}<br>
<!-- <strong>{#billdate#}</strong> {$IBN_BILLDATE}<br> -->
{/if}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
|