Werbung / Banner buchen
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: Druckversion der Bestellung wird nicht angezeigt, bei allen Kundengruppen.

    Tȟatȟáŋka Íyotake

    • Schreiberling
    • Beiträge: 332
    Hallo,

    nach dem Bestellvorgang wird die Druckversion der Bestellung bei mir nicht angezeigt. Als Gast, als angemeldeter User, bei keiner Kundengruppe.

    Ich hab das xtc5 Standardtemplate. Woran könnte das liegen?

    Grüße, Markkk

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

    Tȟatȟáŋka Íyotake

    • Schreiberling
    • Beiträge: 332
    Ich habe leider zu wenig Wissen von php. Das ist doch die Datei (checkout_success.php), wo der Fehler sein muss?

    Code: PHP  [Auswählen]
    <?php
    /* -----------------------------------------------------------------------------------------
       $Id: checkout_success.php 896 2005-04-27 19:22:59Z mz $  

       XT-Commerce - community made shopping
       http://www.(( Wir dulden keine kommerziellen Werbelinks - Bitte Forenregeln beachten! ))

       Copyright (c) 2003 XT-Commerce
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(checkout_success.php,v 1.48 2003/02/17); www.oscommerce.com
       (c) 2003      nextcommerce (checkout_success.php,v 1.14 2003/08/17); 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');
    // create smarty elements
    $smarty = new Smarty;
    // include boxes
    require (DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/source/boxes.php');

    // BOF - GTB - 2011-04-12 - changes for Guest Account
    // if the customer is not logged on, redirect them to the shopping cart page
    /*
    if (!isset ($_SESSION['customer_id'])) {
      xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART));
    }
    */

    if (isset ($_GET['action']) && ($_GET['action'] == 'update')) {

            if ($_POST['account_type'] != 1) {
      //if ($_SESSION['account_type'] != 1) {
        //BOF - web28.de - FIX redirect to NONSSL
        //xtc_redirect(xtc_href_link(FILENAME_DEFAULT));
        xtc_redirect(xtc_href_link(FILENAME_DEFAULT),'NONSSL');
        //EOF - web28.de - FIX redirect to NONSSL
      } else {
        //xtc_redirect(xtc_href_link(FILENAME_LOGOFF));
        xtc_redirect(xtc_href_link(FILENAME_LOGOFF), 'NONSSL');
      }
    }

    // if the customer is not logged on, redirect them to the shopping cart page
    if (!isset ($_SESSION['customer_id'])) {
      xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART), 'NONSSL');
    }
    // EOF - GTB - 2011-04-12 - changes for Guest Account

    $breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT_SUCCESS);
    $breadcrumb->add(NAVBAR_TITLE_2_CHECKOUT_SUCCESS);

    require (DIR_WS_INCLUDES.'header.php');

    // ideeos.de - Google Analytics e-Commerce Tracking
    // $orders_query = xtc_db_query("select orders_id, orders_status
    $orders_query = xtc_db_query("select orders_id, orders_status, customers_city, customers_state, customers_country
                                  from "
    .TABLE_ORDERS."
                                  where customers_id = '"
    .$_SESSION['customer_id']."'
                                  order by orders_id desc limit 1"
    );
    $orders = xtc_db_fetch_array($orders_query);
    $last_order = $orders['orders_id'];
    $order_status = $orders['orders_status'];

    //BOF  - web28 - 2010-03-27 PayPal Bezahl-Link
    if (isset($_SESSION['paypal_link']) && MODULE_PAYMENT_PAYPAL_IPN_USE_CHECKOUT == 'True') {
            $smarty->assign('PAYPAL_LINK',$_SESSION['paypal_link']);
        unset ($_SESSION['paypal_link']);          
    }    
    //EOF  - web28 - 2010-03-27 PayPal Bezahl-Link

    // BOF - GTB - 2011-04-12 - changes for Guest Account
    // $smarty->assign('FORM_ACTION', xtc_draw_form('order', xtc_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')));
    $smarty->assign('FORM_ACTION', xtc_draw_form('order', xtc_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')).xtc_draw_hidden_field('account_type', $_SESSION['account_type']));
    // EOF - GTB - 2011-04-12 - changes for Guest Account
    //BOF - Dokuman - 2009-11-23 - Make the print preview clickable, i.e. change mouse cursor to hand symbol
    $smarty->assign('BUTTON_CONTINUE', xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
    //$smarty->assign('BUTTON_PRINT', '<img src="'.'templates/'.CURRENT_TEMPLATE.'/buttons/'.$_SESSION['language'].'/button_print.gif" style="cursor:pointer" onclick="window.open(\''.xtc_href_link(FILENAME_PRINT_ORDER, 'oID='.$orders['orders_id']).'\', \'popup\', \'toolbar=0, width=640, height=600\')" />');
    //BOF - Tomcraft - 2010-04-03 - unified popups with scrollbars and make them resizable
    //$smarty->assign('BUTTON_PRINT', '<a style="cursor:pointer" onclick="javascript:window.open(\''.xtc_href_link(FILENAME_PRINT_ORDER, 'oID='.$orders['orders_id']).'\', \'popup\', \'toolbar=0, width=640, height=600\')"><img src="'.'templates/'.CURRENT_TEMPLATE.'/buttons/'.$_SESSION['language'].'/button_print.gif" alt="'.TEXT_PRINT.'" /></a>');
    //BOF - GTB - 2010-09-15 - change Print Button to Form for Guests
    //$smarty->assign('BUTTON_PRINT', '<a style="cursor:pointer" onclick="javascript:window.open(\''.xtc_href_link(FILENAME_PRINT_ORDER, 'oID='.$orders['orders_id']).'\', \'popup\', \'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no, width=640, height=600\')"><img src="'.'templates/'.CURRENT_TEMPLATE.'/buttons/'.$_SESSION['language'].'/button_print.gif" alt="'.TEXT_PRINT.'" /></a>');
    $smarty->assign('FORM_ACTION_PRINT', xtc_draw_form('print_order', xtc_href_link(FILENAME_PRINT_ORDER, 'oID='.$orders['orders_id'], 'SSL'), 'post', 'target="popup" onsubmit="javascript:window.open(\''.xtc_href_link(FILENAME_PRINT_ORDER, 'oID='.$orders['orders_id'], 'SSL').'\', \'popup\', \'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no, width=640, height=600\')"').xtc_draw_hidden_field('customer_id', $_SESSION['customer_id']));
    $smarty->assign('BUTTON_PRINT', xtc_image_submit('print.gif', TEXT_PRINT));
    //EOF - GTB - 2010-09-15 - change Print Button to Form for Guests
    //EOF - Tomcraft - 2010-04-03 - unified popups with scrollbars and make them resizable
    //EOF - Dokuman - 2009-11-23 - Make the print preview clickable, i.e. change mouse cursor to hand symbol

    $smarty->assign('FORM_END', '</form>');

    // ideeos.de - Google Analytics e-Commerce Tracking
    $smarty->assign('oID',$last_order);
    $smarty->assign('CITY',$orders['customers_city']);
    $smarty->assign('STATE',$orders['customers_state']);
    $smarty->assign('COUNTRY',$orders['customers_country']);
    $orders_total_shipping_query = xtc_db_query("select value from ".TABLE_ORDERS_TOTAL." where orders_id = '".$last_order."' and class='ot_shipping'");
    $orders_total_shipping = xtc_db_fetch_array($orders_total_shipping_query);
    $smarty->assign('SHIPPING',$orders_total_shipping['value']);
    $orders_total_tax_query = xtc_db_query("select value from ".TABLE_ORDERS_TOTAL." where orders_id = '".$last_order."' and class='ot_tax'");
    $orders_total_tax = xtc_db_fetch_array($orders_total_tax_query);
    $smarty->assign('TAX',$orders_total_tax['value']);
    $orders_total_query = xtc_db_query("select value from ".TABLE_ORDERS_TOTAL." where orders_id = '".$last_order."' and class='ot_total'");
    $orders_total = xtc_db_fetch_array($orders_total_query);
    $smarty->assign('VALUE',$orders_total['value']);
    $order_query = xtc_db_query("SELECT categories_name, p.products_id, orders_products_id, products_model, products_name, products_price, products_quantity
                                                            FROM "
    .TABLE_ORDERS_PRODUCTS." p, ".TABLE_PRODUCTS_TO_CATEGORIES." ptc, ".TABLE_CATEGORIES_DESCRIPTION." cd
                                                            WHERE p.products_id = ptc.products_id AND ptc.categories_id = cd.categories_id AND cd.language_id = 2 AND orders_id='"
    .$last_order."'
                                                            GROUP BY p.products_id"
    );
    $order_data = array ();
    while ($order_data_values = xtc_db_fetch_array($order_query)) {
            $order_data[] = array ('PRODUCTS_MODEL' => $order_data_values['products_id'],
            'PRODUCTS_NAME' => $order_data_values['products_name'],
            'CAT' => $order_data_values['categories_name'],
            'PRODUCTS_SINGLE_PRICE' => $order_data_values['products_price'],
            'PRODUCTS_QTY' => $order_data_values['products_quantity']);
    }
    $smarty->assign('order_data', $order_data);
    // ideeos.de - Google Analytics e-Commerce Tracking Ende

    // GV Code Start
    $gv_query = xtc_db_query("select amount from ".TABLE_COUPON_GV_CUSTOMER." where customer_id='".$_SESSION['customer_id']."'");
    if ($gv_result = xtc_db_fetch_array($gv_query)) {
            if ($gv_result['amount'] > 0) {
                    $smarty->assign('GV_SEND_LINK', xtc_href_link(FILENAME_GV_SEND));
            }
    }
    // GV Code End
    // Google Conversion tracking
    if (GOOGLE_CONVERSION == 'true') {

            $smarty->assign('google_tracking', 'true');
            $smarty->assign('tracking_code', '
                    <noscript>
                    <a href="http://services.google.com/sitestats/'
    .GOOGLE_LANG.'.html" onclick="window.open(this.href); return false;">
                    <img height=27 width=135 border=0 src="http://www.googleadservices.com/pagead/conversion/'
    .GOOGLE_CONVERSION_ID.'/?hl='.GOOGLE_LANG.'" />
                    </a>
                    </noscript>
                        '
    );
    }

    if (DOWNLOAD_ENABLED == 'true') {
            include (DIR_WS_MODULES.'downloads.php');
    }

    //BOF - DokuMan - 2010-05-20 - Move guest deletion from logoff to checkout_success
    //delete Guests from Database  
    if (($_SESSION['account_type'] == 1) && (DELETE_GUEST_ACCOUNT == 'true')) {
       xtc_db_query("DELETE FROM ".TABLE_CUSTOMERS." WHERE customers_id = '".$_SESSION['customer_id']."'");
       xtc_db_query("DELETE FROM ".TABLE_ADDRESS_BOOK." WHERE customers_id = '".$_SESSION['customer_id']."'");
       xtc_db_query("DELETE FROM ".TABLE_CUSTOMERS_INFO." WHERE customers_info_id = '".$_SESSION['customer_id']."'");
       xtc_session_destroy();
       unset ($_SESSION['customer_id']);
       unset ($_SESSION['customer_default_address_id']);
       unset ($_SESSION['customer_first_name']);
       unset ($_SESSION['customer_country_id']);
       unset ($_SESSION['customer_zone_id']);
       unset ($_SESSION['comments']);
       unset ($_SESSION['user_info']);
       unset ($_SESSION['customers_status']);
       unset ($_SESSION['selected_box']);
       unset ($_SESSION['navigation']);
       unset ($_SESSION['shipping']);
       unset ($_SESSION['payment']);
       unset ($_SESSION['ccard']);
       unset ($_SESSION['gv_id']);
       unset ($_SESSION['cc_id']);
       require (DIR_WS_INCLUDES.'write_customers_status.php');
    }
    //EOF - DokuMan - 2010-05-20 - Move guest deletion from logoff to checkout_success

    $smarty->assign('language', $_SESSION['language']);
    //BOF - DokuMan - 2010-08-31 - PAYMENT_BLOCK not needed in checkout success
    //$smarty->assign('PAYMENT_BLOCK', $payment_block);
    //EOF - DokuMan - 2010-08-31 - PAYMENT_BLOCK not needed in checkout success
    $main_content = $smarty->fetch(CURRENT_TEMPLATE.'/module/checkout_success.html');
    // BOF - Tomcraft - 2009-11-28 - Included xs:booster
    //$smarty->assign('main_content', $main_content);
    $smarty->assign('main_content', $main_content.(isset($_SESSION['xtb2'])?"<div style=\"text-align:center;padding:3px;margin-top:10px;font-weight:bold;\"><a style=\"text-decoration:underline;color:blue;\" href=\"./xtbcallback.php?reverse=true\">Zur&uuml;ck zur xs:booster Auktions&uuml;bersicht..</a></div>":""));
    // EOF - Tomcraft - 2009-11-28 - Included xs:booster
    $smarty->caching = 0;
    if (!defined('RM'))
            $smarty->load_filter('output', 'note');
    $smarty->display(CURRENT_TEMPLATE.'/index.html');
    include ('includes/application_bottom.php');
    ?>

    Grüße

    Tȟatȟáŋka Íyotake

    • Schreiberling
    • Beiträge: 332
    Lösung für das Anzeigen der Druckansicht war bei mir in der checkout_success.html und schon einmal im Forum diskutiert:

    http://www.modified-shop.org/forum/index.php?topic=15877.0

    Grüße, Markkk

    jannemann

    • modified Team
    • Beiträge: 6.275
    • Geschlecht:
    Hallo Markkk,

    hast du dein Problem jetzt gelöst?

    Schöne Grüße,
    Jan
    10 Antworten
    4722 Aufrufe
    03. August 2013, 12:41:10 von naitCON
    2 Antworten
    3294 Aufrufe
    03. September 2010, 12:39:11 von DokuMan
    12 Antworten
    8329 Aufrufe
    11. August 2010, 23:26:03 von Tomcraft
               
    anything