|
ECB SEO SHOP SOFTWARE - IMEDES SOFTWARE DOWNLOADS
*****************************************
* *
* INSTALLATION-GUIDE *
* *
*****************************************
* @package attribute_image *
*****************************************
--------------
NEW FILES:
--------------
includes/functions/database.php
templates/xtc4/module/product_info/product_info_v1-ai.html
templates/xtc4/module/product_options/product_options_dropdown-ai.html
templates/xtc4/module/product_options/product_options_selection-ai.html
templates/xtc4/module/product_options/table_listing-ai.html
--------------
CHANGED FILES:
--------------
admin/includes/application_top.php
/admin/includes/functions/sessions.php
admin/includes/modules/new_attributes_change.php
admin/includes/modules/new_attributes_include.php
includes/application_top.php
includes/functions/sessions.php
includes/modules/product_attributes.php
includes/modules/product_info.php
popup_image.php
shopping_cart.php
-------------
INSTALLATION:
-------------
1. new_files kopieren.
2. new_dirs erstellen/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:
// 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");
}
---------------------------------
---------------------------------
---------------------------------
/admin/includes/modules/new_attributes_change.php
------------------------------------------------------------
finde folgendes (ca. Zeile: 20)
Released under the GNU General Public License
--------------------------------------------------------------*/
defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');
danach folgendes einfügen:
require_once ('includes/classes/'.FILENAME_IMAGEMANIPULATOR);
------------------------------------------------------------
finde folgendes:
if ($_POST[$cv_id . '_download_file'] != '') {
$value_download_file = $_POST[$cv_id . '_download_file'];
$value_download_expire = $_POST[$cv_id . '_download_expire'];
davor folgendes einfügen:
if ($products_image = xtc_try_upload($cv_id . '_image', DIR_FS_CATALOG_ORIGINAL_IMAGES, '777', '')) {
$products_image_name = $_POST['current_product_id'].'_att'.$optionsID.'-'.$cv_id.'.jpg';
if (file_exists(DIR_FS_CATALOG_ORIGINAL_IMAGES.$products_image_name)) {
@unlink(DIR_FS_CATALOG_ORIGINAL_IMAGES.$products_image_name);
}
rename(DIR_FS_CATALOG_ORIGINAL_IMAGES.$products_image->filename, DIR_FS_CATALOG_ORIGINAL_IMAGES.$products_image_name);
require (DIR_WS_INCLUDES.'product_thumbnail_images.php');
require (DIR_WS_INCLUDES.'product_info_images.php');
require (DIR_WS_INCLUDES.'product_popup_images.php');
} else if (isset($_POST[$cv_id.'_delimg'])) {
$products_image_name = $_POST['current_product_id'].'_att'.$optionsID.'-'.$cv_id.'.jpg';
@unlink(DIR_FS_CATALOG_ORIGINAL_IMAGES.$products_image_name);
@unlink(DIR_FS_CATALOG_INFO_IMAGES . $products_image_name);
@unlink(DIR_FS_CATALOG_POPUP_IMAGES.$products_image_name);
@unlink(DIR_FS_CATALOG_THUMBNAIL_IMAGES.$products_image_name);
}
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
/admin/includes/modules/new_attributes_include.php
------------------------------------------------------------
finde folgendes (ca. Zeile: 59):
echo "<TD class=\"dataTableHeadingContent\"><B>".ATTR_PREFIXWEIGHT."</B></TD>";
echo "<TD class=\"dataTableHeadingContent\"><B>".ATTR_PRICE."</B></TD>";
echo "<TD class=\"dataTableHeadingContent\"><B>".ATTR_PREFIXPRICE."</B></TD>";
danach folgendes einfügen:
echo "<TD class=\"dataTableHeadingContent\" colspan=\"2\"> </TD>";
------------------------------------------------------------
finde folgendes (ca Zeile: 111):
echo "<TD class=\"main\" align=\"left\"><SELECT name=\"" . $current_value_id . "_prefix\"> <OPTION value=\"+\"" . $posCheck . ">+<OPTION value=\"-\"" . $negCheck . ">-</SELECT></TD>";
danach folgendes einfügen:
echo "<TD class=\"main\" align=\"center\" valign=\"middle\">";
echo "<input type=\"file\" name=\"" . $current_value_id . "_image\" >";
echo "</TD>";
echo "<TD class=\"main\" align=\"center\" valign=\"middle\">";
$products_image_name = $_POST['current_product_id'].'_att'.$current_product_option_id.'-'.$current_value_id.'.jpg';
//echo "<!-- \$products_image_name = $products_image_name //-->\n\n";
if (file_exists(DIR_FS_CATALOG_THUMBNAIL_IMAGES . $products_image_name)) {
echo '<img src="'.DIR_WS_CATALOG_THUMBNAIL_IMAGES.$products_image_name.'">';
echo '<br><input type="checkbox" name="'.$current_value_id.'_delimg"> '.DELETE_ENTRY;
}
echo "</TD>";
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
/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");
}
---------------------------------
---------------------------------
---------------------------------
/includes/modules/product_attributes.php
------------------------------------------------------------
finde folgendes (ca. Zeile: 34):
$products_options_data = array ();
while ($products_options_name = xtc_db_fetch_array($products_options_name_query,true)) {
$selected = 0;
danach einfügen:
$has_image = 0;
------------------------------------------------------------
finde folgendes (ca. Zeile 77):
}
}
danch einfügen:
$products_options_data[$row]['DATA'][$col]['IMAGE'] = '';
//echo DIR_FS_CATALOG.DIR_WS_IMAGES.$product->data['products_id'].'_att'.$products_options_name['products_options_id'].'-'.$products_options['products_options_values_id'].'.jpg<br>';
if (file_exists(DIR_FS_CATALOG.DIR_WS_INFO_IMAGES.$product->data['products_id'].'_att'.$products_options_name['products_options_id'].'-'.$products_options['products_options_values_id'].'.jpg')) {
$products_options_data[$row]['DATA'][$col]['IMAGE'] = $product->data['products_id'].'_att'.$products_options_name['products_options_id'].'-'.$products_options['products_options_values_id'].'.jpg';
$has_image = 1;
}
------------------------------------------------------------
finde folgendes:
$col ++;
}
danach einfügen:
$products_options_data[$row]['HAS_IMAGE'] = $has_image;
------------------------------------------------------------
finde folgendes (ca. Zeile: 96):
}
$product->data['options_template'] = $files[0]['id'];
}
danach einfügen:
$module_smarty->assign('INFO_IMAGE_PATH', DIR_WS_INFO_IMAGES);
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
/includes/modules/product_info.php
------------------------------------------------------------
finde folgendes (ca. Zeile: 103):
$connector = '&';
}
$info_smarty->assign('PRODUCTS_POPUP_LINK', 'javascript:popupWindow(\''.xtc_href_link(FILENAME_POPUP_IMAGE, 'pID='.$product->data['products_id'].$connector.'imgID=0').'\')');
danach einfügen:
$info_smarty->assign('PRODUCTS_POPUP_LINK_BASE', xtc_href_link(FILENAME_POPUP_IMAGE, 'pID='.$product->data['products_id']));
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
/popup_image.php
------------------------------------------------------------
finde folgendes (ca. Zeile: 31):
$products_values = xtc_db_fetch_array($products_query);
$products_values['products_image'] = $products_values['image_name'];
}
danach einfügen:
if (isset($_GET['ai'])) {
$products_values['products_image'] = $_GET['ai'];
}
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
/shopping_cart.php
------------------------------------------------------------
finde folgendes (ca. Zeile: 69):
$products[$i][$option]['attributes_stock'] = $attributes_values['attributes_stock'];
$products[$i][$option]['products_attributes_id'] = $attributes_values['products_attributes_id'];
$products[$i][$option]['products_attributes_model'] = $attributes_values['products_attributes_model'];
danach einfügen:
$products_image_name = (int)$products[$i]['id'].'_att'.$option.'-'.$value.'.jpg';
if (file_exists(DIR_FS_CATALOG.DIR_WS_THUMBNAIL_IMAGES . $products_image_name)) {
$products[$i]['image'] = $products_image_name;
}
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
|