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: Warenkorb vorbelegen

    eawebsolutions

    • Neu im Forum
    • Beiträge: 23
    Warenkorb vorbelegen
    am: 11. März 2010, 07:32:17
    Hallo

    Ich würde gerne für unsere Kunden den Warenkorb vorbelegen damit Sie nur noch auf "Bestellen" klicken brauchen. Ist das irgendwie möglich? Wenn ja würde mich über eine schnelle Nachricht freuen.
    (keine Gratisartikel)

    MFG



    Linkback: https://www.modified-shop.org/forum/index.php?topic=4481.0
    Managed Server

    eawebsolutions

    • Neu im Forum
    • Beiträge: 23
    Warenkorb vorbelegen
    Antwort #1 am: 11. März 2010, 08:57:38
    bzw. eine Möglichkeit den Warenkorb zu überspringen. Ich habe den easycheckout eingebaut und der Kunde soll nun vom klick auf den Artikel direkt zur Kasse gelangen.

    eawebsolutions

    • Neu im Forum
    • Beiträge: 23
    Warenkorb vorbelegen
    Antwort #2 am: 11. März 2010, 10:12:33
    Die sinnvollste Lösung wäre sicher von cart_actions.ph direkt zu create_guest_account.php weiterzuleiten.

    Nur wie stelle ich es an das er mir auch das Produkt mit übergibt?

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Warenkorb vorbelegen
    Antwort #3 am: 11. März 2010, 10:17:30
    Schau mal hier: Zusatzartikel / Geschenk im Warenkorb

    Das ist nicht zu verwechseln mit dem Modul Gratisartikel im Warenkorb vorbelegen.

    Grüße

    Torsten

    eawebsolutions

    • Neu im Forum
    • Beiträge: 23
    Warenkorb vorbelegen
    Antwort #4 am: 11. März 2010, 10:55:11
    ist aber auch wieder so ein riesen umbau und es würde halt nur für einen artikel funktionieren.

    Wie oben erwähnt tendiere ich zu einer Lösung bei welcher der Kunde auf Jetzt kaufen klickt, und sofort zum checkout kommt. Also automatische Weiterleitung zu create_guest_account und Artikelübernahme durch die cart_actions.

    eawebsolutions

    • Neu im Forum
    • Beiträge: 23
    Warenkorb vorbelegen
    Antwort #5 am: 11. März 2010, 12:01:01
    Antwort gefunden:

    cart_actions.php

    von

    Code: PHP  [Auswählen]
    <?php

    /* -----------------------------------------------------------------------------------------
       $Id: cart_actions.php 168 2007-02-06 14:11:42Z mzanier $

       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(application_top.php,v 1.273 2003/05/19); www.oscommerce.com
       (c) 2003         nextcommerce (application_top.php,v 1.54 2003/08/25); www.nextcommerce.org

       Released under the GNU General Public License
       -----------------------------------------------------------------------------------------
       Third Party contribution:
       Add A Quickie v1.0 Autor  Harald Ponce de Leon

       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
       ---------------------------------------------------------------------------------------*/


    // Shopping cart actions
    if (isset ($_GET['action'])) {
            // redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled
            if ($session_started == false) {
                    xtc_redirect(xtc_href_link(FILENAME_COOKIE_USAGE));
            }

            if (DISPLAY_CART == 'true') {
                    $goto = FILENAME_SHOPPING_CART;
                    $parameters = array (
                            'action',
                            'cPath',
                            'products_id',
                            'pid'
                    );
            } else {
                    $goto = basename($PHP_SELF);
                    if ($_GET['action'] == 'buy_now') {
                            $parameters = array (
                                    'action',
                                    'pid',
                                    'products_id',
                                    'BUYproducts_id'
                            );
                    } else {
                            $parameters = array (
                                    'action',
                                    'pid',
                                    'BUYproducts_id',
                                    'info'
                            );
                    }
            }

            switch ($_GET['action']) {

        //BOF - Dokuman - 15.08.2009 - show 'delete button' in shopping cart
                    case 'remove_product':
                            $prd_id = preg_replace('/[^0-9\{\}]/', '', $_GET['prd_id']);
                            $_SESSION['cart'] -> remove($prd_id);
                            xtc_redirect(xtc_href_link($goto, xtc_get_all_get_params($parameters), 'SSL'));
                            break;
        //EOF - Dokuman - 15.08.2009 - show 'delete button' in shopping cart

                    // customer wants to update the product quantity in their shopping cart
                    case 'update_product' :

                            if (is_object($econda))
                                    $econda->_emptyCart();
                    //BOF - Hetfield - 2009.08.18 - Bugfix for numeric quantitys
                            for ($i = 0, $n = sizeof($_POST['products_id']); $i <$n; $i++) {

                                            $cart_quantity = xtc_remove_non_numeric($_POST['cart_quantity'][$i]);

                                            if (in_array($_POST['products_id'][$i], (is_array($_POST['cart_delete']) ? $_POST['cart_delete'] : array ()))) {
                                            $_SESSION['cart']->remove($_POST['products_id'][$i]);

                                            if (is_object($econda))
                                                    $econda->_delArticle($_POST['products_id'][$i], $_POST['cart_quantity'][$i], $_POST['old_qty'][$i]);

                                    } else {
                                            if ($cart_quantity> MAX_PRODUCTS_QTY)
                                                    $cart_quantity = MAX_PRODUCTS_QTY;
                                            $attributes = ($_POST['id'][$_POST['products_id'][$i]]) ? $_POST['id'][$_POST['products_id'][$i]] : '';

                                            if (is_object($econda)) {
                                                    $old_quantity = $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'][$i], $_POST['id'][$i]));
                                                    $econda->_updateProduct($_POST['products_id'][$i], $cart_quantity, $old_quantity);
                                            }

                                            $_SESSION['cart']->add_cart($_POST['products_id'][$i], $cart_quantity, $attributes, false);
                                            unset($cart_quantity);
                                    }
                            }
                            xtc_redirect(xtc_href_link($goto, xtc_get_all_get_params($parameters), 'SSL'));
                            break;
                            // customer adds a product from the products page
                    case 'add_product' :
                            if (isset ($_POST['products_id']) && is_numeric($_POST['products_id'])) {

                                    $cart_quantity = xtc_remove_non_numeric($_POST['products_qty']);

                                    if ($cart_quantity> MAX_PRODUCTS_QTY)
                                            $cart_quantity = MAX_PRODUCTS_QTY;

                                    if (is_object($econda)) {
                                            $econda->_emptyCart();
                                            $old_quantity = $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'], $_POST['id']));
                                            $econda->_addProduct($_POST['products_id'], $cart_quantity, $old_quantity);
                                    }

                                    $_SESSION['cart']->add_cart((int) $_POST['products_id'], $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'], $_POST['id'])) + $cart_quantity, $_POST['id']);
                            }
                            xtc_redirect(xtc_href_link($goto, 'products_id=' . (int) $_POST['products_id'] . '&' . xtc_get_all_get_params($parameters)));
                            break;
                    //EOF - Hetfield - 2009.08.18 - Bugfix for numeric quantitys
                    case 'check_gift' :
                            require_once (DIR_FS_INC . 'xtc_collect_posts.inc.php');
                            xtc_collect_posts();
                            break;

                            // customer wants to add a quickie to the cart (called from a box)
                    case 'add_a_quickie' :
                            $quicky = addslashes($_POST['quickie']);
                            if (GROUP_CHECK == 'true') {
                                    $group_check = "and group_permission_" . $_SESSION['customers_status']['customers_status_id'] . "=1 ";
                            }

                            $quickie_query = xtc_db_query("select
                                                                                            products_fsk18,
                                                                                            products_id from "
    . TABLE_PRODUCTS . "
                                                                                            where products_model = '"
    . $quicky . "' " . "AND products_status = '1' " . $group_check);

                            if (!xtc_db_num_rows($quickie_query)) {
                                    if (GROUP_CHECK == 'true') {
                                            $group_check = "and group_permission_" . $_SESSION['customers_status']['customers_status_id'] . "=1 ";
                                    }
                                    $quickie_query = xtc_db_query("select
                                                                                                                     products_fsk18,
                                                                                                                     products_id from "
    . TABLE_PRODUCTS . "
                                                                                                                     where products_model LIKE '%"
    . $quicky . "%' " . "AND products_status = '1' " . $group_check);
                            }
                            if (xtc_db_num_rows($quickie_query) != 1) {
                                    xtc_redirect(xtc_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keywords=' . $quicky, 'NONSSL'));
                            }
                            $quickie = xtc_db_fetch_array($quickie_query);
                            if (xtc_has_product_attributes($quickie['products_id'])) {
                                    xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $quickie['products_id'], 'NONSSL'));
                            } else {
                                    if ($quickie['products_fsk18'] == '1' && $_SESSION['customers_status']['customers_fsk18'] == '1') {
                                            xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $quickie['products_id'], 'NONSSL'));
                                    }
                                    if ($_SESSION['customers_status']['customers_fsk18_display'] == '0' && $quickie['products_fsk18'] == '1') {
                                            xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $quickie['products_id'], 'NONSSL'));
                                    }
                                    if ($_POST['quickie'] != '') {
                                            $act_qty = $_SESSION['cart']->get_quantity(xtc_get_uprid($quickie['products_id'], 1));
                                            if ($act_qty> MAX_PRODUCTS_QTY)
                                                    $act_qty = MAX_PRODUCTS_QTY - 1;
                                            $_SESSION['cart']->add_cart($quickie['products_id'], $act_qty +1, 1);
                                            xtc_redirect(xtc_href_link($goto, xtc_get_all_get_params(array (
                                                    'action'
                                            )), 'NONSSL'));
                                    } else {
                                            xtc_redirect(xtc_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keywords=' . $quicky, 'NONSSL'));
                                    }
                            }
                            break;

                            // performed by the 'buy now' button in product listings and review page
                    case 'buy_now' :
                            if (isset ($_GET['BUYproducts_id'])) {
                                    // check permission to view product

                                    $permission_query = xtc_db_query("SELECT group_permission_" . $_SESSION['customers_status']['customers_status_id'] . " as customer_group, products_fsk18 from " . TABLE_PRODUCTS . " where products_id='" . (int) $_GET['BUYproducts_id'] . "'");
                                    $permission = xtc_db_fetch_array($permission_query);

                                    // check for FSK18
                                    if ($permission['products_fsk18'] == '1' && $_SESSION['customers_status']['customers_fsk18'] == '1') {
                                            xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int) $_GET['BUYproducts_id'], 'NONSSL'));
                                    }
                                    if ($_SESSION['customers_status']['customers_fsk18_display'] == '0' && $permission['products_fsk18'] == '1') {
                                            xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int) $_GET['BUYproducts_id'], 'NONSSL'));
                                    }

                                    if (GROUP_CHECK == 'true') {

                                            if ($permission['customer_group'] != '1') {
                                                    xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int) $_GET['BUYproducts_id']));
                                            }
                                    }
                                    if (xtc_has_product_attributes($_GET['BUYproducts_id'])) {
                                            xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int) $_GET['BUYproducts_id']));
                                    } else {
                                            if (isset ($_SESSION['cart'])) {

                                                    if (is_object($econda)) {
                                                            $econda->_emptyCart();
                                                            $old_quantity = $_SESSION['cart']->get_quantity((int) $_GET['BUYproducts_id']);
                                                            $econda->_addProduct($_GET['BUYproducts_id'], $old_quantity +1, $old_quantity);
                                                    }

                                                    $_SESSION['cart']->add_cart((int) $_GET['BUYproducts_id'], $_SESSION['cart']->get_quantity((int) $_GET['BUYproducts_id']) + 1);
                                            } else {
                                                    xtc_redirect(xtc_href_link(FILENAME_DEFAULT));
                                            }
                                    }
                            }
                            xtc_redirect(xtc_href_link($goto, xtc_get_all_get_params(array (
                                    'action',
                                    'BUYproducts_id'
                            ))));
                            break;
                    case 'cust_order' :
                            if (isset ($_SESSION['customer_id']) && isset ($_GET['pid'])) {
                                    if (xtc_has_product_attributes((int) $_GET['pid'])) {
                                            xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int) $_GET['pid']));
                                    } else {
                                            $_SESSION['cart']->add_cart((int) $_GET['pid'], $_SESSION['cart']->get_quantity((int) $_GET['pid']) + 1);
                                    }
                            }
                            xtc_redirect(xtc_href_link($goto, xtc_get_all_get_params($parameters), 'SSL'));
                            break;
    // BOF - Tomcraft - 2009-10-03 - Paypal Express Modul
                    case 'paypal_express_checkout' :
                            $o_paypal->paypal_express_auth_call();
                            xtc_redirect($o_paypal->payPalURL);
                            break;
    // EOF - Tomcraft - 2009-10-03 - Paypal Express Modul
            }
    }
    ?>
     
    in folgendes ändern

    Code: PHP  [Auswählen]
    <?php

    /* -----------------------------------------------------------------------------------------
       $Id: cart_actions.php 168 2007-02-06 14:11:42Z mzanier $

       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(application_top.php,v 1.273 2003/05/19); www.oscommerce.com
       (c) 2003         nextcommerce (application_top.php,v 1.54 2003/08/25); www.nextcommerce.org

       Released under the GNU General Public License
       -----------------------------------------------------------------------------------------
       Third Party contribution:
       Add A Quickie v1.0 Autor  Harald Ponce de Leon

       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
       ---------------------------------------------------------------------------------------*/


    // Shopping cart actions
    if (isset ($_GET['action'])) {
            // redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled
            if ($session_started == false) {
                    xtc_redirect(xtc_href_link(FILENAME_COOKIE_USAGE));
            }

            if (DISPLAY_CART == 'true') {
                    $goto = FILENAME_SHOPPING_CART;
                    $parameters = array (
                            'action',
                            'cPath',
                            'products_id',
                            'pid'
                    );
            } else {
                    $goto = basename($PHP_SELF);
                    if ($_GET['action'] == 'buy_now') {
                            $parameters = array (
                                    'action',
                                    'pid',
                                    'products_id',
                                    'BUYproducts_id'
                            );
                    } else {
                            $parameters = array (
                                    'action',
                                    'pid',
                                    'BUYproducts_id',
                                    'info'
                            );
                    }
            }

            switch ($_GET['action']) {

        //BOF - Dokuman - 15.08.2009 - show 'delete button' in shopping cart
                    case 'remove_product':
                            $prd_id = preg_replace('/[^0-9\{\}]/', '', $_GET['prd_id']);
                            $_SESSION['cart'] -> remove($prd_id);
                            xtc_redirect(xtc_href_link($goto, xtc_get_all_get_params($parameters), 'SSL'));
                            break;
        //EOF - Dokuman - 15.08.2009 - show 'delete button' in shopping cart

                    // customer wants to update the product quantity in their shopping cart
                    case 'update_product' :

                            if (is_object($econda))
                                    $econda->_emptyCart();
                    //BOF - Hetfield - 2009.08.18 - Bugfix for numeric quantitys
                            for ($i = 0, $n = sizeof($_POST['products_id']); $i <$n; $i++) {

                                            $cart_quantity = xtc_remove_non_numeric($_POST['cart_quantity'][$i]);

                                            if (in_array($_POST['products_id'][$i], (is_array($_POST['cart_delete']) ? $_POST['cart_delete'] : array ()))) {
                                            $_SESSION['cart']->remove($_POST['products_id'][$i]);

                                            if (is_object($econda))
                                                    $econda->_delArticle($_POST['products_id'][$i], $_POST['cart_quantity'][$i], $_POST['old_qty'][$i]);

                                    } else {
                                            if ($cart_quantity> MAX_PRODUCTS_QTY)
                                                    $cart_quantity = MAX_PRODUCTS_QTY;
                                            $attributes = ($_POST['id'][$_POST['products_id'][$i]]) ? $_POST['id'][$_POST['products_id'][$i]] : '';

                                            if (is_object($econda)) {
                                                    $old_quantity = $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'][$i], $_POST['id'][$i]));
                                                    $econda->_updateProduct($_POST['products_id'][$i], $cart_quantity, $old_quantity);
                                            }

                                            $_SESSION['cart']->add_cart($_POST['products_id'][$i], $cart_quantity, $attributes, false);
                                            unset($cart_quantity);
                                    }
                            }
                            xtc_redirect(xtc_href_link($goto, xtc_get_all_get_params($parameters), 'SSL'));
                            break;
                            // customer adds a product from the products page
                    case 'add_product' :
                            if (isset ($_POST['products_id']) && is_numeric($_POST['products_id'])) {

                                    $cart_quantity = xtc_remove_non_numeric($_POST['products_qty']);

                                    if ($cart_quantity> MAX_PRODUCTS_QTY)
                                            $cart_quantity = MAX_PRODUCTS_QTY;

                                    if (is_object($econda)) {
                                            $econda->_emptyCart();
                                            $old_quantity = $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'], $_POST['id']));
                                            $econda->_addProduct($_POST['products_id'], $cart_quantity, $old_quantity);
                                    }

                                    $_SESSION['cart']->add_cart((int) $_POST['products_id'], $_SESSION['cart']->get_quantity(xtc_get_uprid($_POST['products_id'], $_POST['id'])) + $cart_quantity, $_POST['id']);
                            }
                            xtc_redirect(xtc_href_link($goto, 'products_id=' . (int) $_POST['products_id'] . '&' . xtc_get_all_get_params($parameters)));
                            break;
                    //EOF - Hetfield - 2009.08.18 - Bugfix for numeric quantitys
                    case 'check_gift' :
                            require_once (DIR_FS_INC . 'xtc_collect_posts.inc.php');
                            xtc_collect_posts();
                            break;

                            // customer wants to add a quickie to the cart (called from a box)
                    case 'add_a_quickie' :
                            $quicky = addslashes($_POST['quickie']);
                            if (GROUP_CHECK == 'true') {
                                    $group_check = "and group_permission_" . $_SESSION['customers_status']['customers_status_id'] . "=1 ";
                            }

                            $quickie_query = xtc_db_query("select
                                                                                            products_fsk18,
                                                                                            products_id from "
    . TABLE_PRODUCTS . "
                                                                                            where products_model = '"
    . $quicky . "' " . "AND products_status = '1' " . $group_check);

                            if (!xtc_db_num_rows($quickie_query)) {
                                    if (GROUP_CHECK == 'true') {
                                            $group_check = "and group_permission_" . $_SESSION['customers_status']['customers_status_id'] . "=1 ";
                                    }
                                    $quickie_query = xtc_db_query("select
                                                                                                                     products_fsk18,
                                                                                                                     products_id from "
    . TABLE_PRODUCTS . "
                                                                                                                     where products_model LIKE '%"
    . $quicky . "%' " . "AND products_status = '1' " . $group_check);
                            }
                            if (xtc_db_num_rows($quickie_query) != 1) {
                                    xtc_redirect(xtc_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keywords=' . $quicky, 'NONSSL'));
                            }
                            $quickie = xtc_db_fetch_array($quickie_query);
                            if (xtc_has_product_attributes($quickie['products_id'])) {
                                    xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $quickie['products_id'], 'NONSSL'));
                            } else {
                                    if ($quickie['products_fsk18'] == '1' && $_SESSION['customers_status']['customers_fsk18'] == '1') {
                                            xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $quickie['products_id'], 'NONSSL'));
                                    }
                                    if ($_SESSION['customers_status']['customers_fsk18_display'] == '0' && $quickie['products_fsk18'] == '1') {
                                            xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $quickie['products_id'], 'NONSSL'));
                                    }
                                    if ($_POST['quickie'] != '') {
                                            $act_qty = $_SESSION['cart']->get_quantity(xtc_get_uprid($quickie['products_id'], 1));
                                            if ($act_qty> MAX_PRODUCTS_QTY)
                                                    $act_qty = MAX_PRODUCTS_QTY - 1;
                                            $_SESSION['cart']->add_cart($quickie['products_id'], $act_qty +1, 1);
                                            xtc_redirect(xtc_href_link($goto, xtc_get_all_get_params(array (
                                                    'action'
                                            )), 'NONSSL'));
                                    } else {
                                            xtc_redirect(xtc_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'keywords=' . $quicky, 'NONSSL'));
                                    }
                            }
                            break;

                            // performed by the 'buy now' button in product listings and review page
                    case 'buy_now' :
                            if (isset ($_GET['BUYproducts_id'])) {
                                    // check permission to view product

                                    $permission_query = xtc_db_query("SELECT group_permission_" . $_SESSION['customers_status']['customers_status_id'] . " as customer_group, products_fsk18 from " . TABLE_PRODUCTS . " where products_id='" . (int) $_GET['BUYproducts_id'] . "'");
                                    $permission = xtc_db_fetch_array($permission_query);

                                    // check for FSK18
                                    if ($permission['products_fsk18'] == '1' && $_SESSION['customers_status']['customers_fsk18'] == '1') {
                                            xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int) $_GET['BUYproducts_id'], 'NONSSL'));
                                    }
                                    if ($_SESSION['customers_status']['customers_fsk18_display'] == '0' && $permission['products_fsk18'] == '1') {
                                            xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int) $_GET['BUYproducts_id'], 'NONSSL'));
                                    }

                                    if (GROUP_CHECK == 'true') {

                                            if ($permission['customer_group'] != '1') {
                                                    xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int) $_GET['BUYproducts_id']));
                                            }
                                    }
                                    if (xtc_has_product_attributes($_GET['BUYproducts_id'])) {
                                            xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int) $_GET['BUYproducts_id']));
                                    } else {
                                            if (isset ($_SESSION['cart'])) {

                                                    if (is_object($econda)) {
                                                            $econda->_emptyCart();
                                                            $old_quantity = $_SESSION['cart']->get_quantity((int) $_GET['BUYproducts_id']);
                                                            $econda->_addProduct($_GET['BUYproducts_id'], $old_quantity +1, $old_quantity);
                                                    }

                                                    $_SESSION['cart']->add_cart((int) $_GET['BUYproducts_id'], $_SESSION['cart']->get_quantity((int) $_GET['BUYproducts_id']) + 1);
                                            } else {
                                                    xtc_redirect(xtc_href_link(FILENAME_DEFAULT));
                                            }
                                    }
                            }
                            // ea-websolutions Sprung zum Checkout
                            xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_SHIPPING, xtc_get_all_get_params(array (
                                    'action',
                                    'BUYproducts_id'
                            ))));
                            break;
                    case 'cust_order' :
                            if (isset ($_SESSION['customer_id']) && isset ($_GET['pid'])) {
                                    if (xtc_has_product_attributes((int) $_GET['pid'])) {
                                            xtc_redirect(xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int) $_GET['pid']));
                                    } else {
                                            $_SESSION['cart']->add_cart((int) $_GET['pid'], $_SESSION['cart']->get_quantity((int) $_GET['pid']) + 1);
                                    }
                            }
                            xtc_redirect(xtc_href_link($goto, xtc_get_all_get_params($parameters), 'SSL'));
                            break;
    // BOF - Tomcraft - 2009-10-03 - Paypal Express Modul
                    case 'paypal_express_checkout' :
                            $o_paypal->paypal_express_auth_call();
                            xtc_redirect($o_paypal->payPalURL);
                            break;
    // EOF - Tomcraft - 2009-10-03 - Paypal Express Modul
            }
    }
    ?>
     

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Warenkorb vorbelegen
    Antwort #6 am: 11. März 2010, 13:36:54
    Danke für den Hinweis, ich habe den Code mal leserlich gemacht.

    Hier die Kurzfassung:

    Suche in /includes/cart_actions.php:

    Code: PHP  [Auswählen]
                            xtc_redirect(xtc_href_link($goto, xtc_get_all_get_params(array (
     
    Und ersetze mit:

    Code: PHP  [Auswählen]
                            xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_SHIPPING, xtc_get_all_get_params(array (
     
    Grüße

    Torsten

    eawebsolutions

    • Neu im Forum
    • Beiträge: 23
    Warenkorb vorbelegen
    Antwort #7 am: 11. März 2010, 14:06:42
    Genau :)

    nur das strong kann dann noch weg.

    So und jetzt muss ich von da aus (vorher noch schnell account anlegen über create_guest_account) direkt zum checkout_confirmation wo dann heidelpay(bereits installiert und läuft) wartet.

    Artikel und Accountinfos müssen übergeben werden. Checkout regelt dann Heidelpay.

    Versandart etc... brauche ich alles nicht.
    Versand ist eh kostenlos und Bezahlart soll mit auf die confirmation_checkout um Heidelpay anzusteuern.

    Eigentlich ganz einfach oder? :)

    Jemand nen Lösungsvorschlag parat?

    Besten Dank im voraus.

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Warenkorb vorbelegen
    Antwort #8 am: 11. März 2010, 14:24:50
    Stimmt, ich habe den Code nochmal editiert... sowas kommt davon, wenn man den Code-Button nicht von Anfang an benutzt. ;-)

    Grüße

    Torsten

    eawebsolutions

    • Neu im Forum
    • Beiträge: 23
    Warenkorb vorbelegen
    Antwort #9 am: 11. März 2010, 15:06:03
    Also ich habe mich jetzt doch dazu durchgerungen das easycheckout zu nutzen. Nur läuft heidelpay damit nicht mehr.

    meine checkout.php

    Code: PHP  [Auswählen]
    <?
    /* -----------------------------------------------------------------------------------------
       (c) 2009 (( Wir dulden keine kommerziellen Werbelinks - Bitte <a href="index.php?topic=3013.0">Forenregeln</a> beachten! ))
       ---------------------------------------------------------------------------------------*/

    // AJAX CHECKOUT PROCESS
    include ('includes/application_top.php');
    // create smarty elements
    $smarty = new Smarty;
    // create checkout object
    require (DIR_WS_CLASSES . 'checkout.php');
    $checkout = new Checkout;
    // include boxes
    require (DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/source/boxes.php');
    // is logged in
    $loggedin = true;

    // required 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');
    require_once (DIR_FS_INC.'xtc_count_shipping_modules.inc.php');
    require_once (DIR_FS_INC.'xtc_get_country_list.inc.php');

    require_once(DIR_WS_CLASSES . 'order_total.php');
    require_once(DIR_WS_CLASSES . 'order.php');

    // Is it an ajax request?
    $is_xajax = (strlen($_POST['xajax'])> 4 || strlen($_POST['xjxfun'])> 4 || strlen($_GET['xajax'])> 4 || strlen($_GET['xjxfun'])> 4);

    if (!$is_xajax) $_SESSION['cot_gv'] = false;
    if (!$is_xajax) unset($_SESSION['old_payment']);
    if (!$is_xajax && $_SESSION['payment'] == 'no_payment') unset($_SESSION['payment']);
    if (!$is_xajax) unset($_SESSION['stat_luupws']);
    if (!$is_xajax) unset($_SESSION['tmp_oID']);

    // check if checkout is allowed
    if ($_SESSION['allow_checkout'] == 'false') {
            xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART));
    }

    // if the customer is not logged on, redirect them to the login page
    if (!isset($_SESSION['customer_id']) && !$is_xajax) {
            $loggedin = false;
    }

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

    // if no shipping destination address was selected, use the customers own address as default
    if (!isset ($_SESSION['sendto'])) {
            $_SESSION['sendto'] = $_SESSION['customer_default_address_id'];
    } else {
            // verify the selected shipping 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['sendto']."'");
            $check_address = xtc_db_fetch_array($check_address_query);

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

    // 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'];
    }
    $order = new order;
    if ($order->delivery['country']['iso_code_2'] != '') {
            $_SESSION['delivery_zone'] = $order->delivery['country']['iso_code_2'];
    }

    // load the selected payment module
    require_once(DIR_WS_CLASSES . 'payment.php');
    if (!$is_xajax) {
            if (isset ($_SESSION['credit_covers'])) {
                    $_SESSION['payment'] = 'no_payment'; // GV Code Start/End ICW added for CREDIT CLASS
            }
            $order_total_modules = new order_total;
            require_once(DIR_WS_CLASSES.'shipping.php');
            $shipping_modules = new shipping;
            $payment_modules = new payment;

            // SHOW PAYMENT ERROR
            if (isset ($_GET['payment_error']) && is_object(${ $_GET['payment_error'] }) && ($error = ${$_GET['payment_error']}->get_error())) {
                    $smarty->assign('error', htmlspecialchars($error['error']));
            }
    }
    // register a random ID in the session to check throughout the checkout procedure
    // against alterations in the shopping cart contents
    $_SESSION['cartID'] = $_SESSION['cart']->cartID;

    $virtual = $checkout->isVirtual();

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

    // load all enabled shipping modules
    if (!$is_xajax) {
            $free_shipping = $checkout->isFreeShipping($order, $xtPrice);
            if ($free_shipping) {
                    include (DIR_WS_LANGUAGES.$_SESSION['language'].'/modules/order_total/ot_shipping.php');
            }
            $quotes = $shipping_modules->quote();
    }
    if (!$is_xajax) $payment_modules->update_status();

    // Stock Check
    $any_out_of_stock = false;
    if (STOCK_CHECK == 'true') {
            for ($i = 0, $n = sizeof($order->products); $i <$n; $i++) {
                    if (xtc_check_stock($order->products[$i]['id'], $order->products[$i]['qty']))
                            $any_out_of_stock = true;
            }
            // Out of Stock
            if ((STOCK_ALLOW_CHECKOUT != 'true') && ($any_out_of_stock == true))
                    xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART));
    }

    // OUTPUT
    $breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT);
    require (DIR_WS_INCLUDES.'header.php');

    $module_smarty = new Smarty;

    // PAYMENT STUFF
    if ($order->info['total'] <= 0) {
            $gv_cover = 'true';
    }

    $cot_gv_stat = $_SESSION['cot_gv'] ? 1 : 0;

    // disable payment/shipping modules
    if (!empty($_SESSION['shipping']['id']) && $_SESSION['shipping']['id'] != 'selfpickup_selfpickup' && !$is_xajax) {
            if (is_object($GLOBALS['cash'])) $GLOBALS['cash']->enabled = false;
    }
    if (!empty($_SESSION['shipping']['id']) && $_SESSION['shipping']['id'] == 'selfpickup_selfpickup' && !$is_xajax) {
            if (is_object($GLOBALS['cod'])) $GLOBALS['cod']->enabled = false;
    }

    // SHIPPING STUFF
    if (!$is_xajax) $shipping_block = $checkout->getShippingBlock($xtPrice);
    $order = new order;
    if (!$is_xajax) $payment_block = $checkout->getPaymentBlock($xtPrice, $payment_modules);

    if (!$is_xajax) {
            $order = new order;
            $order_total_modules = new order_total();
            $order_total_modules->collect_posts();
            $order_total_modules->pre_confirmation_check();
            $order_total_modules->process();
            if (ACTIVATE_GIFT_SYSTEM == 'true') {
                    $module_gift = $order_total_modules->credit_selection();
            }
    }
    // Which modules should be opened?
    $smarty->assign('SHOW_STAT_LOGIN', $checkout->getStat('login'));
    $smarty->assign('SHOW_STAT_PAYMENT_ADDRESS', $checkout->getStat('payment_address'));
    $smarty->assign('SHOW_STAT_SHIPPING_ADDRESS', $checkout->getStat('shipping_address'));
    $smarty->assign('SHOW_STAT_PAYMENT_MODULES', $checkout->getStat('payment_modules'));
    $smarty->assign('SHOW_STAT_SHIPPING_MODULES', $checkout->getStat('shipping_modules'));
    $smarty->assign('SHOW_STAT_COMMENTS', $checkout->getStat('comments'));
    $smarty->assign('SHOW_STAT_PRODUCTS', $checkout->getStat('products'));
    $smarty->assign('SHOW_STAT_AGB', $checkout->getStat('agb'));
    $smarty->assign('SHOW_STAT_REVOCATION', $checkout->getStat('revocation'));

    // USER LOGGED IN?
    if ($loggedin) {
            $smarty->assign('LOGGED_IN', 1);
    }
    $smarty->assign('BUTTON_LOGIN', xtc_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN));

    // REGISTRATION
    $smarty->assign('ACCOUNT_OPTIONS', ACCOUNT_OPTIONS);

    if (ACCOUNT_GENDER == 'true') {
            $smarty->assign('REGISTER_GENDER', '1');
            $smarty->assign('INPUT_MALE', xtc_draw_radio_field(array ('name' => 'checkout_register_gender', 'suffix' => MALE), 'm'));
            $smarty->assign('INPUT_FEMALE', xtc_draw_radio_field(array ('name' => 'checkout_register_gender', 'suffix' => FEMALE, 'text' => (xtc_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">'.ENTRY_GENDER_TEXT.'</span>' : '')), 'f'));
    }

    $smarty->assign('INPUT_FIRSTNAME', xtc_draw_input_fieldNote(array ('name' => 'checkout_register_firstname', 'text' => ' '. (xtc_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">'.ENTRY_FIRST_NAME_TEXT.'</span>' : ''))));
    $smarty->assign('INPUT_LASTNAME', xtc_draw_input_fieldNote(array ('name' => 'checkout_register_lastname', 'text' => ' '. (xtc_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">'.ENTRY_LAST_NAME_TEXT.'</span>' : ''))));

    if (ACCOUNT_DOB == 'true') {
            $smarty->assign('REGISTER_BIRTHDATE', '1');
            $smarty->assign('INPUT_DOB', xtc_draw_input_fieldNote(array ('name' => 'checkout_register_dob', 'text' => ' '. (xtc_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">'.ENTRY_DATE_OF_BIRTH_TEXT.'</span>' : ''))));
    }

    $smarty->assign('INPUT_EMAIL', xtc_draw_input_fieldNote(array ('name' => 'checkout_register_email_address', 'text' => ' '. (xtc_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">'.ENTRY_EMAIL_ADDRESS_TEXT.'</span>' : ''))));

    if (ACCOUNT_COMPANY == 'true') {
            $smarty->assign('REGISTER_COMPANY', '1');
            $smarty->assign('INPUT_COMPANY', xtc_draw_input_fieldNote(array ('name' => 'checkout_register_company', 'text' => ' '. (xtc_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement">'.ENTRY_COMPANY_TEXT.'</span>' : ''))));
    }
    if (ACCOUNT_COMPANY_VAT_CHECK == 'true') {
            $smarty->assign('REGISTER_VAT', '1');
            $smarty->assign('INPUT_VAT', xtc_draw_input_fieldNote(array ('name' => 'checkout_register_vat', 'text' => ' '. (xtc_not_null(ENTRY_VAT_TEXT) ? '<span class="inputRequirement">'.ENTRY_VAT_TEXT.'</span>' : ''))));
    }

    $smarty->assign('INPUT_STREET', xtc_draw_input_fieldNote(array ('name' => 'checkout_register_street_address', 'text' => ' '. (xtc_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement">'.ENTRY_STREET_ADDRESS_TEXT.'</span>' : ''))));

    if (ACCOUNT_SUBURB == 'true') {
            $smarty->assign('REGISTER_SUBURB', '1');
            $smarty->assign('INPUT_SUBURB', xtc_draw_input_fieldNote(array ('name' => 'checkout_register_suburb', 'text' => ' '. (xtc_not_null(ENTRY_SUBURB_TEXT) ? '<span class="inputRequirement">'.ENTRY_SUBURB_TEXT.'</span>' : ''))));
    }

    $smarty->assign('INPUT_CODE', xtc_draw_input_fieldNote(array ('name' => 'checkout_register_postcode', 'text' => ' '. (xtc_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">'.ENTRY_POST_CODE_TEXT.'</span>' : ''))));
    $smarty->assign('INPUT_CITY', xtc_draw_input_fieldNote(array ('name' => 'checkout_register_city', 'text' => ' '. (xtc_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">'.ENTRY_CITY_TEXT.'</span>' : ''))));

    $selected = STORE_COUNTRY;
    $cid = $selected;

    if (ACCOUNT_STATE == 'true') {
            $smarty->assign('REGISTER_STATE', '1');
            $zones_array = array ();
            $zones_query = xtc_db_query("select zone_name from ".TABLE_ZONES." where zone_country_id = '".xtc_db_input($cid)."' order by zone_name");
            while ($zones_values = xtc_db_fetch_array($zones_query)) {
                    $zones_array[] = array ('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
            }
            if (count($zones_array)> 0) {
                    $entry_state = '<span id="checkout_register_states">'.xtc_draw_pull_down_menuNote(array ('name' => 'checkout_register_state', 'text' => ' '. (xtc_not_null(ENTRY_STATE_TEXT) ? '<span class="inputRequirement">'.ENTRY_STATE_TEXT.'</span>' : '')), $zones_array).'</span>';
                    $smarty->assign('STATE_STAT', '1');
            } else {
                    $entry_state = '<span id="checkout_register_states"></span>';
                    $smarty->assign('STATE_STAT', '0');
            }
            $html_country_onchange = 'onchange="xajax_updateStatesRegister(this.value); $(\'loader_login\').style.display = \'\';"';
            $smarty->assign('INPUT_STATE', $entry_state);
    }
    $smarty->assign('SELECT_COUNTRY', xtc_get_country_list(array ('name' => 'checkout_register_country', 'text' => ' '. (xtc_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">'.ENTRY_COUNTRY_TEXT.'</span>' : '')), $selected, $html_country_onchange));
    $smarty->assign('INPUT_TEL', xtc_draw_input_fieldNote(array ('name' => 'checkout_register_telephone', 'text' => ' '. (xtc_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">'.ENTRY_TELEPHONE_NUMBER_TEXT.'</span>' : ''))));
    $smarty->assign('INPUT_FAX', xtc_draw_input_fieldNote(array ('name' => 'checkout_register_fax', 'text' => ' '. (xtc_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">'.ENTRY_FAX_NUMBER_TEXT.'</span>' : ''))));
    $smarty->assign('INPUT_PASSWORD', xtc_draw_password_fieldNote(array ('name' => 'checkout_register_password', 'text' => ' '. (xtc_not_null(ENTRY_PASSWORD_TEXT) ? '<span class="inputRequirement">'.ENTRY_PASSWORD_TEXT.'</span>' : ''))));
    $smarty->assign('INPUT_CONFIRMATION', xtc_draw_password_fieldNote(array ('name' => 'checkout_register_confirmation', 'text' => ' '. (xtc_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="inputRequirement">'.ENTRY_PASSWORD_CONFIRMATION_TEXT.'</span>' : ''))));
    $smarty->assign('BUTTON_REGISTER', xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));

    // FORM
    $smarty->assign('FORM_ACTION', xtc_draw_form('checkout', $checkout->getFormUrl(), 'post', 'onSubmit="return checkout();"'));
    $smarty->assign('FORM_END', '</form>');

    // IP
    $smarty->assign('CUSTOMERS_IP', $checkout->getIp());

    // SHIPPING MODULES
    $no_shippings = xtc_not_null(MODULE_SHIPPING_INSTALLED) ? 0 : 1;
    $smarty->assign('NO_SHIPPINGS', $no_shippings);
    $smarty->assign('FORM_ACTION_SHIPPING_MODULES', xtc_draw_form('form_shipping_modules', '', 'post', ''));
    $smarty->assign('SHIPPING_BLOCK', $shipping_block);
    $smarty->assign('BUTTON_SAVE_SHIPPING_MODULE', $checkout->getSaveModuleButton('shipping'));
    $smarty->assign('FREE_SHIPPING', $free_shipping ? 1 : 0);
    $smarty->assign('FREE_SHIPPING_DESCRIPTION', sprintf(FREE_SHIPPING_DESCRIPTION, $xtPrice->xtcFormat(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER, true, 0, true)).xtc_draw_hidden_field('shipping', 'free_free'));
    $smarty->assign('FREE_SHIPPING_ICON', $quotes[$i]['icon']);

    // PAYMENT MODULES
    $no_payments = xtc_not_null(MODULE_PAYMENT_INSTALLED) ? 0 : 1;
    $smarty->assign('NO_PAYMENTS', $no_payments);
    $smarty->assign('FORM_ACTION_PAYMENT_MODULES', xtc_draw_form('form_payment_modules', '', 'post', ''));
    $smarty->assign('PAYMENT_BLOCK', $payment_block);
    $smarty->assign('GV_COVER', $gv_cover);
    $smarty->assign('module_gift', $module_gift);
    $smarty->assign('BUTTON_SAVE_PAYMENT_MODULE', $checkout->getSaveModuleButton('payment'));

    // SHIPPING ADDRESS
    $smarty->assign('VIRTUAL', $virtual);
    $smarty->assign('TEXT_VIRTUAL', CHECKOUT_TEXT_VIRTUAL);
    $smarty->assign('BUTTON_EDIT_SHIPPING_ADDRESS', $checkout->getEditAddressButton('shipping'));
    $smarty->assign('BUTTON_BACK_SHIPPING_ADDRESS', $checkout->getBackButton('shipping'));
    $smarty->assign('BUTTON_SAVE_SHIPPING_ADDRESS', $checkout->getSaveAddressButton('shipping'));
    $smarty->assign('SHIPPING_ADDRESS_LABEL', xtc_address_label($_SESSION['customer_id'], $_SESSION['sendto'], true, ' ', '<br />'));
    $smarty->assign('FORM_ACTION_SHIPPING_ADDRESS', xtc_draw_form('form_shipping_address', '', 'post', ''));

    // PAYMENT ADDRESS
    $smarty->assign('BUTTON_EDIT_PAYMENT_ADDRESS', $checkout->getEditAddressButton('payment'));
    $smarty->assign('BUTTON_BACK_PAYMENT_ADDRESS', $checkout->getBackButton('payment'));
    $smarty->assign('BUTTON_SAVE_PAYMENT_ADDRESS', $checkout->getSaveAddressButton('payment'));
    $smarty->assign('PAYMENT_ADDRESS_LABEL', xtc_address_label($_SESSION['customer_id'], $_SESSION['billto'], true, ' ', '<br />'));
    $smarty->assign('FORM_ACTION_PAYMENT_ADDRESS', xtc_draw_form('form_payment_address', '', 'post', ''));

    // BOTH
    require (DIR_WS_MODULES.'checkout_new_address.php');
    $smarty->assign('ADDRESS_NEW_POSSIBLE', $checkout->newAddressPossible());

    // PRODUCTS
    $smarty->assign('PRODUCTS_BLOCK', $checkout->getProducts());
    $smarty->assign('PRODUCTS_HOW_MUCH', $_SESSION['cart']->count_contents());

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

    // AGB
    $smarty->assign('AGB',$checkout->getAGB('text'));
    $smarty->assign('AGB_link',$checkout->getAGB('link'));
    $smarty->assign('AGB_checkbox',$checkout->getAGB('checkbox'));
    $smarty->assign('AGB_stat',$checkout->getAGB('stat'));

    // REVOCATION
    $smarty->assign('REVOCATION',$checkout->getRevocation('text'));
    $smarty->assign('REVOCATION_link',$checkout->getRevocation('link'));
    $smarty->assign('REVOCATION_stat',$checkout->getRevocation('stat'));
    $smarty->assign('REVOCATION_checkbox',$checkout->getRevocation('checkbox'));

    // HIDDEN
    $smarty->assign('HIDDEN_XAJAX',xtc_draw_hidden_field('checkout_xajax','1'));
    if (is_object($GLOBALS[$_SESSION['payment']])) $smarty->assign('HIDDEN_PAYMENT',$GLOBALS[$_SESSION['payment']]->process_button());

    // BUTTONS
    $smarty->assign('BUTTON_ORDER',$checkout->getOrderButton());

    // TOTAL
    if (!$is_xajax) $smarty->assign('ORDER_TOTAL',$checkout->getTotalBlock($order, $order_total_modules, $xtPrice));

    // MAIN
    $smarty->assign('SORTING', $checkout->getSorting());
    $smarty->assign('language', $_SESSION['language']);
    $smarty->caching = 0;
    $main_content = $smarty->fetch(CURRENT_TEMPLATE.'/module/checkout.html');
    $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');
    ?>
    Heidelpay Änderungen in checkout_process.php

    Code: PHP  [Auswählen]
    // Heidelpay: UniqueID und ShortID speichern
        if (substr($order->info['payment_method'], 0, 9) == 'heidelpay') {
                    xtc_db_query("update ".TABLE_ORDERS." set
                                                     heidelpay_short_id = '"
    .$_SESSION['heidelpay_shortid']."',
                                             heidelpay_unique_id = '"
    .$_SESSION['heidelpay_uniqueid']."'
                                                     where orders_id = '"
    .$insert_id."'");
        }
        unset($_SESSION['heidelpay_shortid']);
        unset($_SESSION['heidelpay_uniqueid']);
        // Ende Heidelpay speichern
     
    Und hier noch der Heidelpay Code der in die checkout.php muss:

    Code: PHP  [Auswählen]
    // Heidelpay: ueberschreiben von CHECKOUT_FORM, MODULE_BUTTONS und CHECKOUT_BUTTON
     if (substr($payment_modules->selected_module,0,9) == 'heidelpay' && $payment_modules->selected_module != 'heidelpaypp') {
       $HEIDELPAY_CALL_FORM = true;
       $smarty->assign('CHECKOUT_FORM', '');
       $payment_button = $payment_modules->process_button();
       $smarty->assign('MODULE_BUTTONS', $payment_button);
       $smarty->assign('CHECKOUT_BUTTON', '');
     }
     // /Heidelpay
     
    Bin für jeden Lösungshinweis dankbar

    alkim media

    • Experte
    • Beiträge: 658
    Warenkorb vorbelegen
    Antwort #10 am: 11. März 2010, 15:35:23
    tja, was soll man dazu sagen.
    Da hat man nur für lau ein Modul, plagt sich stundenlang mit Problemen rum. Die Zeit hätte man sich auch sparen können :)

    eawebsolutions

    • Neu im Forum
    • Beiträge: 23
    Warenkorb vorbelegen
    Antwort #11 am: 11. März 2010, 16:25:04
    Tja sieht wohl so aus als ob das Modul von Shopmodules Heidelpay unterstützt. :)
    Aber das bekommen wir schon hin.  Und vielleicht stellen wir es ja dann für Lau zur Verfügung und nicht für unglaubliche 200 €
    :P

    3 Antworten
    3192 Aufrufe
    04. September 2013, 00:21:01 von kaisa
    4 Antworten
    3430 Aufrufe
    30. September 2014, 14:54:09 von except
    5 Antworten
    1601 Aufrufe
    24. Februar 2021, 17:36:42 von awids
    5 Antworten
    3421 Aufrufe
    31. Juli 2015, 15:42:26 von Fakrae