|
ECB SEO SHOP SOFTWARE - IMEDES SOFTWARE DOWNLOADS
*****************************************
* *
* INSTALLATION-GUIDE *
* *
*****************************************
* @package izones *
* @compatible SP2.1 *
*****************************************
--------------
NEW FILES:
--------------
admin/images/izone_btn_back.gif
admin/images/izone_btn_cancel.gif
admin/images/izone_btn_ckeckplz.gif
admin/images/izone_btn_delete.gif
admin/images/izone_btn_edit.gif
admin/images/izone_btn_newzone.gif
admin/images/izone_btn_save.gif
admin/images/izone_mainbg.gif
admin/images/izone_subheading.gif
admin/images/izone_topbg_left.gif
admin/images/izone_topbg_right.gif
admin/images/Thumbs.db
admin/iz_zones.php
images/loading.gif
includes/classes/class_iz_zones.php
includes/functions/database.php
includes/modules/shipping/izzones.php
izzones_xajax.server.php
lang/english/admin/iz_zones.php
lang/english/modules/shipping/izzones.php
lang/german/admin/iz_zones.php
lang/german/modules/shipping/izzones.php
--------------
NEW DIRS:
--------------
admin/includes/jscalendar
imedes_library
includes/classes/adodb_full
includes/jscalendar
includes/xajax_core
includes/xajax_js
--------------
CHANGED FILES:
--------------
admin/includes/application_top.php
admin/includes/column_left.php
admin/includes/functions/sessions.php
admin/includes/stylesheet.css
checkout_shipping.php
includes/application_top.php
includes/database_tables.php
includes/functions/sessions.php
lang/english/admin/english.php
lang/german/admin/german.php
templates/xtc4/module/checkout_shipping.html
templates/xtc4/module/checkout_shipping_block.html
-------------
INSTALLATION:
-------------
1. Datenkbankerweiterungen durchführen
CREATE TABLE `iz_zones` (
`zones_id` INT NOT NULL AUTO_INCREMENT ,
`zones_name` CHAR( 15 ) NOT NULL ,
`zones_price` DECIMAL( 15, 4 ) NOT NULL ,
`zones_price_hd` DECIMAL( 15, 4 ) NOT NULL ,
`zones_free_limit` DECIMAL( 15, 4 ) NOT NULL ,
PRIMARY KEY ( `zones_id` )
) TYPE = MYISAM ;
CREATE TABLE `iz_postcodes` (
`postcodes_id` INT NOT NULL AUTO_INCREMENT ,
`zones_id` INT NOT NULL ,
`postcodes_from` CHAR( 6 ) NOT NULL ,
`postcodes_to` CHAR( 6 ) NOT NULL ,
PRIMARY KEY ( `postcodes_id` )
) TYPE = MYISAM ;
CREATE TABLE `iz_holidays` (
`holidays_id` int(11) NOT NULL auto_increment,
`holidays_date` date NOT NULL default '0000-00-00',
`holidays_name` char(64) NOT NULL default '',
PRIMARY KEY (`holidays_id`)
) TYPE=MyISAM;
ALTER TABLE `admin_access` ADD `iz_zones` INT( 1 ) DEFAULT '1' NOT NULL ;
ALTER TABLE `orders` ADD `date_delivery` DATETIME 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 (
'', 'IZ_ZONE_DEFAULTPRICE', '20', '6', NULL , NULL , '0000-00-00 00:00:00', NULL , NULL
);
INSERT INTO `configuration` ( `configuration_id` , `configuration_key` , `configuration_value` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` )
VALUES (
'', 'IZ_ZONE_DEFAULTPRICE_HD', '40', '6', NULL , NULL , '0000-00-00 00:00:00', NULL , NULL
);
INSERT INTO `configuration` ( `configuration_id` , `configuration_key` , `configuration_value` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` )
VALUES (
'', 'IZ_ZONE_DEFAULT_FREE_LIMIT', '0', '6', NULL , NULL , '0000-00-00 00:00:00', NULL , NULL
);
INSERT INTO `configuration` ( `configuration_id` , `configuration_key` , `configuration_value` , `configuration_group_id` , `sort_order` , `last_modified` , `date_added` , `use_function` , `set_function` )
VALUES (
'', 'IZ_ZONE_SATSUN', 'true', '6', NULL , NULL , '0000-00-00 00:00:00', NULL , NULL
);
2. new_files kopieren.
3. changed_files kopieren, oder bei nicht standard-version folgende änderungen durchführen:
-admin/includes/application_top.php
---------------------------------------------------------------------------------------------------
finde folgendes:
define('FILENAME_XSELL_GROUPS','cross_sell_groups.php');
und füge danach ein:
define('FILENAME_IZ_ZONES','iz_zones.php'); // iz_zones
define('TABLE_IZ_ZONES','iz_zones'); // iz_zones
define('TABLE_IZ_POSTCODES','iz_postcodes'); // iz_zones
define('TABLE_IZ_HOLIDAYS','iz_holidays'); // iz_zones
---------------------------------------------------------------------------------------------------
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 needed functions
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');
require_once(DIR_FS_INC . 'xtc_db_prepare_input.inc.php');
require_once(DIR_FS_INC . 'xtc_get_ip_address.inc.php');
require_once(DIR_FS_INC . 'xtc_setcookie.inc.php');
require_once(DIR_FS_INC . 'xtc_validate_email.inc.php');
require_once(DIR_FS_INC . 'xtc_not_null.inc.php');
require_once(DIR_FS_INC . 'xtc_add_tax.inc.php');
require_once(DIR_FS_INC . 'xtc_get_tax_rate.inc.php');
require_once(DIR_FS_INC . 'xtc_get_qty.inc.php');
require_once(DIR_FS_INC . 'xtc_product_link.inc.php');
require_once(DIR_FS_INC . 'xtc_cleanName.inc.php');
und ersetze es mit:
// include needed functions
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');
require_once(DIR_FS_INC . 'xtc_db_prepare_input.inc.php');
require_once(DIR_FS_INC . 'xtc_get_ip_address.inc.php');
require_once(DIR_FS_INC . 'xtc_setcookie.inc.php');
require_once(DIR_FS_INC . 'xtc_validate_email.inc.php');
require_once(DIR_FS_INC . 'xtc_not_null.inc.php');
require_once(DIR_FS_INC . 'xtc_add_tax.inc.php');
require_once(DIR_FS_INC . 'xtc_get_tax_rate.inc.php');
require_once(DIR_FS_INC . 'xtc_get_qty.inc.php');
require_once(DIR_FS_INC . 'xtc_product_link.inc.php');
require_once(DIR_FS_INC . 'xtc_cleanName.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:
// make a connection to the database... now
xtc_db_connect() or die('Unable to connect to database server!');
und ersetze es mit:
// make a connection to the database... now
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/column_left.php
---------------------------------------------------------------------------------------------------
finde folgendes:
if (($_SESSION['customers_status']['customers_status_id'] == '0') && ($admin_access['module_export'] == '1')) echo '<a href="' . xtc_href_link(FILENAME_MODULE_EXPORT) . '" class="menuBoxContentLink"> -' . BOX_MODULE_EXPORT . '</a><br>';
und füge danach ein:
if (($_SESSION['customers_status']['customers_status_id'] == '0') && ($admin_access['iz_zones'] == '1')) echo '<a href="' . xtc_href_link(FILENAME_IZ_ZONES) . '" class="menuBoxContentLink"> -' . BOX_IZ_ZONES . '</a><br>'; // iz_zones
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-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 ersetze es mit:
function _sess_write($key, $val) {
global $SESS_LIFE;
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/includes/stylesheet.css
---------------------------------------------------------------------------------------------------
am Ende einfügen:
/* Imedes izone */
.izone {
font-family:Arial, Verdana, San Serif;
color:#1b1b1b;
font-size:11px;
}
.izone .heading {
background-color:#B1BFBF;
}
.izone .heading_title_left {
background-image:url(../images/izone_topbg_left.gif);
background-repeat:no-repeat;
font-weight:bold;
color:#ffffff;
padding:20px;
}
.izone .heading_title_right {
background-image:url(../images/izone_topbg_right.gif);
background-repeat:no-repeat;
width:242px;
}
.izone .subtitle {
background-image:url(../images/izone_subheading.gif);
height:21px;
}
.izone .main {
background-color: #eaeded;
background-image: url(../images/izone_mainbg.gif);
background-repeat: repeat-x;
}
.izone input {
font-size: 11px;
color: #1b1b1b;
padding: 2px;
font-family: Arial,San Serif;
background-color: #dbe1e3;
border: 1px solid #2f3b58;
}
.izone img {
border:0px;
background-color:transparent;
}
#izone_button {
border:0px;
background-color:transparent;
}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-checkout_shipping.php
---------------------------------------------------------------------------------------------------
finde folgendes:
-if (isset ($_POST['action']) && ($_POST['action'] == 'process')) {
und ersetze es mit:
$no_checkout_shipping_process = $no_checkout_shipping_process | isset($_POST['no_process']); // iz_zones
// process the selected shipping method
if (isset ($_POST['action']) && ($_POST['action'] == 'process') && ($no_checkout_shipping_process==false) ) { // iz_zone
---------------------------------------------------------------------------------------------------
finde folgendes:
$checked = (($quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id'] == $_SESSION['shipping']['id']) ? true : false);
und füge danach ein:
// --- iz_zone beginn ----------------
if( isset($_POST['shipping']) ) {
$checked = (($quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id'] == $_POST['shipping']) ? true : false);
}
// --- iz_zone end ----------------
---------------------------------------------------------------------------------------------------
finde folgendes:
$quotes[$i]['methods'][$j]['price'] = $xtPrice->xtcFormat(xtc_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax']), true, 0, true).xtc_draw_hidden_field('shipping', $quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id']);
und ersetze es mit:
$quotes[$i]['methods'][$j]['price'] = $xtPrice->xtcFormat(xtc_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax']), true, 0, true);
$quotes[$i]['methods'][$j]['shp_fld'] = xtc_draw_hidden_field('shipping', $quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id']);
---------------------------------------------------------------------------------------------------
finde folgendes:
$smarty->assign('language', $_SESSION['language']);
und füge danach ein:
$smarty->assign('language_code', $_SESSION['language_code']); // iz_zones
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-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/database_tables.php
---------------------------------------------------------------------------------------------------
finde folgendes:
Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
und füge danach ein:
define('TABLE_IZ_ZONES','iz_zones'); // iz_zones
define('TABLE_IZ_POSTCODES','iz_postcodes'); // iz_zones
define('TABLE_IZ_HOLIDAYS','iz_holidays'); // iz_zones
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-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/english.php
---------------------------------------------------------------------------------------------------
finde folgendes:
define('BOX_CAMPAIGNS_REPORT','Campaign report');
define('BOX_ORDERS_XSELL_GROUP','Cross-sell groups');
und füge danach ein:
define('BOX_IZ_ZONES','Postcode zones'); // iz_zones
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-lang/german/admin/german.php
---------------------------------------------------------------------------------------------------
finde folgendes:
define('BOX_CAMPAIGNS_REPORT','Kampagnen Report');
define('BOX_ORDERS_XSELL_GROUP','Cross-Marketing Gruppen');
und füge danach ein:
define('BOX_IZ_ZONES','Imedes PLZ Zonenversand'); // iz_zones
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/module/checkout_shipping.html
---------------------------------------------------------------------------------------------------
finde folgendes:
{config_load file="$language/lang_$language.conf" section="checkout_shipping"}
und füge danach ein:
<link rel="stylesheet" type="text/css" media="all" href="includes/jscalendar/calendar-win2k-cold-1.css" title="win2k-cold-1" />
<script type="text/javascript" src="includes/jscalendar/calendar.js"></script>
<script type="text/javascript" src="includes/jscalendar/lang/calendar-{$language_code}.js"></script>
<script type="text/javascript" src="includes/jscalendar/calendar-setup.js"></script>
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/module/checkout_shipping_block.html
---------------------------------------------------------------------------------------------------
finde folgendes:
{$method_data.title}
und füge davor ein:
{$method_data.checkout_payment}
---------------------------------------------------------------------------------------------------
finde folgendes:
{$method_data.price}
und ersetze es mit:
<span id="{$module_data.id}_xajax_result">{$method_data.price}</span>{$method_data.shp_fld}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
|