|
ECB SEO SHOP SOFTWARE - IMEDES SOFTWARE DOWNLOADS
Modul ioptcalc, Installation
-----------------------------
includes/modules/product_info.php
---------------------------------
Suche:
$info_smarty->assign('FORM_ACTION', xtc_draw_form('cart_quantity', xtc_href_link(FILENAME_PRODUCT_INFO, xtc_get_all_get_params(array ('action')).'action=add_product')));
$info_smarty->assign('FORM_END', '</form>');
$info_smarty->assign('PRODUCTS_PRICE', $products_price['formated']);
Füge danach ein:
include( DIR_FS_CATALOG.'imedes_library/fragments/ioptcalc.product_info.f2.php'); // ioptcalc
Suche:
include (DIR_WS_MODULES.'product_attributes.php');
include (DIR_WS_MODULES.'product_reviews.php');
Füge danach ein:
include( DIR_FS_CATALOG.'imedes_library/fragments/ioptcalc.product_info.f1.php'); // ioptcalc
includes/modules/product_attributes.php
---------------------------------------
Suche:
if ($product->getAttributesCount() > 0) {
$products_options_name_query = xtDBquery("select distinct ............. etc..........
$row = 0;
$col = 0;
Füge danach ein:
include( DIR_FS_CATALOG.'imedes_library/fragments/ioptcalc.product_attributes.f1.php'); // ioptcalc
Suche die Zeile (Zeile hier ist übersichtlicher formatiert als im Original!):
$products_options_data[$row]['DATA'][$col] = array ('ID' => $products_options['products_options_values_id'],
'TEXT' => $products_options['products_options_values_name'],
'MODEL' => $products_options['attributes_model'],
'PRICE' => $xtPrice->xtcFormat($price, true),
'FULL_PRICE' => $xtPrice->xtcFormat($full, true),
'PREFIX' => $products_options['price_prefix']);
Ersetze durch:
$products_options_data[$row]['DATA'][$col] = array ('ID' => $products_options['products_options_values_id'],
'JS_ID' => "f0_a$js_id_count", // ioptcalc
'JS_PRICE' => $attr_price*1, // ioptcalc
'TEXT' => $products_options['products_options_values_name'],
'MODEL' => $products_options['attributes_model'],
'PRICE' => $xtPrice->xtcFormat($price, true),
'FULL_PRICE' => $xtPrice->xtcFormat($full, true),
'PREFIX' => $products_options['price_prefix']);
$js_id_count++; // ioptcalc
templates/xtc4/javascript/ioptcalc.js.php
-----------------------------------------
Neue Datei
templates/xtc4/module/product_info/product_info_v1.html
-------------------------------------------------------
Suche (1. Zeile):
{config_load file="$language/lang_$language.conf" section="product_info"}
Füge danach ein:
<!-- ioptcalc begin -->
{if $MODULE_product_options !=''}
<script src="{$tpl_path}javascript/ioptcalc.js.php" type="text/javascript"></script>
<script language="JavaScript" type="text/JavaScript">
var form_price_id = Array( "f0_price",'' );
var form_price_basic = Array( {$PRODUCTS_PRICE_PLAIN},0 );
var form_id = Array( 1 );
var form_optval = Array( 1 );
form_id[0] = new Array( {$OPTIONS_JS_IDLIST} );
form_optval[0] = new Array( {$OPTIONS_JS_PRICELIST},0 );
var curr_format_symbol_left = '{$curr_format_symbol_left}';
var curr_format_symbol_right = '{$curr_format_symbol_right}';
var curr_format_decimal_point = '{$curr_format_decimal_point}';
var curr_format_thousands_point = '{$curr_format_thousands_point}';
var curr_format_decimal_places = {$curr_format_decimal_places};
</script>
{/if}
<!-- ioptcalc end -->
Suche:
<strong>{$PRODUCTS_PRICE}</strong>
Ersetze durch:
<strong><span id="f0_price">{$PRODUCTS_PRICE}</span></strong>
Füge an:
<br />({$PRODUCTS_PRICE})<br />
Suche (ganz am Ende):
{$FORM_END}
Füge DAVOR ein:
{if $MODULE_product_options !=''}
<script language="JavaScript" type="text/JavaScript">
fc_options_recalc(0); // ioptcalc
</script>
{/if}
templates/xtc4/module/product_options/table_listing.html
--------------------------------------------------------
Suche:
<input type="radio" name="id[{$options_data.ID}]" value="{$item_data.ID}" checked="checked" />
und:
<input type="radio" name="id[{$options_data.ID}]" value="{$item_data.ID}" />
Ersetze durch:
<input type="radio" id="{$item_data.JS_ID}" name="id[{$options_data.ID}]" value="{$item_data.ID}" onClick="fc_options_recalc(0);" checked="checked" />
und
<input type="radio" id="{$item_data.JS_ID}" name="id[{$options_data.ID}]" value="{$item_data.ID}" onClick="fc_options_recalc(0);" />
templates/xtc4/module/product_options/product_options_dropdown.html
-------------------------------------------------------------------
Suche:
<select name="id[{$options_data.ID}]" >
Ersetze durch:
<select name="id[{$options_data.ID}]" onchange="fc_options_recalc(0);">
Suche:
<option value="{$item_data.ID}">
Ersetze durch:
<option id="{$item_data.JS_ID}" value="{$item_data.ID}">
templates/xtc4/module/product_options/product_options_selection.html
--------------------------------------------------------------------
Suche:
<input type="radio" name="id[{$options_data.ID}]" value="{$item_data.ID}" checked="checked" />
Ersetze durch:
<input type="radio" id="{$item_data.JS_ID}" name="id[{$options_data.ID}]" value="{$item_data.ID}" checked="checked" onClick="fc_options_recalc(0);" />
Teil 2
---------
/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:
// Database
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');
require_once (DIR_FS_INC.'xtc_db_prepare_input.inc.php');
require_once (DIR_FS_INC.'xtc_get_top_level_domain.inc.php');
und ersetze es mit:
// Database
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');
require_once (DIR_FS_INC.'xtc_db_prepare_input.inc.php');
require_once (DIR_FS_INC.'xtc_get_top_level_domain.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.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 ersetze es mit:
// include the language translations
require (DIR_WS_LANGUAGES.$_SESSION['language'].'/'.$_SESSION['language'].'.php');
$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 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.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/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:
// 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/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");
}
---------------------------------
---------------------------------
---------------------------------
|