|
ECB SEO SHOP SOFTWARE - IMEDES SOFTWARE DOWNLOADS
*****************************************
* *
* INSTALLATION-GUIDE *
* *
*****************************************
* @package AjaxAddToCart *
* @compatible SP2.1 *
*****************************************
--------------
NEW FILES:
--------------
ajax_shopping_cart.php
images/loading.gif
images/loading_1.gif
images/loading_2.gif
images/ok.gif
images/ok_1.gif
images/ok_2.gif
includes/application_top_ajax.php
includes/classes/sybsys.php
includes/functions/database.php
--------------
NEW DIRS:
--------------
imedes_library
includes/classes/adodb_full
--------------
CHANGED FILES:
--------------
admin/includes/application_top.php
admin/includes/configure.php
admin/includes/functions/sessions.php
inc/xtc_draw_form.inc.php
inc/xtc_redirect.inc.php
includes/application_top.php
includes/cart_actions.php
includes/classes/product.php
includes/configure.php
includes/functions/sessions.php
templates/xtc4/javascript/general.js.php
templates/xtc4/module/product_listing/product_listing_v1.html
templates/xtc4/source/boxes/shopping_cart.php
-------------
INSTALLATION:
-------------
1. new_files und new_dirs kopieren.
2. 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/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");
}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-inc/xtc_draw_form.inc.php
---------------------------------------------------------------------------------------------------
finde folgendes:
// Output a form
function xtc_draw_form($name, $action, $method = 'post', $parameters = '') {
$form = '<form id="' . xtc_parse_input_field_data($name, array('"' => '"')) . '" action="' . xtc_parse_input_field_data($action, array('"' => '"')) . '" method="' . xtc_parse_input_field_data($method, array('"' => '"')) . '"';
und füge danach ein:
// AJAX Addto shopping_cart - Begin
if( preg_match("/add_product/i", $action) ){
$form .= ' onSubmit="doAddProduct(this); return false;"';
}
// AJAX Addto shopping_cart - End
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-inc/xtc_redirect.inc.php
---------------------------------------------------------------------------------------------------
finde folgendes:
$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL
}
}
und füge danach ein:
// AJAX Addto shopping_cart - Begin
global $HTTP_GET_VARS, $PHP_SELF, $_RESULT;
if ( strpos( basename($PHP_SELF), 'ajax_shopping_cart.php')!==FALSE ) {
if ( $url == xtc_href_link(FILENAME_SSL_CHECK) ||
$url == xtc_href_link(FILENAME_LOGIN) ||
$url == xtc_href_link(FILENAME_COOKIE_USAGE) ||
( $HTTP_GET_VARS['action'] === 'buy_now' && xtc_has_product_attributes($HTTP_GET_VARS['products_id']) )
) {
$_RESULT['ajax_redirect'] = $url;
xtc_exit();
}
return;
}
// AJAX Addto shopping_cart - 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:
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/cart_actions.php
---------------------------------------------------------------------------------------------------
finde folgendes:
xtc_redirect(xtc_href_link($goto, 'products_id=' . (int) $_POST['products_id'] . '&' . xtc_get_all_get_params($parameters)));
und füge davor ein:
if (!is_object($_SESSION['cart'])) {
$_SESSION['cart'] = new shoppingCart();
}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-includes/classes/product.php
---------------------------------------------------------------------------------------------------
finde folgendes:
function getAttributesCount() {
und ersetze es mit
function getAttributesCount($pid='') {
if ($pid!='')
$products_attributes_query = xtDBquery("select count(*) as total from ".TABLE_PRODUCTS_OPTIONS." popt, ".TABLE_PRODUCTS_ATTRIBUTES." patrib where patrib.products_id='".$pid."' and patrib.options_id = popt.products_options_id and popt.language_id = '".(int) $_SESSION['languages_id']."'");
else
---------------------------------------------------------------------------------------------------
finde folgendes:
return '<a href="'.xtc_href_link(basename($PHP_SELF), 'action=buy_now&BUYproducts_id='.$id.'&'.xtc_get_all_get_params(array ('action')), 'NONSSL').'">'.xtc_image_button('button_buy_now.gif', TEXT_BUY.$name.TEXT_NOW).'</a>';
und ersetze es mit
return '<a href="'.xtc_href_link(basename($PHP_SELF), 'action=buy_now&BUYproducts_id='.$id.'&'.xtc_get_all_get_params(array ('action')), 'NONSSL').'" onClick="doBuyNowGet(\'' . xtc_href_link( 'ajax_shopping_cart.php', 'action=buy_now&BUYproducts_id='.$id.'&'.xtc_get_all_get_params(array ('action')),'NONSSL') . '\'); return false" >'.xtc_image_button('button_buy_now.gif', TEXT_BUY.$name.TEXT_NOW).'</a>';
---------------------------------------------------------------------------------------------------
finde folgendes:
return array ('PRODUCTS_NAME' => $array['products_name'],
und ersetze es mit
$p_array = array ('PRODUCTS_NAME' => $array['products_name'],
---------------------------------------------------------------------------------------------------
finde folgendes:
'PRODUCTS_CATEGORY_URL'=>$array['cat_url'],
'PRODUCTS_SHORT_DESCRIPTION' => $array['products_short_description'],
'PRODUCTS_FSK18' => $array['products_fsk18']);
und füge danach ein:
if ($this->getAttributesCount($array['products_id'])>0) {
$p_array['DETAIL_BUTTON'] = '<a href="'.xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id='.$array['products_id'], 'NONSSL').'">'.xtc_image_button('button_view.gif', $array['products_name']).'</a>';
}
return $p_array;
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-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");
}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/javascript/general.js.php
---------------------------------------------------------------------------------------------------
finde folgendes:
?>
<script type="text/javascript"><!--
und füge davor ein:
include ('imedes_library/aac.php');
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/module/product_listing/product_listing_v1.html
---------------------------------------------------------------------------------------------------
finde folgendes:
{$module_data.PRODUCTS_BUTTON_BUY_NOW}</td>
und ersetze es mit:
{if $module_data.DETAIL_BUTTON}
{$module_data.DETAIL_BUTTON}
{else}
{$module_data.PRODUCTS_BUTTON_BUY_NOW}
{/if}</td>
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
-templates/xtc4/source/boxes/shopping_cart.php
---------------------------------------------------------------------------------------------------
finde folgendes:
$smarty->assign('box_CART', $box_shopping_cart);
und ersetze es mit:
if($output==1)
echo $box_shopping_cart;
else
$smarty->assign('box_CART', '<div id="divShoppingCard">'.$box_shopping_cart."</div>")
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
|