rechtstexte für onlineshop
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: Fehler bei Rechnung in Ausland 1 und Versand in Ausland 2

    Clever

    • Schreiberling
    • Beiträge: 257
    Hallo.
    Wir heben einen etwas seltsamen Fehler - und ich bin mir nicht sicher wo ich ansetzen muß.

    Wir haben einen Kunden, der die Rechnungsadresse in den Niederlanden angab und den Versand nach Italien wünschte.

    Dabei wurde dem Kunden nun 0.00 € Versand berechnet.

    Installiert haben wir die Versandmodule DP sowie freeamount ab 100,00 € innerhalb D.

    Nun habe ich eben versucht das nachzuvollziehen - dabei stellte ich fest, das die Versandkosten berechnet werden, wenn das Zielland ODER das Rechnungsland Ausland sind - oder aber es sich um das gleiche Ausland handelt.
    Nicht aber im vorhandenen Fall.
    Das Versandmodul wird auch nicht angezeigt - installiert man testweise ein Modul (ich nahme dafür DPD) dann taucht in der Auswahl NUR das DPD Modul auf, nimmt aber einen seltsamen Wert an Versandkosten ( ich hab ihm 37€ vorgegeben - dem kunden wurden 58,37 € berechnet - dies ist weder mit Doppelberechnung (28,90€ reguläre VSK nach IT) zu erklären, noch mit evtl irrtümlich draufgeschlagenen 7€ für Versand innerhalb D.

    Aber grundsätzlich werden die Versandkosten also beim Ändern des Empfängers neu berechnet.

    Warum aber taucht in dem Fall das DP Modul gar nicht mehr auf und die Berechnung liegt dann bei 0.00 € ?

    Der Bestellwert lag übrigens bei ca 25 € und somit deutlich unter den 100€ für Freeamount innerhalb D.

    Wir haben im Shop das Versandkosten im Warenkorb-Modul sowie einen verkürzten Checkout - aber der Test ergab ja das eine Neuberechnung stattfindet - mal spaßeshalber unsere "neue" checkout-shipping:
    Code: PHP  [Auswählen]
    <?php

    /* -----------------------------------------------------------------------------------------
       $Id: checkout_shipping.php 1037 2005-07-17 15:25:32Z gwinger $  

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

       Copyright (cxtc_format_price) 2003 XT-Commerce
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(checkout_shipping.php,v 1.15 2003/04/08); www.oscommerce.com
       (c) 2003      nextcommerce (checkout_shipping.php,v 1.20 2003/08/20); www.nextcommerce.org

       Released under the GNU General Public License
       -----------------------------------------------------------------------------------------
       Third Party contribution:

       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');
    if (!defined('CHECK_CHEAPEST_SHIPPING_MODUL')) {
      define ('CHECK_CHEAPEST_SHIPPING_MODUL', false); //true, false - default false
    }
    // create smarty elements
    $smarty = new Smarty;
    // include boxes
    require (DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/source/boxes.php');
    // include needed functions

    $dieSession=session_name();
    $dieSessionID=session_id();

    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_count_shipping_modules.inc.php');
    require_once (DIR_FS_INC . 'xtc_check_stock.inc.php');
    require (DIR_WS_CLASSES.'http_client.php');

    unset ($_SESSION['tmp_oID']);

    $smarty->assign('SHOW_ADDRESS',SHOW_EDIT_ADRESS);
    $smarty->assign('SHOW_ORDER',SHOW_ORDER_LIST);

    // 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'])) {
            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 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']);
            }
    }

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

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

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



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

    if ($order->delivery['country']['iso_code_2'] != '') {
            $_SESSION['delivery_zone'] = $order->delivery['country']['iso_code_2'];
    }
    // load all enabled shipping modules
    require (DIR_WS_CLASSES.'shipping.php');
    $shipping_modules = new shipping;

    if (defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true')) {
            switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) {
                    case 'national' :
                            if ($order->delivery['country_id'] == STORE_COUNTRY)
                                    $pass = true;
                            break;
                    case 'international' :
                            if ($order->delivery['country_id'] != STORE_COUNTRY)
                                    $pass = true;
                            break;
                    case 'both' :
                            $pass = true;
                            break;
                    default :
                            $pass = false;
                            break;
            }

            $free_shipping = false;
            if (($pass == true) && ($order->info['total'] - $order->info['shipping_cost'] >= $xtPrice->xtcFormat(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER, false, 0, true))) {
                    $free_shipping = true;

                    include (DIR_WS_LANGUAGES.$_SESSION['language'].'/modules/order_total/ot_shipping.php');
            }
    } else {
            $free_shipping = false;
    }
    /*
    echo "<pre>";
    print_r($_SESSION);
    echo "</pre>";
    */


    // process the selected shipping method
    if (isset ($_POST['action']) && ($_POST['action'] == 'process')) {

            foreach($_POST as $key=>$value)
            {
                    $_SESSION[$key]=$value;
            }
                   
            $_SESSION['payment'] =  xtc_db_prepare_input($_POST['payment']);
            $_SESSION['comments'] = xtc_db_prepare_input($_POST['comments']);
            //$_SESSION['cot_gv'] = $_POST['cot_gv'];
           
            if($_POST['conditions']!=false)
                    $_SESSION['conditions']=true;
            else
                    $_SESSION['conditions']=false;

            if ((xtc_count_shipping_modules() > 0) || ($free_shipping == true)) {  
                    if ((isset ($_POST['shipping'])) && (strpos($_POST['shipping'], '_'))) {
                            $_SESSION['shipping'] = $_POST['shipping'];

                            list ($module, $method) = explode('_', $_SESSION['shipping']);
                            if (is_object($$module) || ($_SESSION['shipping'] == 'free_free')) {
                                    if ($_SESSION['shipping'] == 'free_free') {
                                            $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
                                            $quote[0]['methods'][0]['cost'] = '0';
                                    } else {
                                            $quote = $shipping_modules->quote($method, $module);
                                    }
                                    if (isset ($quote['error'])) {
                                            unset ($_SESSION['shipping']);
                                    } else {
                                            if ((isset ($quote[0]['methods'][0]['title'])) && (isset ($quote[0]['methods'][0]['cost']))) {
                                                    $_SESSION['shipping'] = array ('id' => $_SESSION['shipping'], 'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'].' ('.$quote[0]['methods'][0]['title'].')'), 'cost' => $quote[0]['methods'][0]['cost']);
                                                    if(!isset($_POST["save"]))
                                                    xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'));
                                                    //xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
                                            }
                                    }
                            } else {
                                    unset ($_SESSION['shipping']);
                            }
                    }
            } else {
                    $_SESSION['shipping'] = false;
                    if(!isset($_POST["save"]))
                    xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'));
                    //xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
            }
    }

    // get all available shipping quotes
    $quotes = $shipping_modules->quote();

    // if no shipping method has been selected, automatically select the cheapest method.
    // if the modules status was changed when none were available, to save on implementing
    // a javascript force-selection method, also automatically select the cheapest shipping
    // method if more than one module is now enabled
    if (!isset ($_SESSION['shipping']) || (isset ($_SESSION['shipping']) && ($_SESSION['shipping'] == false) && (xtc_count_shipping_modules() > 1)))
            $_SESSION['shipping'] = $shipping_modules->cheapest();

    $breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT_SHIPPING, xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    $breadcrumb->add(NAVBAR_TITLE_2_CHECKOUT_SHIPPING, xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));

    $smarty->assign('FORM_ACTION', xtc_draw_form('checkout_payment', xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'post', 'onSubmit="return check_form();"').xtc_draw_hidden_field('action', 'process'));
    $smarty->assign('ADDRESS_LABEL', xtc_address_label($_SESSION['customer_id'], $_SESSION['sendto'], true, ' ', '<br />'));
    $smarty->assign('BUTTON_ADDRESS', '<a href="'.xtc_href_link(FILENAME_CHECKOUT_SHIPPING_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>');

    $smarty->assign('ADDRESS_LABEL2', xtc_address_label($_SESSION['customer_id'], $_SESSION['billto'], true, ' ', '<br />'));
    $smarty->assign('BUTTON_ADDRESS2', '<a href="' . xtc_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . xtc_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '</a>');
    $smarty->assign('COMMENTS', xtc_draw_textarea_field('comments', 'soft', '60', '5', $_SESSION['comments']) . xtc_draw_hidden_field('comments_added', 'YES'));
    /*
    $smarty->assign('FORM_ACTION', xtc_draw_form('checkout_payment', xtc_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', 'onSubmit="return check_form();"'));
    */


    $module_smarty = new Smarty;
    if (xtc_count_shipping_modules() > 0) {

            $showtax = $_SESSION['customers_status']['customers_status_show_price_tax'];

            $module_smarty->assign('FREE_SHIPPING', $free_shipping);

            # free shipping or not...

            if ($free_shipping == true) {

                    $module_smarty->assign('FREE_SHIPPING_TITLE', FREE_SHIPPING_TITLE);

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

                    $module_smarty->assign('FREE_SHIPPING_ICON', $quotes[$i]['icon']);

            } else {

                    $radio_buttons = 0;

                    #loop through installed shipping methods...

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

                            if (!isset ($quotes[$i]['error'])) {

                                    for ($j = 0, $n2 = sizeof($quotes[$i]['methods']); $j < $n2; $j ++) {

                                            # set the radio button to be checked if it is the method chosen

                                            $quotes[$i]['methods'][$j]['radio_buttons'] = $radio_buttons;

                                            $checked = (($quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id'] == $_SESSION['shipping']['id']) ? true : false);

                                            if (($checked == true) || ($n == 1 && $n2 == 1)) {

                                                    $quotes[$i]['methods'][$j]['checked'] = 1;

                                            }

                                            if (($n > 1) || ($n2 > 1)) {
                                                    if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0)
                                                            $quotes[$i]['tax'] = '';
                                                    if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0)
                                                            $quotes[$i]['tax'] = 0;
                                                    $quotes[$i]['methods'][$j]['price'] = $xtPrice->xtcFormat(xtc_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax']), true, 0, true);

                                                    $quotes[$i]['methods'][$j]['radio_field'] = xtc_draw_radio_field('shipping', $quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id'], $checked, ' onclick="sendAJAX(\''.$dieSession.'\',\''.$dieSessionID.'\');"');

                                            } else {
                                                    if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0)
                                                            $quotes[$i]['tax'] = 0;

                                                    $quotes[$i]['methods'][$j]['price'] = $xtPrice->xtcFormat(xtc_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax']), true, 0, true).xtc_draw_hidden_field('shipping', $quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id']);

                                            }

                                            $radio_buttons ++;

                                    }

                            }

                    }

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

            }
            $module_smarty->caching = 0;
            $shipping_block = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/checkout_shipping_block.html');

    }

    $smarty->assign('language', $_SESSION['language']);
    $smarty->assign('SHIPPING_BLOCK', $shipping_block);





    /**********************************/
    /************ PRODUCTS BLOCK ******/

    if ($_SESSION['sendto'] != false) {

            if ($order->info['shipping_method']) {
                    $smarty->assign('SHIPPING_METHOD', $order->info['shipping_method']);
                    $smarty->assign('SHIPPING_EDIT', xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));

            }

    }

    if (sizeof($order->info['tax_groups']) > 1) {

            if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) {

            }

    } else {

    }
    $data_products = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
    for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {

            $data_products .= '<tr>' . "\n" . '            <td class="main" align="left" valign="top">' . $order->products[$i]['qty'] . ' x ' . $order->products[$i]['name'] . '</td>' . "\n" . '                <td class="main" align="right" valign="top">' . $xtPrice->xtcFormat($order->products[$i]['final_price'], true) . '</td></tr>' . "\n";
            if (ACTIVATE_SHIPPING_STATUS == 'true') {

                    $data_products .= '<tr>
                                                            <td class="main" align="left" valign="top">
                                                            <nobr><small>'
    . SHIPPING_TIME . $order->products[$i]['shipping_time'] . '
                                                            </small><nobr></td>
                                                            <td class="main" align="right" valign="top">&nbsp;</td></tr>'
    ;

            }
            if ((isset ($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0)) {
                    for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
                            $data_products .= '<tr>
                                                                    <td class="main" align="left" valign="top">
                                                                    <nobr><small>&nbsp;<i> - '
    . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '
                                                                    </i></small><nobr></td>
                                                                    <td class="main" align="right" valign="top">&nbsp;</td></tr>'
    ;
                    }
            }

            $data_products .= '' . "\n";

            if ($_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) {
                    if (sizeof($order->info['tax_groups']) > 1)
                            $data_products .= '            <td class="main" valign="top" align="right">' . xtc_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";
            }
            $data_products .= '</tr>' . "\n";
    }
    $data_products .= '</table>';
    $smarty->assign('PRODUCTS_BLOCK', $data_products);
    /************ PRODUCTS BLOCK ******/
    /**********************************/


    /*********************************/
    /***** PAYMENT BLOCK ***********/
    /*
    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'] != '')
            $_SESSION['delivery_zone'] = $order->billing['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'));
    */


    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']), 'onclick="sendAJAX(\''.$dieSession.'\',\''.$dieSessionID.'\');"');
                    } 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');

    require (DIR_WS_INCLUDES.'header.php');

    //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'] != '') {

                    $conditions = '<iframe SRC="' . DIR_WS_CATALOG . 'media/content/' . $shop_content_data['content_file'] . '" width="100%" height="300">';
                    $conditions .= '</iframe>';
            } else {

                    $conditions = '<textarea name="blabla" cols="60" rows="10" readonly="readonly">' . strip_tags(str_replace('<br />', "\n", $shop_content_data['content_text'])) . '</textarea>';
            }

            $smarty->assign('AGB', $conditions);
            $smarty->assign('AGB_LINK', $main->getContentLink(3, MORE_INFO));
            // LUUPAY ZAHLUNGSMODUL
            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" />');
            }
            // LUUPAY END

    }
    $smarty->assign('language', $_SESSION['language']);
    $smarty->assign('PAYMENT_BLOCK', $payment_block);


    //print_r($_SESSION["shipping"]);
    /*This is pretty ugly, but i don't know how to access this otherwise'*/
    $order->info['shipping_method'] = $_SESSION["shipping"]["title"];
    $order->info["total"] = $order->info["subtotal"]+$_SESSION["shipping"]["cost"];
    $order->info['shipping_cost'] = $_SESSION["shipping"]["cost"];

    /// mach die order hier nochmal, damit auch der Discount richtig errechnet wird.
    $order = new order;

    $total_block = '<table>';
    if (MODULE_ORDER_TOTAL_INSTALLED)
    {      
            $order_total_modules->process();       
            $total_block .= $order_total_modules->output();
    }
    $total_block .= '</table>';
    $smarty->assign('response', $total_block);

    /***** PAYMENT BLOCK ***********/


    $smarty->caching = 0;
    //$main_content = $smarty->fetch(CURRENT_TEMPLATE.'/module/checkout_shipping.html');
    $main_content = $smarty->fetch(CURRENT_TEMPLATE.'/module/easy_checkout.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');
    ?>


    Linkback: https://www.modified-shop.org/forum/index.php?topic=26967.0
    Marktplatz - Eine große Auswahl an neuen und hilfreichen Modulen sowie modernen Templates für die modified eCommerce Shopsoftware