Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: MODUL: Concardis KK-Modul für modified eCommerce Shopsoftware

    jonnyB

    • Fördermitglied
    • Beiträge: 519
    • Geschlecht:
    Re: MODUL: Concardis KK-Modul für modified eCommerce Shopsoftware
    Antwort #45 am: 20. Dezember 2011, 11:58:35
    Ich hatte Concardis vor einer Weile mal in einem Kundauftrag verbaut.

    War soweit auch alles ok, nur muß man beachten, daß Concardis einem 2 Zugange zur Verfügung stellt. Einen zum Testen und eine zum produktiv Einsatz. (die laufen beide parallel)
    Somit ist dann auch darauf zu achten, daß die richtigen Zugangsdaten zum richtigen Zugang benutzt werden und auch die Zugänge im Admin von Concardis richtig konfiguriert werden.

    Cookie

    • Fördermitglied
    • Beiträge: 274
    Re: MODUL: Concardis KK-Modul für modified eCommerce Shopsoftware
    Antwort #46 am: 20. Dezember 2011, 16:25:52
    Hallo jonnyB,

    welches Modul hattest Du verwendet? Hast Du noch etwas angepasst?

    Danke.
    Christian

    jonnyB

    • Fördermitglied
    • Beiträge: 519
    • Geschlecht:
    Re: MODUL: Concardis KK-Modul für modified eCommerce Shopsoftware
    Antwort #47 am: 20. Dezember 2011, 16:59:47
    Eingebaut wurde die Version 1.3

    Es ist schon 'ne Weile her, deshalb weiß ich jetzt spontan nicht was angepasst wurde, aber es waren nur Kleinigkeiten... nix großes. Das einzige was mich verwirrt hatte, waren die beiden unterschiedlichen Zugänge.

    Cookie

    • Fördermitglied
    • Beiträge: 274
    Re: MODUL: Concardis KK-Modul für modified eCommerce Shopsoftware
    Antwort #48 am: 20. Dezember 2011, 17:52:00
    Hallo,

    ich habe ein Problem mit dem Hash.

    Komischer Weise funktioniert es auf meinem Testsystem aber nicht auf der Produktion. Ich habe schon ein DIFF von allen Concardis Files gemacht. Es gibt aber keinen Unterschied.

    Christian

    Cookie

    • Fördermitglied
    • Beiträge: 274
    Re: MODUL: Concardis KK-Modul für modified eCommerce Shopsoftware
    Antwort #49 am: 20. Dezember 2011, 21:44:43
    Hallo,

    ich habe den Fehler gefunden:

    Das Concardis Modul baut in der "checkout_payment.php" die Links für einen "Redirect" komisch zusammen:

    Code: PHP  [Auswählen]
    $topLocationURL = xtc_href_link($page = 'feedback_payengine.php?'.http_build_query($_REQUEST), $parameters = '', $connection = ($_SERVER['https']?'SSL':'NONSSL'), $add_session_id = true, $search_engine_safe = false);

    Damit wird trotz Parameter die Session ID mit ? hinten angehängt. Damit stimmen die Werte nicht.

    Änderung in:

    Code: PHP  [Auswählen]
    $topLocationURL = xtc_href_link($page = 'feedback_payengine.php', $parameters = http_build_query($_REQUEST), $connection = ($_SERVER['https']?'SSL':'NONSSL'), $add_session_id = true, $search_engine_safe = false);

    Des weiteren gibt es ein Problem mit "xtc_href_link.php"

    Die URLs werden W3C konform kodiert:

    Code: PHP  [Auswählen]
    else  $link = str_replace('&', '&', $link); // web28 - 2010-09-02 -- making link W3C-Conform

    Da Concardis aber Javascript für den "Redirect" aus dem iFrame verwendet, ist der Aufruf am Webserver je nach Browser mit "&". Damit ist der Zugriff auf die Variablen nicht mehr möglich und die Hash Berechnung geht schief. Ich habe die Ersetzung entfernt und alles läuft.

    Braucht man die W3C Konformität überhaupt? Ich habe mir die "access.logs" mal angeschaut. Das gleiche Problem mit dem Aufruf hat der Google Bot teilweise.

    Grüße
    Christian

    foo

    • Neu im Forum
    • Beiträge: 31
    TOP!

    nachdem ich die Änderungen von Cookie gemacht habe läuft es auf meiner 1.06er ohne Probleme.

    Danke

    xseries

    • Neu im Forum
    • Beiträge: 2
    Hallo,

    ich habe auch das Problem mit dem "unknown order/1/s/"- Fehler.

    Habe schon versucht den Fix von Cookie anzuwenden, nur finde ich die besagten Zeilen nciht in meiner checkout_payment.php. Habe schon jede Datei durchwühlt die auch nur so ähnlich klingt.

    Habe aktiv eine 1.05 Version in Verwendung, habe es testweise auch mal mit einer 1.06er probiert. Doch ich finde die besagten Zeilen in beiden Versionen nicht, ncihtmal ansatzweise.

    Auch wenn ich alle Dateien des Installationsverzeichnisses nach Textstücken aus dem Fix durchsuche kommt dabei nichts heraus.

    Hätte jemand eine Idee?

    Vielen Dank schomal

    xseries

    • Neu im Forum
    • Beiträge: 2
    Komme immer noch nciht weiter. SHA-Werte sind definitv identisch.
    So sieht meine  checkout_payment.php aus.

    Code: PHP  [Auswählen]
    <?php

    /* -----------------------------------------------------------------------------------------
       $Id: checkout_payment.php 1325 2005-10-30 10:23:32Z mz $  

       XT-Commerce - community made shopping
       http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte <a href="index.php?topic=3013.0">Forenregeln</a> beachten! ))

       Copyright (c) 2003 XT-Commerce
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(checkout_payment.php,v 1.110 2003/03/14); www.oscommerce.com
       (c) 2003      nextcommerce (checkout_payment.php,v 1.20 2003/08/17); www.nextcommerce.org

       Released under the GNU General Public License
       -----------------------------------------------------------------------------------------
       Third Party contributions:
       agree_conditions_1.01                Autor:  Thomas Plänkers (webmaster@oscommerce.at)

       Customers Status v3.x  (c) 2002-2003 Copyright Elari elari@free.fr | www.unlockgsm.com/dload-osc/ | CVS : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/elari/?sortby=date#dirlist

       Credit Class/Gift Vouchers/Discount Coupons (Version 5.10)
       http://www.oscommerce.com/community/contributions,282
       Copyright (c) Strider | Strider@oscworks.com
       Copyright (c  Nick Stanko of UkiDev.com, nick@ukidev.com
       Copyright (c) Andre ambidex@gmx.net
       Copyright (c) 2001,2002 Ian C Wilson http://www.phesis.org

       Released under the GNU General Public License
       ---------------------------------------------------------------------------------------*/


    include ('includes/application_top.php');
    // create smarty elements
    $smarty = new Smarty;
    // include boxes
    require (DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php');
    // include needed functions
    require_once (DIR_FS_INC . 'xtc_address_label.inc.php');
    require_once (DIR_FS_INC . 'xtc_get_address_format_id.inc.php');
    require_once (DIR_FS_INC . 'xtc_check_stock.inc.php');
    unset ($_SESSION['tmp_oID']);
    //BOF - Dokuman - 2009-10-02 - added moneybookers payment module version 2.4
    unset ($_SESSION['transaction_id']);
    //EOF - Dokuman - 2009-10-02 - added moneybookers payment module version 2.4
    // if the customer is not logged on, redirect them to the login page
    if (!isset ($_SESSION['customer_id'])) {
            if (ACCOUNT_OPTIONS == 'guest') {
                    xtc_redirect(xtc_href_link(FILENAME_CREATE_GUEST_ACCOUNT, '', 'SSL'));
            } else {
                    xtc_redirect(xtc_href_link(FILENAME_LOGIN, '', 'SSL'));
            }
    }

    // if there is nothing in the customers cart, redirect them to the shopping cart page
    if ($_SESSION['cart']->count_contents() < 1)
            xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART));

    // if no shipping method has been selected, redirect the customer to the shipping method selection page
    if (!isset ($_SESSION['shipping']))
            xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));

    // avoid hack attempts during the checkout procedure by checking the internal cartID
    if (isset ($_SESSION['cart']->cartID) && isset ($_SESSION['cartID'])) {
            if ($_SESSION['cart']->cartID != $_SESSION['cartID'])
                    xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    }

    if (isset ($_SESSION['credit_covers']))
            unset ($_SESSION['credit_covers']); //ICW ADDED FOR CREDIT CLASS SYSTEM
    // Stock Check
    if ((STOCK_CHECK == 'true') && (STOCK_ALLOW_CHECKOUT != 'true')) {
            $products = $_SESSION['cart']->get_products();
            $any_out_of_stock = 0;
            for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
                    if (xtc_check_stock($products[$i]['id'], $products[$i]['quantity']))
                            $any_out_of_stock = 1;
            }
            if ($any_out_of_stock == 1)
                    xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART));

    }

    // if no billing destination address was selected, use the customers own address as default
    if (!isset ($_SESSION['billto'])) {
            $_SESSION['billto'] = $_SESSION['customer_default_address_id'];
    } else {
            // verify the selected billing address
            $check_address_query = xtc_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int) $_SESSION['customer_id'] . "' and address_book_id = '" . (int) $_SESSION['billto'] . "'");
            $check_address = xtc_db_fetch_array($check_address_query);

            if ($check_address['total'] != '1') {
                    $_SESSION['billto'] = $_SESSION['customer_default_address_id'];
                    if (isset ($_SESSION['payment']))
                            unset ($_SESSION['payment']);
            }
    }

    if (!isset ($_SESSION['sendto']) || $_SESSION['sendto'] == "")
            $_SESSION['sendto'] = $_SESSION['billto'];

    require (DIR_WS_CLASSES . 'order.php');
    $order = new order();

    require (DIR_WS_CLASSES . 'order_total.php'); // GV Code ICW ADDED FOR CREDIT CLASS SYSTEM
    $order_total_modules = new order_total(); // GV Code ICW ADDED FOR CREDIT CLASS SYSTEM

    $total_weight = $_SESSION['cart']->show_weight();

    //  $total_count = $_SESSION['cart']->count_contents();
    $total_count = $_SESSION['cart']->count_contents_virtual(); // GV Code ICW ADDED FOR CREDIT CLASS SYSTEM

    if ($order->billing['country']['iso_code_2'] != '' && $order->delivery['country']['iso_code_2'] == '') {
    $_SESSION['delivery_zone'] = $order->billing['country']['iso_code_2'];
    } else {
    $_SESSION['delivery_zone'] = $order->delivery['country']['iso_code_2'];
    }

    // load all enabled payment modules
    require (DIR_WS_CLASSES . 'payment.php');
    $payment_modules = new payment;

    $order_total_modules->process();
    // redirect if Coupon matches ammount

    $breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT_PAYMENT, xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    $breadcrumb->add(NAVBAR_TITLE_2_CHECKOUT_PAYMENT, xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

    $smarty->assign('FORM_ACTION', xtc_draw_form('checkout_payment', xtc_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', 'onSubmit="return check_form();"'));
    $smarty->assign('ADDRESS_LABEL', xtc_address_label($_SESSION['customer_id'], $_SESSION['billto'], true, ' ', '<br />'));
    $smarty->assign('BUTTON_ADDRESS', '<a href="' . xtc_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . xtc_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>');
    $smarty->assign('BUTTON_CONTINUE', xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
    $smarty->assign('FORM_END', '</form>');

    require (DIR_WS_INCLUDES . 'header.php');
    $module_smarty = new Smarty;
    if ($order->info['total'] > 0) {
            if (isset ($_GET['payment_error']) && is_object(${ $_GET['payment_error'] }) && ($error = ${$_GET['payment_error']}->get_error())) {

                    $smarty->assign('error', htmlspecialchars($error['error']));

            }

            $selection = $payment_modules->selection();

            $radio_buttons = 0;
            for ($i = 0, $n = sizeof($selection); $i < $n; $i++) {

                    $selection[$i]['radio_buttons'] = $radio_buttons;
                    if (($selection[$i]['id'] == $payment) || ($n == 1)) {
                            $selection[$i]['checked'] = 1;
                    }

                    if (sizeof($selection) > 1) {
                            $selection[$i]['selection'] = xtc_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment']));
                    } else {
                            $selection[$i]['selection'] = xtc_draw_hidden_field('payment', $selection[$i]['id']);
                    }

                    if (isset ($selection[$i]['error'])) {

                    } else {

                            $radio_buttons++;
                    }
            }

            $module_smarty->assign('module_content', $selection);

    } else {
            $smarty->assign('GV_COVER', 'true');
    }

    if (ACTIVATE_GIFT_SYSTEM == 'true') {
            $smarty->assign('module_gift', $order_total_modules->credit_selection());
    }

    $module_smarty->caching = 0;
    $payment_block = $module_smarty->fetch(CURRENT_TEMPLATE . '/module/checkout_payment_block.html');

    $smarty->assign('COMMENTS', xtc_draw_textarea_field('comments', 'soft', '60', '5', $_SESSION['comments']) . xtc_draw_hidden_field('comments_added', 'YES'));

    //check if display conditions on checkout page is true
    if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {

            if (GROUP_CHECK == 'true') {
                    $group_check = "and group_ids LIKE '%c_" . $_SESSION['customers_status']['customers_status_id'] . "_group%'";
            }

            $shop_content_query = xtc_db_query("SELECT content_title,
                                                       content_heading,
                                                       content_text,
                                                       content_file
                                                 FROM "
    . TABLE_CONTENT_MANAGER . "
                                                 WHERE content_group='3' "
    . $group_check . "
                                                 AND languages_id='"
    . $_SESSION['languages_id'] . "'");
            $shop_content_data = xtc_db_fetch_array($shop_content_query);

            if ($shop_content_data['content_file'] != '') {
                    /* BOF - Hetfield - 2010-01-21 - Bugfix including contentfiles at SSL-Proxy */
                    //$conditions = '<iframe SRC="' . DIR_WS_CATALOG . 'media/content/' . $shop_content_data['content_file'] . '" width="100%" height="300">';
                    $conditions = '<div class="agbframe">' . file_get_contents(DIR_FS_DOCUMENT_ROOT . 'media/content/' . $shop_content_data['content_file']) . '</div>';
                    /* EOF - Hetfield - 2010-01-21 - Bugfix including contentfiles at SSL-Proxy */
            } else {
                    /* BOF - Hetfield - 2010-01-20 - Remove agb-textarea from checkout_payment */
                    //$conditions = '<textarea name="blabla" cols="60" rows="10" readonly="readonly">' . strip_tags(str_replace('<br />', "\n", $shop_content_data['content_text'])) . '</textarea>';
                    $conditions = '<div class="agbframe">' . $shop_content_data['content_text'] . '</div>';
                    /* EOF - Hetfield - 2010-01-20 - Remove agb-textarea from checkout_payment */
            }

            $smarty->assign('AGB', $conditions);
      //BOF - Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink
            //$smarty->assign('AGB_LINK', $main->getContentLink(3, MORE_INFO));
            $smarty->assign('AGB_LINK', $main->getContentLink(3, MORE_INFO,'SSL'));
      //EOF - Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink
           
            // BOF - Tomcraft - 2009-10-01 - AGB checkbox re-implemented
            if (isset ($_GET['step']) && $_GET['step'] == 'step2') {
                    $smarty->assign('AGB_checkbox', '<input type="checkbox" value="conditions" name="conditions" checked />');
            } else {
                    $smarty->assign('AGB_checkbox', '<input type="checkbox" value="conditions" name="conditions" />');
            }
            // EOF - Tomcraft - 2009-10-01 - AGB checkbox re-implemented

    }

    $smarty->assign('language', $_SESSION['language']);
    $smarty->assign('PAYMENT_BLOCK', $payment_block);
    $smarty->caching = 0;
    $main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/checkout_payment.html');

    $smarty->assign('language', $_SESSION['language']);
    $smarty->assign('main_content', $main_content);
    $smarty->caching = 0;
    if (!defined(RM))
            $smarty->load_filter('output', 'note');
    $smarty->display(CURRENT_TEMPLATE . '/index.html');
    include ('includes/application_bottom.php');
    ?>
    Werbung / Banner buchen