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: Produktbilder in checkout_confirmation ???

    sb_cbo-do

    • Fördermitglied
    • Beiträge: 464
    Re: Produktbilder in checkout_confirmation ???
    Antwort #15 am: 12. Juli 2012, 16:10:36
    Es hat sich schon erledigt. Ich habe es schon selber hinbekommen.

    Hallo,

    ich bin hier nicht ganz richtig, da wir XTC 3 benutzen. Vielleicht kann mir doch jemand helfen.
    Ich habe den 2. Code von Konfusion eingefügt. Es hat auch funktioniert nur leider wird bei XTC nicht die Überschrift für die Spalten (Menge / Artikel / Einzelpreis / Preis) nicht angezeigt.
    Kann mir jemand sagen, wo ich etwas ändern muss, damit es angezeigt wird.

    Danke schon mal.

    versand-richter

    • Frisch an Board
    • Beiträge: 82
    • Geschlecht:
    Re: Produktbilder in checkout_confirmation ???
    Antwort #16 am: 16. Juli 2012, 15:18:35
    Hallo,

    habe wie zu vor beschrieben, folgendes in checkout_confirmation eingefügt, und zwar bei mir in Zeile 173 - 222.

    Leider werden die Foto nicht angezeigt auf der letzten Seite, wo die Zusammenfassung der Bestellung für Kunde ist. Habe die Datei mal beigefügt. Wo liegt der Fehler ?

    Hier der gesamte Code:

    Code: PHP  [Auswählen]
    <?php

    /* -----------------------------------------------------------------------------------------
       $Id: checkout_confirmation.php 1277 2005-10-01 17:02:59Z mz $

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

       Copyright (c) 2003 XT-Commerce
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(checkout_confirmation.php,v 1.137 2003/05/07); www.oscommerce.com
       (c) 2003         nextcommerce (checkout_confirmation.php,v 1.21 2003/08/17); www.nextcommerce.org

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

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

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

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


    include ('includes/application_top.php');
    // create smarty elements
    $smarty = new Smarty;
    // include boxes
    require (DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php');
    // include needed functions
    require_once (DIR_FS_INC . 'xtc_calculate_tax.inc.php');
    require_once (DIR_FS_INC . 'xtc_check_stock.inc.php');
    require_once (DIR_FS_INC . 'xtc_display_tax_value.inc.php');
    require_once (DIR_FS_INC . 'xtc_get_products_image.inc.php');

    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    require (DIR_WS_LANGUAGES.$_SESSION['language'].'/checkout_confirmation.php');
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    // if the customer is not logged on, redirect them to the login page


    if (!isset ($_SESSION['customer_id']))
            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));

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

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

    //check if display conditions on checkout page is true

    if (isset ($_POST['payment']))
            $_SESSION['payment'] = xtc_db_prepare_input($_POST['payment']);

    if ($_POST['comments_added'] != '')
            $_SESSION['comments'] = xtc_db_prepare_input($_POST['comments']);

    //-- TheMedia Begin check if display conditions on checkout page is true
    if (isset ($_POST['cot_gv']))
            $_SESSION['cot_gv'] = true;
    // if conditions are not accepted, redirect the customer to the payment method selection page

    if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {
            if ($_POST['conditions'] == false) {
                    $error = str_replace('\n', '<br />', ERROR_CONDITIONS_NOT_ACCEPTED);
                    xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode($error), 'SSL', true, false));
            }
    }

    // load the selected payment module
    require (DIR_WS_CLASSES . 'payment.php');
    if (isset ($_SESSION['credit_covers']))
            $_SESSION['payment'] = 'no_payment'; // GV Code Start/End ICW added for CREDIT CLASS
    $payment_modules = new payment($_SESSION['payment']);

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

    $payment_modules->update_status();

    // GV Code Start
    $order_total_modules = new order_total();
    $order_total_modules->collect_posts();
    $order_total_modules->pre_confirmation_check();
    // GV Code End

    // GV Code line changed
    if ((is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && (!is_object($$_SESSION['payment'])) && (!isset ($_SESSION['credit_covers']))) || (is_object($$_SESSION['payment']) && ($$_SESSION['payment']->enabled == false))) {
            xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL'));
    }

    if (is_array($payment_modules->modules))
            $payment_modules->pre_confirmation_check();

    // load the selected shipping module
    require (DIR_WS_CLASSES . 'shipping.php');
    $shipping_modules = new shipping($_SESSION['shipping']);

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

    $breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT_CONFIRMATION, xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    $breadcrumb->add(NAVBAR_TITLE_2_CHECKOUT_CONFIRMATION);

    require (DIR_WS_INCLUDES . 'header.php');
    if (SHOW_IP_LOG == 'true') {
            $smarty->assign('IP_LOG', 'true');
            if ($_SERVER["HTTP_X_FORWARDED_FOR"]) {
                    $customers_ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
            } else {
                    $customers_ip = $_SERVER["REMOTE_ADDR"];
            }
            $smarty->assign('CUSTOMERS_IP', $customers_ip);
    }
    $smarty->assign('DELIVERY_LABEL', xtc_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'));
    if ($_SESSION['credit_covers'] != '1') {
            $smarty->assign('BILLING_LABEL', xtc_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'));
    }
    $smarty->assign('PRODUCTS_EDIT', xtc_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL')); // web28 - 2011-04-14 - change SSL -> NONSSL
    $smarty->assign('SHIPPING_ADDRESS_EDIT', xtc_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL'));
    $smarty->assign('BILLING_ADDRESS_EDIT', xtc_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));

    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 {

    }
    /*

    //BOF - 2009-06-05 - replace table with div
    $data_products = "\n".
    ' <table width="100%" border="0" cellspacing="0" cellpadding="0">';
    // products table header TR
    if (file_exists(DIR_WS_LANGUAGES.$_SESSION['language'].'/checkout_confirmation.php')) {
            $data_products.= "\n".
            '  <tr>'."\n".
            '   <td class="main_header" align="left" valign="top"><b>'.HEADER_QTY.'</b></td>'."\n".
            '   <td class="main_header" align="left" valign="top" colspan="2"><b>'.HEADER_ARTICLE.'</b></td>'."\n".
            '   <td class="main_header" align="right" valign="top"><b>'.HEADER_SINGLE.'</b></td>'."\n".
            '   <td class="main_header" align="right" valign="top"><b>'.HEADER_TOTAL.'</b></td>'."\n".
            '  </tr>';
    }
    // products TR for each product in cart
    for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
            $data_products .= "\n".
            '  <tr>'."\n".
            '   <td class="main_row" align="left" valign="top">'.$order->products[$i]['qty'].' x</td>'."\n".
            '   <td class="main_row" align="left" valign="top" width="90"><img src="'.DIR_WS_THUMBNAIL_IMAGES.xtc_get_products_image($order->products[$i]['id']).'" /></td>'."\n".
            '   <td class="main_row" align="left" valign="top">'.$order->products[$i]['name'];
            // selected attributes for each product
            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 .= "\n".
                            '    <br /><br />'."\n".
                            '    <nobr><small>&nbsp;<i> - '.$order->products[$i]['attributes'][$j]['option'].': '.$order->products[$i]['attributes'][$j]['value'].'</i></small></nobr>';
                    }
            }
            $data_products .= '</td>'."\n".
            '   <td class="main_row" align="right" valign="top">'.$xtPrice->xtcFormat($order->products[$i]['price'], true).'</td>'."\n".
            '   <td class="main_row" align="right" valign="top">'.$xtPrice->xtcFormat($order->products[$i]['final_price'], true).'</td>'."\n".
            '  </tr>';
            // shipping information for each product
            if (ACTIVATE_SHIPPING_STATUS == true) {
                    $data_products .= "\n".
                    '  <tr>'."\n".
                    '   <td class="main" align="left" valign="top">&nbsp;</td>'."\n".
                    '   <td class="main" align="left" valign="top" colspan="4"><nobr><small>'.SHIPPING_TIME.$order->products[$i]['shipping_time'].'</small></nobr></td>'."\n".
                    '  </tr>';
            }
            // tax TR
            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 .= "\n".
                            '  <tr>'."\n".
                            '   <td class="main" valign="top" align="right">'.xtc_display_tax_value($order->products[$i]['tax']).'%</td>'."\n".
                            '  </tr>';
            }
            $data_products .= "\n";
    }
    $data_products .= ' </table>';

                            */

                            //EOF - 2009-06-05 - replace table with div
                    //}


            //BOF - 2009-07-21 - remove Changes div to table //  Christian

    $data_products = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    if (file_exists(DIR_WS_LANGUAGES.$_SESSION['language'].'/checkout_confirmation.php')) {
            $data_products.= '<tr>' . "\n" . '  <td class="main_header" align="left" valign="top"><b>' . HEADER_QTY . '</b></td>'
                                                            . "\n" . '  <td class="main_header" align="left" valign="top"><b>' . HEADER_ARTICLE . '</b></td>'
                                                            . "\n" . '  <td class="main_header" align="right" valign="top"><b>' . HEADER_SINGLE . '</b></td>'
                                                            . "\n" . '  <td class="main_header" align="right" valign="top"><b>' . HEADER_TOTAL . '</b></td>
                                             </tr>'
    . "\n";
    }
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {

    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    //        $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";
            $data_products .= '<tr>' . "\n" . '  <td class="main_row" align="left" valign="top">' . $order->products[$i]['qty'] . ' x ' . '</td>'
                                                             . "\n" . '  <td class="main_row" align="left" valign="top">' . $order->products[$i]['name'] . '</td>'
                                                             . "\n"        . '  <td class="main_row" align="right" valign="top">' . $xtPrice->xtcFormat($order->products[$i]['price'], true) . '</td>'
                                                             . "\n"        . '  <td class="main_row" align="right" valign="top">' . $xtPrice->xtcFormat($order->products[$i]['final_price'], true) . '</td>
                                               </tr>'
    . "\n";
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    $data_products .= '<tr>
                  <td class="main" align="left" valign="top">&nbsp;</td>
                  <td class="main" align="left" valign="top"><small>'
    . (!empty($order->products[$i]['short_description'])?trim(strip_tags($order->products[$i]['short_description'])):trim(substr(strip_tags($order->products[$i]['description']),0,300))). ' [...]' . '</small></td>
                  <td class="main" align="right" valign="top">&nbsp;</td>
                  <td class="main" align="right" valign="top">&nbsp;</td>
                  </tr>'
    ;
            if (ACTIVATE_SHIPPING_STATUS == 'true') {

    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    /*
                    $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>';
    */

                    $data_products .= '<tr>
                                                            <td class="main" align="left" valign="top">&nbsp;</td>
                                                            <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>
                                                            <td class="main" align="right" valign="top">&nbsp;</td>
                                                            </tr>'
    ;
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation

            }
            if ((isset ($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0)) {
                    for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    /*
                            $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 .= '<tr>
                                                <td class="main" align="left" valign="top">&nbsp;</td>
                                                                    <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>
                                                                    <td class="main" align="right" valign="top">&nbsp;</td></tr>'
    ;
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
                    }
            }

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

    if ($order->info['payment_method'] != 'no_payment' && $order->info['payment_method'] != '') {
            include (DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php');
            $smarty->assign('PAYMENT_METHOD', constant(MODULE_PAYMENT_ . strtoupper($order->info['payment_method']) . _TEXT_TITLE));
    }
    $smarty->assign('PAYMENT_EDIT', xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

    $total_block = '<table align="right">';
    if (MODULE_ORDER_TOTAL_INSTALLED) {
            $order_total_modules->process();
            $total_block .= $order_total_modules->output();
    }
    $total_block .= '</table><div style="clear:both"></div>';
    $smarty->assign('TOTAL_BLOCK', $total_block);

    if (is_array($payment_modules->modules)) {
            if ($confirmation = $payment_modules->confirmation()) {

                    $payment_info = $confirmation['title'];
                    for ($i = 0, $n = sizeof($confirmation['fields']); $i < $n; $i++) {

                            $payment_info .= '<table>
                                                                    <tr>
                                                                    <td>'
    . xtc_draw_separator('pixel_trans.gif', '10', '1') . '</td>
                                                                    <td class="main">'
    . $confirmation['fields'][$i]['title'] . '</td>
                                                                    <td>'
    . xtc_draw_separator('pixel_trans.gif', '10', '1') . '</td>
                                                                    <td class="main">'
    . stripslashes($confirmation['fields'][$i]['field']) . '</td>
                                                                  </tr></table>'
    ;

                    }
                    $smarty->assign('PAYMENT_INFORMATION', $payment_info);

            }
    }

    if (xtc_not_null($order->info['comments'])) {
            $smarty->assign('ORDER_COMMENTS', nl2br(htmlspecialchars($order->info['comments'])) . xtc_draw_hidden_field('comments', $order->info['comments']));

    }

    if (isset ($$_SESSION['payment']->form_action_url) && !$$_SESSION['payment']->tmpOrders) {

            $form_action_url = $$_SESSION['payment']->form_action_url;

    } else {
            $form_action_url = xtc_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
    }
    $smarty->assign('CHECKOUT_FORM', xtc_draw_form('checkout_confirmation', $form_action_url, 'post'));
    $payment_button = '';
    if (is_array($payment_modules->modules)) {
            $payment_button .= $payment_modules->process_button();
    }
    $smarty->assign('MODULE_BUTTONS', $payment_button);
    $smarty->assign('CHECKOUT_BUTTON', xtc_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "\n");

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

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

            $shop_content_query = "SELECT
                                                                    content_title,
                                                                    content_heading,
                                                                    content_text,
                                                                    content_file
                                                                    FROM "
    . TABLE_CONTENT_MANAGER . "
                                                                    WHERE content_group='"
    . REVOCATION_ID . "' " . $group_check . "
                                                                    AND languages_id='"
    . $_SESSION['languages_id'] . "'";

            $shop_content_query = xtc_db_query($shop_content_query);
            $shop_content_data = xtc_db_fetch_array($shop_content_query);

            if ($shop_content_data['content_file'] != '') {
                    ob_start();
                    if (strpos($shop_content_data['content_file'], '.txt'))
                            echo '<pre>';
                    include (DIR_FS_CATALOG . 'media/content/' . $shop_content_data['content_file']);
                    if (strpos($shop_content_data['content_file'], '.txt'))
                            echo '</pre>';
                    $revocation = ob_get_contents();
                    ob_end_clean();
            } else {
                    $revocation = $shop_content_data['content_text'];
            }

            $smarty->assign('REVOCATION', $revocation);
            $smarty->assign('REVOCATION_TITLE', $shop_content_data['content_heading']);
            //BOF - Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink
            //$smarty->assign('REVOCATION_LINK', $main->getContentLink(REVOCATION_ID, MORE_INFO));
            $smarty->assign('REVOCATION_LINK', $main->getContentLink(REVOCATION_ID, MORE_INFO,'SSL'));
            //EOF - Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink

            $shop_content_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_query = xtc_db_query($shop_content_query);
            $shop_content_data = xtc_db_fetch_array($shop_content_query);

            $smarty->assign('AGB_TITLE', $shop_content_data['content_heading']);
      //BOF - Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink
            //$smarty->assign('AGB_LINK', $main->getContentLink(3, MORE_INFO));
            $smarty->assign('AGB_LINK', $main->getContentLink(3, MORE_INFO,'SSL'));
      //EOF - Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink
    }

    $smarty->assign('language', $_SESSION['language']);
    $smarty->assign('PAYMENT_BLOCK', $payment_block);
    $smarty->caching = 0;
    $main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/checkout_confirmation.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');
    ?>

    cannewitz

    • Mitglied
    • Beiträge: 168
    • Geschlecht:
    Re: Produktbilder in checkout_confirmation ???
    Antwort #17 am: 17. Juli 2012, 06:43:02
    Hallo ...

    da ich zu faul bin zu vergleichen, hier der betreffende Code wie er in modified1.5 funktioniert:
    Code: PHP  [Auswählen]
        $data_products = "\n".
        ' <table width="100%" border="0" cellspacing="0" cellpadding="0">';
        // products table header TR
        if (file_exists(DIR_WS_LANGUAGES.$_SESSION['language'].'/checkout_confirmation.php')) {
                $data_products.= "\n".
                '  <tr>'."\n".
                '   <td class="main_header" align="left" valign="top"><b>'.HEADER_QTY.'</b></td>'."\n".
                '   <td class="main_header" align="left" valign="top" colspan="2"><b>'.HEADER_ARTICLE.'</b></td>'."\n".
                '   <td class="main_header" align="right" valign="top"><b>'.HEADER_SINGLE.'</b></td>'."\n".
                '   <td class="main_header" align="right" valign="top"><b>'.HEADER_TOTAL.'</b></td>'."\n".
                '  </tr>';
        }
        // products TR for each product in cart
        for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
                $data_products .= "\n".
                '  <tr>'."\n".
                '   <td class="main_row" align="left" valign="top">'.$order->products[$i]['qty'].' x</td>'."\n".
                '   <td class="main_row" align="left" valign="top" width="90"><img src="'.DIR_WS_THUMBNAIL_IMAGES.xtc_get_products_image($order->products[$i]['id']).'" width="50" /></td>'."\n".
                '   <td class="main_row" align="left" valign="top">'.$order->products[$i]['name'];
                // shipping information for each product
                if (ACTIVATE_SHIPPING_STATUS == true) {
                        $data_products .= "\n".
                        '    <br />'."\n".
                        '    <nobr><small><b style="color:steelblue">'.SHIPPING_TIME.$order->products[$i]['shipping_time'].'</b></small></nobr>';
                }
                // selected attributes for each product
                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 .= "\n".
                                '    <br />'."\n".
                                '    <nobr><small>&nbsp;<i> - '.$order->products[$i]['attributes'][$j]['option'].': '.$order->products[$i]['attributes'][$j]['value'].'</i></small></nobr>';
                        }
                }
                $data_products .= '</td>'."\n".
                '   <td class="main_row" align="right" valign="top">'.$xtPrice->xtcFormat($order->products[$i]['price'], true).'</td>'."\n".
                '   <td class="main_row" align="right" valign="top">'.$xtPrice->xtcFormat($order->products[$i]['final_price'], true).'</td>'."\n".
                '  </tr>';
                            // Produktbeschreibung
                                $data_products .= '<tr>
                  <td class="main_row_text" align="left" valign="top"  colspan="5"><small>'
    . (!empty($order->products[$i]['short_description'])?$order->products[$i]['short_description']:$order->products[$i]['description']). '</small></td>
                  </tr>'
    ;
                           
                           
                // tax TR

    Besten Gruß nach Grimma  ;-)

    PS: Der Code ab Zeile 170 bis 224 ist "ausgeklammert" mit /* */ wird also nicht berücksichtigt ...

    versand-richter

    • Frisch an Board
    • Beiträge: 82
    • Geschlecht:
    Re: Produktbilder in checkout_confirmation ???
    Antwort #18 am: 17. Juli 2012, 10:28:46
    @: cannewitz:
    vielen lieben Dank, nur leider kommt nun folgende Fehlermeldung:

    Parse error: syntax error, unexpected $end in /www/htdocs/w007e044/pwug24stunden/checkout_confirmation.php on line 425

    In Zeile 425 steht nur folgendes Zeichen (siehe oben) ?>

    Schätze da fehlt noch irgendein Ausführungszeichen oder dergleichen ? Habe nur leider überhaupt gar keine Htlm-Kenntnisse???

    WayneTsun

    • Fördermitglied
    • Beiträge: 1.082
    • Geschlecht:
    Re: Produktbilder in checkout_confirmation ???
    Antwort #19 am: 17. Juli 2012, 11:12:07
    Sieht so aus, als wenn einfach eine Klammer fehlt. Das sagt zumindest die Fehlermeldung. Ich denke hier die schließende nach dem ganzen Code von cannewitz:

    Code: PHP  [Auswählen]
    // Produktbeschreibung
                                $data_products .= '<tr>
                 <td class="main_row_text" align="left" valign="top"  colspan="5"><small>'
    . (!empty($order->products[$i]['short_description'])?$order->products[$i]['short_description']:$order->products[$i]['description']). '</small></td>
                 </tr>'
    ;
    }

    Beste Grüße,
    Wayne

    versand-richter

    • Frisch an Board
    • Beiträge: 82
    • Geschlecht:
    Re: Produktbilder in checkout_confirmation ???
    Antwort #20 am: 17. Juli 2012, 11:31:18
    oh je ich bin am Verzweifeln.  :’-(

    Die Fehleranzeige ist nun weg, nachdem ich die Klammer gesetzt habe, ABER die Fotos werden immer noch nicht angzeigt, hier nochmals der gesamte Code:

    Code: PHP  [Auswählen]
    [code=php]<?php

    /* -----------------------------------------------------------------------------------------
       $Id: checkout_confirmation.php 1277 2005-10-01 17:02:59Z mz $

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

       Copyright (c) 2003 XT-Commerce
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(checkout_confirmation.php,v 1.137 2003/05/07); www.oscommerce.com
       (c) 2003         nextcommerce (checkout_confirmation.php,v 1.21 2003/08/17); www.nextcommerce.org

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

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

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

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


    include ('includes/application_top.php');
    // create smarty elements
    $smarty = new Smarty;
    // include boxes
    require (DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php');
    // include needed functions
    require_once (DIR_FS_INC . 'xtc_calculate_tax.inc.php');
    require_once (DIR_FS_INC . 'xtc_check_stock.inc.php');
    require_once (DIR_FS_INC . 'xtc_display_tax_value.inc.php');
    require_once (DIR_FS_INC . 'xtc_get_products_image.inc.php');

    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    require (DIR_WS_LANGUAGES.$_SESSION['language'].'/checkout_confirmation.php');
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    // if the customer is not logged on, redirect them to the login page

    if (!isset ($_SESSION['customer_id']))
            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));

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

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

    //check if display conditions on checkout page is true

    if (isset ($_POST['payment']))
            $_SESSION['payment'] = xtc_db_prepare_input($_POST['payment']);

    if ($_POST['comments_added'] != '')
            $_SESSION['comments'] = xtc_db_prepare_input($_POST['comments']);

    //-- TheMedia Begin check if display conditions on checkout page is true
    if (isset ($_POST['cot_gv']))
            $_SESSION['cot_gv'] = true;
    // if conditions are not accepted, redirect the customer to the payment method selection page

    if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {
            if ($_POST['conditions'] == false) {
                    $error = str_replace('\n', '<br />', ERROR_CONDITIONS_NOT_ACCEPTED);
                    xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode($error), 'SSL', true, false));
            }
    }

    // load the selected payment module
    require (DIR_WS_CLASSES . 'payment.php');
    if (isset ($_SESSION['credit_covers']))
            $_SESSION['payment'] = 'no_payment'; // GV Code Start/End ICW added for CREDIT CLASS
    $payment_modules = new payment($_SESSION['payment']);

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

    $payment_modules->update_status();

    // GV Code Start
    $order_total_modules = new order_total();
    $order_total_modules->collect_posts();
    $order_total_modules->pre_confirmation_check();
    // GV Code End

    // GV Code line changed
    if ((is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && (!is_object($$_SESSION['payment'])) && (!isset ($_SESSION['credit_covers']))) || (is_object($$_SESSION['payment']) && ($$_SESSION['payment']->enabled == false))) {
            xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL'));
    }

    if (is_array($payment_modules->modules))
            $payment_modules->pre_confirmation_check();

    // load the selected shipping module
    require (DIR_WS_CLASSES . 'shipping.php');
    $shipping_modules = new shipping($_SESSION['shipping']);

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

    $breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT_CONFIRMATION, xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    $breadcrumb->add(NAVBAR_TITLE_2_CHECKOUT_CONFIRMATION);

    require (DIR_WS_INCLUDES . 'header.php');
    if (SHOW_IP_LOG == 'true') {
            $smarty->assign('IP_LOG', 'true');
            if ($_SERVER["HTTP_X_FORWARDED_FOR"]) {
                    $customers_ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
            } else {
                    $customers_ip = $_SERVER["REMOTE_ADDR"];
            }
            $smarty->assign('CUSTOMERS_IP', $customers_ip);
    }
    $smarty->assign('DELIVERY_LABEL', xtc_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'));
    if ($_SESSION['credit_covers'] != '1') {
            $smarty->assign('BILLING_LABEL', xtc_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'));
    }
    $smarty->assign('PRODUCTS_EDIT', xtc_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL')); // web28 - 2011-04-14 - change SSL -> NONSSL
    $smarty->assign('SHIPPING_ADDRESS_EDIT', xtc_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL'));
    $smarty->assign('BILLING_ADDRESS_EDIT', xtc_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));

    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 {

    }
    //BOF - 2009-06-05 - replace table with div
     $data_products = "\n".
        ' <table width="100%" border="0" cellspacing="0" cellpadding="0">';
        // products table header TR
        if (file_exists(DIR_WS_LANGUAGES.$_SESSION['language'].'/checkout_confirmation.php')) {
                $data_products.= "\n".
                '  <tr>'."\n".
                '   <td class="main_header" align="left" valign="top"><b>'.HEADER_QTY.'</b></td>'."\n".
                '   <td class="main_header" align="left" valign="top" colspan="2"><b>'.HEADER_ARTICLE.'</b></td>'."\n".
                '   <td class="main_header" align="right" valign="top"><b>'.HEADER_SINGLE.'</b></td>'."\n".
                '   <td class="main_header" align="right" valign="top"><b>'.HEADER_TOTAL.'</b></td>'."\n".
                '  </tr>';
        }
        // products TR for each product in cart
        for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
                $data_products .= "\n".
                '  <tr>'."\n".
                '   <td class="main_row" align="left" valign="top">'.$order->products[$i]['qty'].' x</td>'."\n".
                '   <td class="main_row" align="left" valign="top" width="90"><img src="'.DIR_WS_THUMBNAIL_IMAGES.xtc_get_products_image($order->products[$i]['id']).'" width="50" /></td>'."\n".
                '   <td class="main_row" align="left" valign="top">'.$order->products[$i]['name'];
                // shipping information for each product
                if (ACTIVATE_SHIPPING_STATUS == true) {
                        $data_products .= "\n".
                        '    <br />'."\n".
                        '    <nobr><small><b style="color:steelblue">'.SHIPPING_TIME.$order->products[$i]['shipping_time'].'</b></small></nobr>';
                }
                // selected attributes for each product
                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 .= "\n".
                                '    <br />'."\n".
                                '    <nobr><small>&nbsp;<i> - '.$order->products[$i]['attributes'][$j]['option'].': '.$order->products[$i]['attributes'][$j]['value'].'</i></small></nobr>';
                        }
                }
                $data_products .= '</td>'."\n".
                '   <td class="main_row" align="right" valign="top">'.$xtPrice->xtcFormat($order->products[$i]['price'], true).'</td>'."\n".
                '   <td class="main_row" align="right" valign="top">'.$xtPrice->xtcFormat($order->products[$i]['final_price'], true).'</td>'."\n".
                '  </tr>';
                            // Produktbeschreibung
                                $data_products .= '<tr>
                  <td class="main_row_text" align="left" valign="top"  colspan="5"><small>'
    . (!empty($order->products[$i]['short_description'])?$order->products[$i]['short_description']:$order->products[$i]['description']). '</small></td>
                  </tr>'
    ;
              }

                // tax TR

                            //EOF - 2009-06-05 - replace table with div
                    //}

            //BOF - 2009-07-21 - remove Changes div to table //  Christian

    $data_products = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    if (file_exists(DIR_WS_LANGUAGES.$_SESSION['language'].'/checkout_confirmation.php')) {
            $data_products.= '<tr>' . "\n" . '  <td class="main_header" align="left" valign="top"><b>' . HEADER_QTY . '</b></td>'
                                                            . "\n" . '  <td class="main_header" align="left" valign="top"><b>' . HEADER_ARTICLE . '</b></td>'
                                                            . "\n" . '  <td class="main_header" align="right" valign="top"><b>' . HEADER_SINGLE . '</b></td>'
                                                            . "\n" . '  <td class="main_header" align="right" valign="top"><b>' . HEADER_TOTAL . '</b></td>
                                             </tr>'
    . "\n";
    }
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {

    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    //        $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";
            $data_products .= '<tr>' . "\n" . '  <td class="main_row" align="left" valign="top">' . $order->products[$i]['qty'] . ' x ' . '</td>'
                                                             . "\n" . '  <td class="main_row" align="left" valign="top"><a target="_blank" href="' . xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($order->products[$i]['id'])) . '"> ' . $order->products[$i]['name'] . '</a></td>'
                                                             . "\n"        . '  <td class="main_row" align="right" valign="top">' . $xtPrice->xtcFormat($order->products[$i]['price'], true) . '</td>'
                                                             . "\n"        . '  <td class="main_row" align="right" valign="top">' . $xtPrice->xtcFormat($order->products[$i]['final_price'], true) . '</td>
                                               </tr>'
    . "\n";
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    $data_products .= '<tr>
                  <td class="main" align="left" valign="top">&nbsp;</td>
                  <td class="main" align="left" valign="top"><small>'
    . (!empty($order->products[$i]['short_description'])?trim(strip_tags($order->products[$i]['short_description'])):trim(substr(strip_tags($order->products[$i]['description']),0,300))). ' [...]' . '</small></td>
                  <td class="main" align="right" valign="top">&nbsp;</td>
                  <td class="main" align="right" valign="top">&nbsp;</td>
                  </tr>'
    ;
            if (ACTIVATE_SHIPPING_STATUS == 'true') {

    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    /*
                    $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>';
    */

                    $data_products .= '<tr>
                                                            <td class="main" align="left" valign="top">&nbsp;</td>
                                                            <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>
                                                            <td class="main" align="right" valign="top">&nbsp;</td>
                                                            </tr>'
    ;
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation

            }
            if ((isset ($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0)) {
                    for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    /*
                            $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 .= '<tr>
                                                <td class="main" align="left" valign="top">&nbsp;</td>
                                                                    <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>
                                                                    <td class="main" align="right" valign="top">&nbsp;</td></tr>'
    ;
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
                    }
            }

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

    if ($order->info['payment_method'] != 'no_payment' && $order->info['payment_method'] != '') {
            include (DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php');
            $smarty->assign('PAYMENT_METHOD', constant(MODULE_PAYMENT_ . strtoupper($order->info['payment_method']) . _TEXT_TITLE));
    }
    $smarty->assign('PAYMENT_EDIT', xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

    $total_block = '<table align="right">';
    if (MODULE_ORDER_TOTAL_INSTALLED) {
            $order_total_modules->process();
            $total_block .= $order_total_modules->output();
    }
    $total_block .= '</table><div style="clear:both"></div>';
    $smarty->assign('TOTAL_BLOCK', $total_block);

    if (is_array($payment_modules->modules)) {
            if ($confirmation = $payment_modules->confirmation()) {

                    $payment_info = $confirmation['title'];
                    for ($i = 0, $n = sizeof($confirmation['fields']); $i < $n; $i++) {

                            $payment_info .= '<table>
                                                                    <tr>
                                                                    <td>'
    . xtc_draw_separator('pixel_trans.gif', '10', '1') . '</td>
                                                                    <td class="main">'
    . $confirmation['fields'][$i]['title'] . '</td>
                                                                    <td>'
    . xtc_draw_separator('pixel_trans.gif', '10', '1') . '</td>
                                                                    <td class="main">'
    . stripslashes($confirmation['fields'][$i]['field']) . '</td>
                                                                  </tr></table>'
    ;

                    }
                    $smarty->assign('PAYMENT_INFORMATION', $payment_info);

            }
    }

    if (xtc_not_null($order->info['comments'])) {
            $smarty->assign('ORDER_COMMENTS', nl2br(htmlspecialchars($order->info['comments'])) . xtc_draw_hidden_field('comments', $order->info['comments']));

    }

    if (isset ($$_SESSION['payment']->form_action_url) && !$$_SESSION['payment']->tmpOrders) {

            $form_action_url = $$_SESSION['payment']->form_action_url;

    } else {
            $form_action_url = xtc_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
    }
    $smarty->assign('CHECKOUT_FORM', xtc_draw_form('checkout_confirmation', $form_action_url, 'post'));
    $payment_button = '';
    if (is_array($payment_modules->modules)) {
            $payment_button .= $payment_modules->process_button();
    }
    $smarty->assign('MODULE_BUTTONS', $payment_button);
    $smarty->assign('CHECKOUT_BUTTON', xtc_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "\n");

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

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

            $shop_content_query = "SELECT
                                                                    content_title,
                                                                    content_heading,
                                                                    content_text,
                                                                    content_file
                                                                    FROM "
    . TABLE_CONTENT_MANAGER . "
                                                                    WHERE content_group='"
    . REVOCATION_ID . "' " . $group_check . "
                                                                    AND languages_id='"
    . $_SESSION['languages_id'] . "'";

            $shop_content_query = xtc_db_query($shop_content_query);
            $shop_content_data = xtc_db_fetch_array($shop_content_query);

            if ($shop_content_data['content_file'] != '') {
                    ob_start();
                    if (strpos($shop_content_data['content_file'], '.txt'))
                            echo '<pre>';
                    include (DIR_FS_CATALOG . 'media/content/' . $shop_content_data['content_file']);
                    if (strpos($shop_content_data['content_file'], '.txt'))
                            echo '</pre>';
                    $revocation = ob_get_contents();
                    ob_end_clean();
            } else {
                    $revocation = $shop_content_data['content_text'];
            }

            $smarty->assign('REVOCATION', $revocation);
            $smarty->assign('REVOCATION_TITLE', $shop_content_data['content_heading']);
            //BOF - Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink
            //$smarty->assign('REVOCATION_LINK', $main->getContentLink(REVOCATION_ID, MORE_INFO));
            $smarty->assign('REVOCATION_LINK', $main->getContentLink(REVOCATION_ID, MORE_INFO,'SSL'));
            //EOF - Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink

            $shop_content_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_query = xtc_db_query($shop_content_query);
            $shop_content_data = xtc_db_fetch_array($shop_content_query);

            $smarty->assign('AGB_TITLE', $shop_content_data['content_heading']);
      //BOF - Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink
            //$smarty->assign('AGB_LINK', $main->getContentLink(3, MORE_INFO));
            $smarty->assign('AGB_LINK', $main->getContentLink(3, MORE_INFO,'SSL'));
      //EOF - Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink
    }

    $smarty->assign('language', $_SESSION['language']);
    $smarty->assign('PAYMENT_BLOCK', $payment_block);
    $smarty->caching = 0;
    $main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/checkout_confirmation.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');
    ?>
     
    [/code]

    WayneTsun

    • Fördermitglied
    • Beiträge: 1.082
    • Geschlecht:
    Re: Produktbilder in checkout_confirmation ???
    Antwort #21 am: 17. Juli 2012, 13:21:24
    $Verzweifeln ist keine Option in diesem Shop. ;-)

    Obwohl das Teil nun ganz schön vergurkt ist.  :crazy:

    Du hast die Tabelle jetzt praktisch zweimal drin , weil Du die Kommentierung rausgenommen hast.

    Zitat
    PS: Der Code ab Zeile 170 bis 224 ist "ausgeklammert" mit /* */ wird also nicht berücksichtigt ...

    Die solltest Du wieder reingeben.

    Und dann die folgende Zeile einfügen:
    Code: PHP  [Auswählen]
    ."\n".
                '   <td class="main_row" align="left" valign="top" width="90"><img src="'.DIR_WS_THUMBNAIL_IMAGES.xtc_get_products_image($order->products[$i]['id']).'" width="50" /></td>'

    vor Deiner Zeile 235:
    Code: PHP  [Auswählen]
    . "\n" . '  <td class="main_row" align="left" valign="top"><a target="_blank" href="' . xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($order->products[$i]['id'])) . '"> ' . $order->products[$i]['name'] . '</a></td>'

    Wenn es jetzt nicht klappt, solltest Du nochmal mit der Originaldatei anfangen und die Änderungen step by step wieder einfügen.

    Beste Grüße,
    Wayne

    versand-richter

    • Frisch an Board
    • Beiträge: 82
    • Geschlecht:
    Re: Produktbilder in checkout_confirmation ???
    Antwort #22 am: 17. Juli 2012, 14:28:23
     :-B jup es hat geklappt, vielen vielen vielen Dank an alle, die mitgeholfen haben.

    rockmartin

    • Mitglied
    • Beiträge: 162
    • Geschlecht:
    Re: Produktbilder in checkout_confirmation ???
    Antwort #23 am: 17. Juli 2012, 15:58:43
    Könntest du den Kompletten Code mal bitte posten? Dankeschön ;-)

    versand-richter

    • Frisch an Board
    • Beiträge: 82
    • Geschlecht:
    Re: Produktbilder in checkout_confirmation ???
    Antwort #24 am: 17. Juli 2012, 18:51:14
    Ja gerne, allerdings habe ich es nicht vor Zeile 235 eingefügt, sondern in Zeile 248 und ohne Tabellen-Funktion direkt nach dem Artikel-Namen, welcher direkt zum Artikel verlinkt, weil [ Für Gäste sind keine Dateianhänge sichtbar ] sonst die gesamte Ansicht verschoben war.

    Nun muß ich nur noch den Button "Zahlungspflichtig bestellen" nach rechts verschieben?

    Code: PHP  [Auswählen]
    <?php

    /* -----------------------------------------------------------------------------------------
       $Id: checkout_confirmation.php 1277 2005-10-01 17:02:59Z mz $

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

       Copyright (c) 2003 XT-Commerce
       -----------------------------------------------------------------------------------------
       based on:
       (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
       (c) 2002-2003 osCommerce(checkout_confirmation.php,v 1.137 2003/05/07); www.oscommerce.com
       (c) 2003         nextcommerce (checkout_confirmation.php,v 1.21 2003/08/17); www.nextcommerce.org

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

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

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

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


    include ('includes/application_top.php');
    // create smarty elements
    $smarty = new Smarty;
    // include boxes
    require (DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/source/boxes.php');
    // include needed functions
    require_once (DIR_FS_INC . 'xtc_calculate_tax.inc.php');
    require_once (DIR_FS_INC . 'xtc_check_stock.inc.php');
    require_once (DIR_FS_INC . 'xtc_display_tax_value.inc.php');
    require_once (DIR_FS_INC . 'xtc_get_products_image.inc.php');

    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    require (DIR_WS_LANGUAGES.$_SESSION['language'].'/checkout_confirmation.php');
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    // if the customer is not logged on, redirect them to the login page


    if (!isset ($_SESSION['customer_id']))
            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));

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

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

    //check if display conditions on checkout page is true

    if (isset ($_POST['payment']))
            $_SESSION['payment'] = xtc_db_prepare_input($_POST['payment']);

    if ($_POST['comments_added'] != '')
            $_SESSION['comments'] = xtc_db_prepare_input($_POST['comments']);

    //-- TheMedia Begin check if display conditions on checkout page is true
    if (isset ($_POST['cot_gv']))
            $_SESSION['cot_gv'] = true;
    // if conditions are not accepted, redirect the customer to the payment method selection page

    if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {
            if ($_POST['conditions'] == false) {
                    $error = str_replace('\n', '<br />', ERROR_CONDITIONS_NOT_ACCEPTED);
                    xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode($error), 'SSL', true, false));
            }
    }

    // load the selected payment module
    require (DIR_WS_CLASSES . 'payment.php');
    if (isset ($_SESSION['credit_covers']))
            $_SESSION['payment'] = 'no_payment'; // GV Code Start/End ICW added for CREDIT CLASS
    $payment_modules = new payment($_SESSION['payment']);

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

    $payment_modules->update_status();

    // GV Code Start
    $order_total_modules = new order_total();
    $order_total_modules->collect_posts();
    $order_total_modules->pre_confirmation_check();
    // GV Code End

    // GV Code line changed
    if ((is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && (!is_object($$_SESSION['payment'])) && (!isset ($_SESSION['credit_covers']))) || (is_object($$_SESSION['payment']) && ($$_SESSION['payment']->enabled == false))) {
            xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_NO_PAYMENT_MODULE_SELECTED), 'SSL'));
    }

    if (is_array($payment_modules->modules))
            $payment_modules->pre_confirmation_check();

    // load the selected shipping module
    require (DIR_WS_CLASSES . 'shipping.php');
    $shipping_modules = new shipping($_SESSION['shipping']);

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

    $breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT_CONFIRMATION, xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    $breadcrumb->add(NAVBAR_TITLE_2_CHECKOUT_CONFIRMATION);

    require (DIR_WS_INCLUDES . 'header.php');
    if (SHOW_IP_LOG == 'true') {
            $smarty->assign('IP_LOG', 'true');
            if ($_SERVER["HTTP_X_FORWARDED_FOR"]) {
                    $customers_ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
            } else {
                    $customers_ip = $_SERVER["REMOTE_ADDR"];
            }
            $smarty->assign('CUSTOMERS_IP', $customers_ip);
    }
    $smarty->assign('DELIVERY_LABEL', xtc_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'));
    if ($_SESSION['credit_covers'] != '1') {
            $smarty->assign('BILLING_LABEL', xtc_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'));
    }
    $smarty->assign('PRODUCTS_EDIT', xtc_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL')); // web28 - 2011-04-14 - change SSL -> NONSSL
    $smarty->assign('SHIPPING_ADDRESS_EDIT', xtc_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL'));
    $smarty->assign('BILLING_ADDRESS_EDIT', xtc_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));

    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 {

    }
    /*
    //BOF - 2009-06-05 - replace table with div
    $data_products = "\n".
    ' <table width="100%" border="0" cellspacing="0" cellpadding="0">';
    // products table header TR
    if (file_exists(DIR_WS_LANGUAGES.$_SESSION['language'].'/checkout_confirmation.php')) {
            $data_products.= "\n".
            '  <tr>'."\n".
            '   <td class="main_header" align="left" valign="top"><b>'.HEADER_QTY.'</b></td>'."\n".
            '   <td class="main_header" align="left" valign="top" colspan="2"><b>'.HEADER_ARTICLE.'</b></td>'."\n".
            '   <td class="main_header" align="right" valign="top"><b>'.HEADER_SINGLE.'</b></td>'."\n".
            '   <td class="main_header" align="right" valign="top"><b>'.HEADER_TOTAL.'</b></td>'."\n".
            '  </tr>';
    }
    // products TR for each product in cart
    for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
            $data_products .= "\n".
            '  <tr>'."\n".
            '   <td class="main_row" align="left" valign="top">'.$order->products[$i]['qty'].' x</td>'."\n".
            '   <td class="main_row" align="left" valign="top" width="90"><img src="'.DIR_WS_THUMBNAIL_IMAGES.xtc_get_products_image($order->products[$i]['id']).'" /></td>'."\n".
            '   <td class="main_row" align="left" valign="top">'.$order->products[$i]['name'];
            // selected attributes for each product
            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 .= "\n".
                            '    <br /><br />'."\n".
                            '    <nobr><small>&nbsp;<i> - '.$order->products[$i]['attributes'][$j]['option'].': '.$order->products[$i]['attributes'][$j]['value'].'</i></small></nobr>';
                    }
            }
            $data_products .= '</td>'."\n".
            '   <td class="main_row" align="right" valign="top">'.$xtPrice->xtcFormat($order->products[$i]['price'], true).'</td>'."\n".
            '   <td class="main_row" align="right" valign="top">'.$xtPrice->xtcFormat($order->products[$i]['final_price'], true).'</td>'."\n".
            '  </tr>';
            // shipping information for each product
            if (ACTIVATE_SHIPPING_STATUS == true) {
                    $data_products .= "\n".
                    '  <tr>'."\n".
                    '   <td class="main" align="left" valign="top">&nbsp;</td>'."\n".
                    '   <td class="main" align="left" valign="top" colspan="4"><nobr><small>'.SHIPPING_TIME.$order->products[$i]['shipping_time'].'</small></nobr></td>'."\n".
                    '  </tr>';
            }
            // tax TR
            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 .= "\n".
                            '  <tr>'."\n".
                            '   <td class="main" valign="top" align="right">'.xtc_display_tax_value($order->products[$i]['tax']).'%</td>'."\n".
                            '  </tr>';
            }
            $data_products .= "\n";
    }
    $data_products .= ' </table>';

                            */

                            //EOF - 2009-06-05 - replace table with div
                    //}


            //BOF - 2009-07-21 - remove Changes div to table //  Christian

    $data_products = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    if (file_exists(DIR_WS_LANGUAGES.$_SESSION['language'].'/checkout_confirmation.php')) {
            $data_products.= '<tr>' . "\n" . '  <td class="main_header" align="left" valign="top"><b>' . HEADER_QTY . '</b></td>'
                                                            . "\n" . '  <td class="main_header" align="left" valign="top"><b>' . HEADER_ARTICLE . '</b></td>'
                                                            . "\n" . '  <td class="main_header" align="right" valign="top"><b>' . HEADER_SINGLE . '</b></td>'
                                                            . "\n" . '  <td class="main_header" align="right" valign="top"><b>' . HEADER_TOTAL . '</b></td>
                                             </tr>'
    . "\n";
    }
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {

    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    //        $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";
            $data_products .= '<tr>'

            . "\n" . '  <td class="main_row" align="left" valign="top">' . $order->products[$i]['qty'] . ' x ' . '</td>'

                                                             . "\n" . '  <td class="main_row" align="left" valign="top"><a target="_blank" href="' . xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($order->products[$i]['id'])) . '"> ' . $order->products[$i]['name'] . '</a> <img src="'.DIR_WS_THUMBNAIL_IMAGES.xtc_get_products_image($order->products[$i]['id']).'" width="50" />   </td>  </td>'
                                                             . "\n"        . '  <td class="main_row" align="right" valign="top">' . $xtPrice->xtcFormat($order->products[$i]['price'], true) . '</td>'
                                                             . "\n"        . '  <td class="main_row" align="right" valign="top">' . $xtPrice->xtcFormat($order->products[$i]['final_price'], true) . '</td>


                                               </tr>'
    . "\n";
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    $data_products .= '<tr>
                  <td class="main" align="left" valign="top">&nbsp;</td>
                  <td class="main" align="left" valign="top"><small>'
    . (!empty($order->products[$i]['short_description'])?trim(strip_tags($order->products[$i]['short_description'])):trim(substr(strip_tags($order->products[$i]['description']),0,300))). ' [...]' . '</small></td>
                  <td class="main" align="right" valign="top">&nbsp;</td>
                  <td class="main" align="right" valign="top">&nbsp;</td>
                  </tr>'
    ;
            if (ACTIVATE_SHIPPING_STATUS == 'true') {

    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    /*
                    $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>';
    */

                    $data_products .= '<tr>
                                                            <td class="main" align="left" valign="top">&nbsp;</td>
                                                            <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>
                                                            <td class="main" align="right" valign="top">&nbsp;</td>
                                                            </tr>'
    ;
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation

            }
            if ((isset ($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0)) {
                    for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
    // BOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
    /*
                            $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 .= '<tr>
                                                <td class="main" align="left" valign="top">&nbsp;</td>
                                                                    <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>
                                                                    <td class="main" align="right" valign="top">&nbsp;</td></tr>'
    ;
    // EOF - Tomcraft - 2009-10-02 - Include "Single Price" in checkout_confirmation
                    }
            }

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

    if ($order->info['payment_method'] != 'no_payment' && $order->info['payment_method'] != '') {
            include (DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php');
            $smarty->assign('PAYMENT_METHOD', constant(MODULE_PAYMENT_ . strtoupper($order->info['payment_method']) . _TEXT_TITLE));
    }
    $smarty->assign('PAYMENT_EDIT', xtc_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

    $total_block = '<table align="right">';
    if (MODULE_ORDER_TOTAL_INSTALLED) {
            $order_total_modules->process();
            $total_block .= $order_total_modules->output();
    }
    $total_block .= '</table><div style="clear:both"></div>';
    $smarty->assign('TOTAL_BLOCK', $total_block);

    if (is_array($payment_modules->modules)) {
            if ($confirmation = $payment_modules->confirmation()) {

                    $payment_info = $confirmation['title'];
                    for ($i = 0, $n = sizeof($confirmation['fields']); $i < $n; $i++) {

                            $payment_info .= '<table>
                                                                    <tr>
                                                                    <td>'
    . xtc_draw_separator('pixel_trans.gif', '10', '1') . '</td>
                                                                    <td class="main">'
    . $confirmation['fields'][$i]['title'] . '</td>
                                                                    <td>'
    . xtc_draw_separator('pixel_trans.gif', '10', '1') . '</td>
                                                                    <td class="main">'
    . stripslashes($confirmation['fields'][$i]['field']) . '</td>
                                                                  </tr></table>'
    ;

                    }
                    $smarty->assign('PAYMENT_INFORMATION', $payment_info);

            }
    }

    if (xtc_not_null($order->info['comments'])) {
            $smarty->assign('ORDER_COMMENTS', nl2br(htmlspecialchars($order->info['comments'])) . xtc_draw_hidden_field('comments', $order->info['comments']));

    }

    if (isset ($$_SESSION['payment']->form_action_url) && !$$_SESSION['payment']->tmpOrders) {

            $form_action_url = $$_SESSION['payment']->form_action_url;

    } else {
            $form_action_url = xtc_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
    }
    $smarty->assign('CHECKOUT_FORM', xtc_draw_form('checkout_confirmation', $form_action_url, 'post'));
    $payment_button = '';
    if (is_array($payment_modules->modules)) {
            $payment_button .= $payment_modules->process_button();
    }
    $smarty->assign('MODULE_BUTTONS', $payment_button);
    $smarty->assign('CHECKOUT_BUTTON', xtc_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "\n");

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

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

            $shop_content_query = "SELECT
                                                                    content_title,
                                                                    content_heading,
                                                                    content_text,
                                                                    content_file
                                                                    FROM "
    . TABLE_CONTENT_MANAGER . "
                                                                    WHERE content_group='"
    . REVOCATION_ID . "' " . $group_check . "
                                                                    AND languages_id='"
    . $_SESSION['languages_id'] . "'";

            $shop_content_query = xtc_db_query($shop_content_query);
            $shop_content_data = xtc_db_fetch_array($shop_content_query);

            if ($shop_content_data['content_file'] != '') {
                    ob_start();
                    if (strpos($shop_content_data['content_file'], '.txt'))
                            echo '<pre>';
                    include (DIR_FS_CATALOG . 'media/content/' . $shop_content_data['content_file']);
                    if (strpos($shop_content_data['content_file'], '.txt'))
                            echo '</pre>';
                    $revocation = ob_get_contents();
                    ob_end_clean();
            } else {
                    $revocation = $shop_content_data['content_text'];
            }

            $smarty->assign('REVOCATION', $revocation);
            $smarty->assign('REVOCATION_TITLE', $shop_content_data['content_heading']);
            //BOF - Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink
            //$smarty->assign('REVOCATION_LINK', $main->getContentLink(REVOCATION_ID, MORE_INFO));
            $smarty->assign('REVOCATION_LINK', $main->getContentLink(REVOCATION_ID, MORE_INFO,'SSL'));
            //EOF - Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink

            $shop_content_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_query = xtc_db_query($shop_content_query);
            $shop_content_data = xtc_db_fetch_array($shop_content_query);

            $smarty->assign('AGB_TITLE', $shop_content_data['content_heading']);
      //BOF - Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink
            //$smarty->assign('AGB_LINK', $main->getContentLink(3, MORE_INFO));
            $smarty->assign('AGB_LINK', $main->getContentLink(3, MORE_INFO,'SSL'));
      //EOF - Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink
    }

    $smarty->assign('language', $_SESSION['language']);
    $smarty->assign('PAYMENT_BLOCK', $payment_block);
    $smarty->caching = 0;
    $main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/checkout_confirmation.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');
    ?>

    mr.mc.mauser

    • Fördermitglied
    • Beiträge: 343
    • Geschlecht:
    Re: Produktbilder in checkout_confirmation ???
    Antwort #25 am: 17. Juli 2012, 19:05:13
    Den Button musst Du in der Templatedatei verschieben.
    Also templates/DinTemplate/module/checkout_confirmation.html
    in deinem Template zeile 53:
    Code: PHP  [Auswählen]
    <div>{$CHECKOUT_FORM}{if $MODULE_BUTTONS!=''}&nbsp;{$MODULE_BUTTONS}{/if}&nbsp;{$CHECKOUT_BUTTON}</div>
    Da musst du sagen das es auf die andere Seite soll

    Gruß
    Robert

    expanse

    • Frisch an Board
    • Beiträge: 62
    • Geschlecht:
    Re: Produktbilder in checkout_confirmation ???
    Antwort #26 am: 26. Juli 2012, 16:45:12
    Hallo, ich habe  mehr oder weniger genau das gleiche Problem :/ Ich hab so gut wie keine html Kenntnisse und bringe mir grade  recht viel selbst bei. Nun muss ich ein Shop zur Buttonlöung anpassen und habe bereits die Buttons ausgetauscht und dieses MausTool geändert.

    Habe das

      $data_products .= '<tr>
                  <td class="main" align="left" valign="top">&nbsp;</td>
                  <td class="main" align="left" valign="top"><small>' . (!empty($order->products[$i]['short_description'])?$order->products[$i]['short_description']:$order->products[$i]['description']). '</small></td>
                  <td class="main" align="right" valign="top">&nbsp;</td>
                  <td class="main" align="right" valign="top">&nbsp;</td>
                  </tr>';

    auch eingefügt und hochgeladen, bekomme aber keine Kurzbeschreibung zu sehen.

    Bei mir steht jetzt (Auschnitt) dies hier:

    //BOF - 2009-06-05 - replace table with div
    //$data_products = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
    $data_products = '';
    //EOF - 2009-06-05 - replace table with div
    for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {

       //BOF - 2009-06-05 - replace table with div
       //$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";
    $data_products .= '<tr>
                 <td class="main" align="left" valign="top">&nbsp;</td>
                 <td class="main" align="left" valign="top"><small>';
    if (!empty($order->products[$i]['short_description'])) {
                    $data_products .=trim(strip_tags($order->products[$i]['short_description']));
    } else {
                    $data_products .=trim(substr(strip_tags($order->products[$i]['description']),0,300));
                    if (strlen(strip_tags($order->products[$i]['description'])) > 300) $data_products.=' [...]';
    }
    $data_products .='</small></td>
                 <td class="main" align="right" valign="top">&nbsp;</td>
                 <td class="main" align="right" valign="top">&nbsp;</td>
                 </tr>';
       if (ACTIVATE_SHIPPING_STATUS == 'true') {
          //BOF - 2009-06-05 - replace table with div

          */

    vllt kann mir jemand helfen? :) das wäre echt lieb :)

    versand-richter

    • Frisch an Board
    • Beiträge: 82
    • Geschlecht:
    Re: Produktbilder in checkout_confirmation ???
    Antwort #27 am: 26. Juli 2012, 16:55:29
    Hallo,

    warum nimmst Du nicht einfach den kompletten Code von mir oben ? Dort ist dann ein Foto zu sehen, der Kurztext wird angezeigt und der Artikel-Name ist direkt zum Artikel verlinkt.

    expanse

    • Frisch an Board
    • Beiträge: 62
    • Geschlecht:
    Re: Produktbilder in checkout_confirmation ???
    Antwort #28 am: 27. Juli 2012, 08:40:15
    ich habe so wenig ahnung, ich wusste nicht, dass sowas geht.  :oops:
    Hab es grade getan, aber dann kam fiolgende Fehlermeldung auf der Seite der Kasse:

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /usr/www/users/terray/eshop/checkout_confirmation.php:1) in /usr/www/users/terray/eshop/includes/application_top.php on line 345

    Fatal error: Call to undefined method xtcPrice::ShopFormat() in /usr/www/users/terray/eshop/checkout_confirmation.php on line 249

    Und jetzt? ^^

    versand-richter

    • Frisch an Board
    • Beiträge: 82
    • Geschlecht:
    Re: Produktbilder in checkout_confirmation ???
    Antwort #29 am: 27. Juli 2012, 10:10:46
    oh jeh, :doh:  ich hoffe Du hast von Deiner alten Datei eine Kopie gemacht und kannst die erst mal wieder einspielen.

    Leider bin ich auch so gar kein Profi und kann Dir da nicht weiterhelfen, hatte ja selbst so meine Probleme mit der Umstellung! Aber bestimmt meldet sich noch hier aus dem Forum jemand, der richtig Ahnung hat.
    2 Antworten
    2814 Aufrufe
    05. Juni 2010, 09:37:12 von Martina
    14 Antworten
    9000 Aufrufe
    12. Oktober 2013, 12:34:28 von marc3
    1 Antworten
    4326 Aufrufe
    07. November 2008, 16:44:11 von Anonym
    11 Antworten
    5910 Aufrufe
    17. Dezember 2010, 11:59:54 von Tomcraft
               
    anything