SocialEngine PHP Social Network Script

   

 

http://www.ecombase.de/Bilder/pfeil-category.gif ECB SEO SHOP SOFTWARE - IMEDES SOFTWARE DOWNLOADS

Alle Imedes Software GPL Programme und Module gibt es für jeden auf Ecomase kostenlos zum Download. Der Einsatz und die kostenlose Benutzung der IMEDES Software steht jedem Anwender der Shop Software ECB SEO SHOP SOFTWARE, XT-COMMERCE, GAMBIO 2006/2007, SELF-COMMERCE, COMMERCE:SEO frei. Die Imedes Software ist Gratis !

Weitere Imedes Programme und Shop Module die man kostenlos Downloaden und Nutzen kann.:

kostenlos-imedes-software_zubehoer-modul
kostenlos-imedes-software_aadmin-quickedit

kostenlos-imedes-software_adodb-installieren
kostenlos-imedes-software_advanced-news_nachricht-wenn-artikel-im-shop-verfuegbar kostenlos-imedes-software_ajax-add-to-card
kostenlos-imedes-software_ajax-attribut-manager

kostenlos-imedes-software_ajax-filter

kostenlos-imedes-software_ajax-framework_xajax

kostenlos-imedes-software_ajax-matrix-zubehoer

kostenlos-imedes-software_ajax-produktmatrix

kostenlos-imedes-software_ajax-quick-buy-quickbuy
kostenlos-imedes-software_ajax-staffel-preis-manager-plus kostenlos-imedes-software_artikelabhaengige-versandart kostenlos-imedes-software_artikelabhaengige-zahlart
kostenlos-imedes-software_attribut-check

kostenlos-imedes-software_attribute-image_attribut-bilder
kostenlos-imedes-software_attribut-manager
kostenlos-imedes-software_double-opt-in-pruefung

kostenlos-imedes-software_extra-objekte

kostenlos-imedes-software_faq-support-system

kostenlos-imedes-software_freundschafts-werbung

kostenlos-imedes-software_google-gadget

kostenlos-imedes-software_gutschein-generator

kostenlos-imedes-software_ibillnr

kostenlos-imedes-software_icontentvar

kostenlos-imedes-software_imedes-bundle-software
kostenlos-imedes-software_imedes-cart_komfortabler-warenkorb kostenlos-imedes-software_imedes-kundenbonus kostenlos-imedes-software_imedes-optcalc-optionen-kalkulation kostenlos-imedes-software_imedes-plus-minus-zurueck-von-kaufen-seite kostenlos-imedes-software_irandomindex_imedes-random-index kostenlos-imedes-software_izones_imedes-Zonen kostenlos-imedes-software_kat-dropdown_kategorie-dropdown-frontpage kostenlos-imedes-software_kat-dropdown_kategorie-dropdown-standard kostenlos-imedes-software_kat-dropdown_kategorie-dropdown-template kostenlos-imedes-software_kat-dropdown_kategorie-dropdown-template_frontpage kostenlos-imedes-software_katstaffel_kategorie-staffelpreise
kostenlos-imedes-software_lagerampel

kostenlos-imedes-software_merkzettel
kostenlos-imedes-software_news_newsmanager kostenlos-imedes-software_one-page-checkout
kostenlos-imedes-software_open-search

kostenlos-imedes-software_pdf-katalog

kostenlos-imedes-software_pdf-rechnung

kostenlos-imedes-software_picture-navi_bildnavigation
kostenlos-imedes-software_proaktiver-verkaufsmanager
kostenlos-imedes-software_search

kostenlos-imedes-software_special-filter_spezialfilter
kostenlos-imedes-software_staffel-preis-manager-normal kostenlos-imedes-software_stock-alert.warenbestand-warnung-advanced kostenlos-imedes-software_stock-alert.warenbestand-warnung-basic kostenlos-imedes-software_suspend-user_sperre-kunden kostenlos-imedes-software_thesaurus_shop-Lexikon

 

 *****************************************

 *                                       *

 *         INSTALLATION-GUIDE            *

 *                                       *

 *****************************************

 * @package Attribut Matrix              *

 * @compatible SP2.1                     *

 *****************************************

 

--------------

NEW FILES:

--------------

admin/products_matrix.php

includes/functions/database.php

includes/modules/product_matrix.php

includes/modules/product_matrix_functions.php

includes/wz_tooltip.js

 

 

--------------

NEW DIRS:

--------------

imedes_library

includes/classes/adodb_full

 

 

--------------

CHANGED FILES:

--------------

admin/includes/application_top.php

admin/includes/column_left.php

admin/includes/functions/sessions.php

admin/includes/modules/new_attributes_change.php

admin/includes/modules/new_attributes_include.php

checkout_process.php

includes/application_top.php

includes/cart_actions.php

includes/functions/sessions.php

includes/header.php

includes/modules/order_details_cart.php

includes/modules/product_info.php

lang/german/german.php

templates/xtc4/module/product_info/product_info_v1.html

templates/xtc4/stylesheet.css

 

 

-------------

INSTALLATION:

-------------

 

1. Datenkbankerweiterungen durchführen

ALTER TABLE `admin_access` ADD `products_matrix` INT( 1 ) NOT NULL DEFAULT '0';

UPDATE `admin_access` SET `products_matrix` = '1' WHERE `customers_id` = '1';

 

DROP TABLE IF EXISTS `products_options_matrix`;

CREATE TABLE `products_options_matrix` (

  `matrix_id` int(10) unsigned NOT NULL auto_increment,

  `matrix_values_id` int(11) NOT NULL,

  `products_id` int(11) NOT NULL COMMENT 'Product to which matrix is assigned',

  `horiz_option` int(11) NOT NULL COMMENT 'horizontal attribute',

  `vert_option` int(11) NOT NULL COMMENT 'vertical attribute',

  PRIMARY KEY  (`matrix_id`)

);

 

DROP TABLE IF EXISTS `products_options_matrix_values`;

CREATE TABLE `products_options_matrix_values` (

  `matrix_value_id` int(11) NOT NULL auto_increment,

  `matrix_id` int(11) NOT NULL,

  `horiz_attribute` int(11) NOT NULL COMMENT 'Dies ist NICHT redundant sondern NOTWENDIG, da die Position in der Matrix nicht eindeutig festgelegt ist (bei anderer Attributesortierung z.B)',

  `vert_attribute` int(11) NOT NULL,

  `stock` int(11) NOT NULL,

  `attributes_model` varchar(64) NOT NULL,

  PRIMARY KEY  (`matrix_value_id`)

);

 

 

2. new_files kopieren.

 

3. changed_files kopieren, oder bei nicht standard-version folgende änderungen durchführen:

 

 

-admin/includes/application_top.php

---------------------------------------------------------------------------------------------------

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');

---------------------------------------------------------------------------------------------------

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/column_left.php

---------------------------------------------------------------------------------------------------

finde folgendes:

   if (($_SESSION['customers_status']['customers_status_id'] == '0') && ($admin_access['products_attributes'] == '1')) echo '<a href="' . xtc_href_link(FILENAME_PRODUCTS_ATTRIBUTES, '', 'NONSSL') . '" class="menuBoxContentLink"> -' . BOX_PRODUCTS_ATTRIBUTES . '</a><br>';

 

und füge danach ein:

  if (($_SESSION['customers_status']['customers_status_id'] == '0') && ($admin_access['products_matrix'] == '1')) echo '<a href="' . xtc_href_link('products_matrix.php', '', 'NONSSL') . '" class="menuBoxContentLink"> -' . "Attribut-Matrix" . '</a><br>';

---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------

 

 

-admin/includes/functions/sessions.php

---------------------------------------------------------------------------------------------------

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 '".$_SESSION['language_charset']."'");

            $db->Execute("SET CHARACTER_SET_CLIENT=".$_SESSION['language_charset']);

            $db->Execute("SET CHARACTER_SET_RESULTS=".$_SESSION['language_charset']);

        }

---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------

 

 

-admin/includes/modules/new_attributes_change.php

---------------------------------------------------------------------------------------------------

finde folgendes:

  xtc_db_query("DELETE FROM ".TABLE_PRODUCTS_ATTRIBUTES." WHERE products_id = '" . $_POST['current_product_id'] . "'" );

 

und ersetze es mit:

    $all_ids = array();

    $tmpquery = "SELECT options_id, options_values_id  FROM  products_attributes WHERE products_id = " . $_POST['current_product_id'];

    $tmpresult = xtc_db_query($tmpquery);

    // write all options_values_id into an array for later comparisson

    while($tmpdata = xtc_db_fetch_array($tmpresult))

        $all_ids = array_merge($all_ids, array($tmpdata['options_values_id']));

    // hack yadda yadda yadda <- improve you code instead of making funny comments!

    // keep track of what is to be saved

    $saved_ids = array();

---------------------------------------------------------------------------------------------------

finde folgendes:

 

     $value_model =  $_POST[$cv_id . '_model'];

     $value_stock =  $_POST[$cv_id . '_stock'];

     $value_weight =  $_POST[$cv_id . '_weight'];

 

und füge danach ein:

    if($value_stock < 0 || $value_stock == null)

        $value_stock = 0;

---------------------------------------------------------------------------------------------------

finde folgendes:

      xtc_db_query("INSERT INTO ".TABLE_PRODUCTS_ATTRIBUTES." (products_id, options_id, options_values_id, options_values_price, price_prefix ,attributes_model, attributes_stock, options_values_weight, weight_prefix,sortorder) VALUES ('" . $_POST['current_product_id'] . "', '" . $optionsID . "', '" . $_POST['optionValues'][$i] . "', '" . $value_price . "', '" . $value_prefix . "', '" . $value_model . "', '" . $value_stock . "', '" . $value_weight . "', '" . $value_weight_prefix . "','".$value_sortorder."')") or die(mysql_error());

 

und ersetze es mit:

      // see if this option already exists...

    $tmpquery = "SELECT * FROM products_attributes WHERE products_id = " . $_POST['current_product_id'] .

        " AND options_id = " . $optionsID . " AND options_values_id = " . $_POST['optionValues'][$i] .

        " LIMIT 1";

    $tmpresult = xtc_db_query($tmpquery);

    // ...and if it does, just update the set

    if(xtc_db_num_rows($tmpresult) > 0){

        $tmpquery = "UPDATE ".TABLE_PRODUCTS_ATTRIBUTES." SET " .

            " products_id = " . $_POST['current_product_id'] .  "," .

            " options_id = " . $optionsID . "," .

            " options_values_id = " . $_POST['optionValues'][$i] .  "," .

            " options_values_price = " . $value_price . "," .

            " price_prefix ='" . $value_prefix . "'," .

            " attributes_model='" . $value_model. "'," .

            " attributes_stock='" . $value_stock . "'," .

            " options_values_weight='" . $value_weight . "'," .

            " weight_prefix ='" . $value_weight_prefix . "'," .

            " sortorder='" . $value_sortorder . "'" .

    //, options_id, options_values_id, options_values_price, price_prefix ,attributes_model, attributes_stock, options_values_weight, weight_prefix,sortorder) VALUES ('" . $_POST['current_product_id'] . "', '" . $optionsID . "', '" . $_POST['optionValues'][$i] . "', '" . $value_price . "', '" . $value_prefix . "', '" . $value_model . "', '" . $value_stock . "', '" . $value_weight . "', '" . $value_weight_prefix . "','".$value_sortorder."') " .

            " WHERE products_id = " . $_POST['current_product_id'] .

            " AND options_id = " . $optionsID .

            " AND options_values_id = " . $_POST['optionValues'][$i] .

            " LIMIT 1";

        xtc_db_query($tmpquery);

    }

    // else insert new set

    else{

        $tmpquery = "INSERT INTO products_attributes (products_id, options_id, options_values_id, options_values_price, price_prefix ,attributes_model, attributes_stock, options_values_weight, weight_prefix,sortorder) VALUES ('" . $_POST['current_product_id'] . "', '" . $optionsID . "', '" . $_POST['optionValues'][$i] . "', '" . $value_price . "', '" . $value_prefix . "', '" . $value_model . "', '" . $value_stock . "', '" . $value_weight . "', '" . $value_weight_prefix . "','".$value_sortorder."') ";

        xtc_db_query($tmpquery);

    }   

        

    $saved_ids = array_merge($saved_ids, array($_POST['optionValues'][$i]));

---------------------------------------------------------------------------------------------------

finde folgendes:

         xtc_db_query("INSERT INTO ".TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD." (products_attributes_id, products_attributes_filename, products_attributes_maxdays, products_attributes_maxcount) VALUES ('" . $products_attributes_id . "', '" . $value_download_file . "', '" . $value_download_expire . "', '" . $value_download_count . "')") or die(mysql_error());

     }

   }

 

und füge danach ein:

// we delete every attrib not checked

    foreach($all_ids as $id){

        if(!in_array($id, $saved_ids)){

            $tmpquery = "DELETE FROM " . TABLE_PRODUCTS_ATTRIBUTES . " WHERE products_id = " .

            $_POST['current_product_id'] . " AND options_values_id = " . $id . " LIMIT 1";

            xtc_db_query($tmpquery);

        }

    }

---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------

 

 

-admin/includes/modules/new_attributes_include.php

---------------------------------------------------------------------------------------------------

finde folgendes:

            echo "<TD class=\"main\" align=\"left\"><input type=\"text\" name=\"" . $current_value_id . "_stock\" value=\"" . $attribute_value_stock . "\" size=\"4\"></TD>";

 

und ersetze es mit:

            //TBEGIN ProductMatrix Module       

            echo "<TD class=\"main\" align=\"left\">";

    require_once(DIR_WS_MODULES . "product_matrix_functions.php");

        if(!hasProductMatrix($_POST['current_product_id'])){

            echo "<input type=\"text\" name=\"" . $current_value_id . "_stock\" value=\"" . $attribute_value_stock . "\" size=\"4\">";

        }

        else{

            echo "Matrix";

        }

    echo "</TD>";

    // TEND ProductMatrix Module

---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------

 

 

-checkout_process.php

---------------------------------------------------------------------------------------------------

finde folgendes:

            $attributes_values = xtc_db_fetch_array($attributes);

 

und füge danach ein:

            if(sizeof($order->products[$i]['attributes']) >= 2 && !$order->products[$i]['checked_out']){

                 $option1 = $order->products[$i]['attributes'][0]['option_id'];

                 $value1 = $order->products[$i]['attributes'][0]['value_id'];

                 $option2 = $order->products[$i]['attributes'][1]['option_id'];

                 $value2 = $order->products[$i]['attributes'][1]['value_id'];

                 $query = "SELECT matrix_id FROM products_options_matrix WHERE (horiz_option = $option1 AND vert_option = $option2) " . " OR (horiz_option = $option2 AND vert_option = $option1) AND products_id = " . xtc_get_prid($order->products[$i]['id']) . " LIMIT 1";

                 $result = xtc_db_query($query);

                 if(xtc_db_num_rows($result) > 0){

                     $tmpdata =xtc_db_fetch_array($result); $matrix_id = $tmpdata['matrix_id'];

                     // it was a matrix-product, update stock

                     $query = "SELECT products_attributes_id FROM products_attributes WHERE options_id = $option1 AND options_values_id = $value1 LIMIT 1";

                     $result = xtc_db_query($query);

                     $tmpdata = xtc_db_fetch_array($result);

                     $id1 = $tmpdata['products_attributes_id'];

                     $query = "SELECT products_attributes_id FROM products_attributes WHERE options_id = $option2 AND options_values_id = $value2 LIMIT 1";

                     $result = xtc_db_query($query);

                     $tmpdata = xtc_db_fetch_array($result);

                     $id2 = $tmpdata['products_attributes_id'];

 

                     // update stock

                     $query= "UPDATE products_options_matrix_values SET stock = stock - " .$order->products[$i]['qty'] ."  WHERE (horiz_attribute = $id1 AND vert_attribute = $id2) "." OR (horiz_attribute = $id2 AND vert_attribute = $id1) AND matrix_id = $matrix_id ";

                     xtc_db_query($query);

                     $order->products[$i]['checked_out'] = true;

                 }

             }

---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------

 

 

-includes/application_top.php

---------------------------------------------------------------------------------------------------

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');

---------------------------------------------------------------------------------------------------

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;

---------------------------------------------------------------------------------------------------

finde folgendes:

 require (DIR_WS_LANGUAGES.$_SESSION['language'].'/'.$_SESSION['language'].'.php');

 

und füge danach ein:

$db->Execute("SET NAMES '".$_SESSION['language_charset']."'");

$db->Execute("SET CHARACTER_SET_CLIENT=".$_SESSION['language_charset']);

$db->Execute("SET CHARACTER_SET_RESULTS=".$_SESSION['language_charset']);

---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------

 

 

-includes/cart_actions.php

---------------------------------------------------------------------------------------------------

finde folgendes:

        case 'add_product' :

 

und füge danach ein:

            require_once( DIR_WS_MODULES . "product_matrix_functions.php");

            if(!hasProductMatrix($_POST['products_id'])){

---------------------------------------------------------------------------------------------------

finde folgendes:

                $_SESSION['cart']->add_cart((int) $_POST['products_id'], $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'], $_POST['id'])) + xtc_remove_non_numeric($_POST['products_qty']), $_POST['id']);

            }

            xtc_redirect(xtc_href_link($goto, 'products_id=' . (int) $_POST['products_id'] . '&' . xtc_get_all_get_params($parameters)));

 

und füge danach ein:

            }

            else{

                // load matrix

                $matrixlist = createMatrixListFromPOST();

                // for each matrix

                foreach($matrixlist->matrices as $product_matrix){

                    // for each entry != 0 add to cart

                    for($i=0;$i <= $product_matrix->horiz_size-1; $i++){

                        for($j=0;$j <= $product_matrix->vert_size-1; $j++){

                            if($product_matrix->matrix[$i][$j]->stock > 0){

                                // assemble attrib_list

                                // this is awfull - xtC just sucks

                                $attrib_list = array();

                                $attrib_list[$product_matrix->horiz_option->optionsID] =

                                    $product_matrix->horiz_option->attribute_list[$i]->valueID;

                                $attrib_list[$product_matrix->vert_option->optionsID] =

                                    $product_matrix->vert_option->attribute_list[$j]->valueID;

                                $_SESSION['cart']->add_cart((int) $_POST['products_id'],

                                    $product_matrix->matrix[$i][$j]->stock,

                                    $attrib_list);

                            }

                        }

                    }

                }

                xtc_redirect(xtc_href_link($goto, 'products_id='.(int) $_POST['products_id'].'&'.xtc_get_all_get_params($parameters)));

            }

---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------

 

 

-includes/functions/sessions.php

---------------------------------------------------------------------------------------------------

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 '".$_SESSION['language_charset']."'");

            $db->Execute("SET CHARACTER_SET_CLIENT=".$_SESSION['language_charset']);

            $db->Execute("SET CHARACTER_SET_RESULTS=".$_SESSION['language_charset']);

        }

---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------

 

 

-includes/header.php

---------------------------------------------------------------------------------------------------

finde folgendes:

 // econda tracking

 if (TRACKING_ECONDA_ACTIVE=='true') {  

 ?>

 

und füge davor ein:

if (strstr($PHP_SELF, FILENAME_PRODUCT_INFO )) {

?>

<script type="text/javascript" src="includes/wz_tooltip.js"></script>

<?php

}

---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------

 

 

-includes/modules/order_details_cart.php

---------------------------------------------------------------------------------------------------

finde folgendes:

require_once (DIR_FS_INC.'xtc_get_attributes_model.inc.php');

 

und füge danach ein:

require_once(DIR_WS_MODULES.'product_matrix_functions.php');

--------------------------------

finde folgendes:

            if (ATTRIBUTE_STOCK_CHECK == 'true' && STOCK_CHECK == 'true') {

 

und ersetze es mit:

            $attribute_stock_check = '';

            if (ATTRIBUTE_STOCK_CHECK == 'true' && STOCK_CHECK == 'true' && !hasProductMatrix(xtc_get_prid($products[$i]['id']))) {

---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------

 

 

-includes/modules/product_info.php

---------------------------------------------------------------------------------------------------

finde folgendes:

 require_once (DIR_FS_INC.'xtc_get_products_mo_images.inc.php');

 require_once (DIR_FS_INC.'xtc_get_vpe_name.inc.php');

 require_once (DIR_FS_INC.'get_cross_sell_name.inc.php');

 

und füge danach ein:

require_once(DIR_WS_MODULES.'product_matrix_functions.php');

--------------------------------

finde folgendes (2*):

                    $info_smarty->assign('ADD_QTY', xtc_draw_input_field('products_qty', '1', 'size="3"').' '.xtc_draw_hidden_field('products_id', $product->data['products_id']));

 

und ersetze es mit:

                    // if has a matrix we dont need a quantity button

                    if(!hasProductMatrix($product->data['products_id'])){

                        $info_smarty->assign('ADD_QTY', xtc_draw_input_field('products_qty', '1', 'size="3"').' '.xtc_draw_hidden_field('products_id', $product->data['products_id']));

                    }

                    else{

                        $info_smarty->assign('ADD_QTY', xtc_draw_hidden_field('products_id', $product->data['products_id']));

                    }

--------------------------------

finde folgendes:

    include (DIR_WS_MODULES.'product_attributes.php');

 

und ersetze es mit:

                if(hasProductMatrix($product->pID))

                        include (DIR_WS_MODULES.'product_matrix.php');

                else    

                // load default xt:C attribute handling

                        include (DIR_WS_MODULES.'product_attributes.php');

---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------

 

 

-lang/german/german.php

---------------------------------------------------------------------------------------------------

finde folgendes:

?>

 

und füge davor ein:

define('MATRIX_OVER_TEXT','&Uuml;berfahren Sie das jeweilige Eingabefeld mit dem Maus Cursor, um den aktuellen Lagerbestand zu erfahren.');

define('MATRIX_STOCK_TEXT','Lagerbestand: ');

---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------

 

 

-templates/xtc4/module/product_info/product_info_v1.html

---------------------------------------------------------------------------------------------------

finde folgendes:

            <br />{if $MODULE_product_options !=''}{$MODULE_product_options}<br />{/if}

 

danach einfügen:

{if $MODULE_product_matrix !=''}{$MODULE_product_matrix}<br>{/if}

---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------

 

 

-templates/xtc4/stylesheet.css

---------------------------------------------------------------------------------------------------

am Ende einfügen:

 /* start product matrix */

 table.product_matrix {

    border:1px solid #666666;

    }

 div.horiz_option {

    border-bottom: 1px solid #666666;

    }

 td.attributeName {

    border-left:1px solid #666666;

    background-color:#CCCCCC;

    }   

 td.attributeName2 {

    border-top:1px solid #666666;

    background-color:#CCCCCC;

    }

 td.stock {

    border-top:1px solid #666666;

    border-left:1px solid #666666;

    }

 /* end product matrix */

 

 

 

 

 

Deine Werbung auf Ecombase ? 50.000 Einblendungen täglich.
Kleiner Preis - große Wirkung - Anfragen - eMail im Impressum !

Quick Links

Andere Empfehlungen

http://www.ecombase.de/Bilder/Designnerd-3D-RSS-preview.jpg
   Gully RSS News : Ecomdev News

   Mein Name gehört mir ! 
   Marketing Zielgruppe 50+
   Gast durch Gottes Hand ?

Copyright (C) 2008 eComBASE Shop Software - Community  - bei Volker Bellendorf - 59077 Hamm - +49-2381-402621
SHOPcommuniy (R) ist eingetragene Wort + Bildmarke
Alle Texte & Bilder sind Eigentum der Betreiber der Webseite eCombase.de
Vervielfältigung - Verwendung auf eigenen Webseiten nicht ohne schriftliche Genehmigung