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: WIKI "Umstellung des Shops auf Buttonlösung" kleine Verbesserung

    mr.mc.mauser

    • Fördermitglied
    • Beiträge: 343
    • Geschlecht:
    170 ist doppelt

    Code: PHP  [Auswählen]
    $data_products = '<table width="100%" border="1" cellspacing="0" cellpadding="0">';
        $data_products = "\n".'<table width="100%" border="0" cellspacing="0" cellpadding="0">
    rechtstexte für onlineshop

    rockmartin

    • Mitglied
    • Beiträge: 162
    • Geschlecht:
    Wenn ich
    Code: PHP  [Auswählen]
    $data_products = '<table width="100%" border="1" cellspacing="0" cellpadding="0">';
     
    lösche passier gar nicht.

    Wenn ich
    Code: PHP  [Auswählen]
    $data_products = "\n".'<table width="100%" border="0" cellspacing="0" cellpadding="0">
    lösche bekomme ich eine Fehlermeldung.

    Code: PHP  [Auswählen]
     Parse error: syntax error, unexpected '<' in /www/htdocs/w00a016f/www/shop/checkout_confirmation.php on line 171

    mr.mc.mauser

    • Fördermitglied
    • Beiträge: 343
    • Geschlecht:
    die komplette ckeckout_confirmation.php

    Code: PHP  [Auswählen]
    <?php
    /* -----------------------------------------------------------------------------------------
       $Id: checkout_confirmation.php 2791 2012-04-27 13:10:18Z web28 $

       modified eCommerce Shopsoftware - community made shopping
       http://www.modified eCommerce Shopsoftware.org

       Copyright (c) 2010 modified eCommerce Shopsoftware
       -----------------------------------------------------------------------------------------
       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
       (c) 2006 XT-Commerce (checkout_confirmation.php 1277 2005-10-01)

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

    require (DIR_WS_LANGUAGES.$_SESSION['language'].'/checkout_confirmation.php');
    if (!isset ($_SESSION['customer_id'])) xtc_redirect(xtc_href_link(FILENAME_LOGIN, '', 'SSL'));
    if ($_SESSION['cart']->count_contents() < 1) xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART));
    if (isset ($_SESSION['cart']->cartID) && isset ($_SESSION['cartID'])) {
            if ($_SESSION['cart']->cartID != $_SESSION['cartID']) xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    }
    if (!isset ($_SESSION['shipping'])) xtc_redirect(xtc_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    if (isset ($_POST['payment'])) $_SESSION['payment'] = xtc_db_prepare_input($_POST['payment']);
    if ($_POST['comments_added'] != '') $_SESSION['comments'] = xtc_db_prepare_input($_POST['comments']);
    if (isset ($_POST['cot_gv'])) $_SESSION['cot_gv'] = true;
    if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {
            if (!isset($_POST['conditions']) || $_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_once (DIR_WS_CLASSES . 'payment.php');
    if (isset ($_SESSION['credit_covers']) || !isset($_SESSION['payment'])) { //DokuMan - 2010-10-14 - check that payment is not yet set
            $_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(isset($_SESSION['payment']) && $_SESSION['payment'] != 'no_payment') { //web28 - 2012-04-27 - fix for coupon amount == order total
      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 (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_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 (!isset($_SESSION['credit_covers']) || $_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 {
    }

    $data_products = "\n".'<table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                    <tr>
                            <td class="main_header" align="left" valign="top"><b>'
    .HEADER_QTY.'</b></td>
                            <td class="main_header" align="left" valign="top" colspan="2"><b>'
    .HEADER_ARTICLE.'</b></td>
                            <td class="main_header" align="right" valign="top"><b>'
    .HEADER_SINGLE.'</b></td>
                            <td class="main_header" align="right" valign="top"><b>'
    .HEADER_TOTAL.'</b></td>
                    </tr>'
    ;
    for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
            $data_products .= "\n".'                <tr>
                            <td class="main_row" align="left" valign="top">'
    .$order->products[$i]['qty'].' x '.'</td>
                            <td class="main_row" align="left" valign="top" width="90" rowspan="4"><img src="'
    .DIR_WS_THUMBNAIL_IMAGES.xtc_get_products_image($order->products[$i]['id']).'" /></td>
                            <td class="main_row" align="left" valign="top">'
    .$order->products[$i]['name'].'</td>
                            <td class="main_row" align="right" valign="top">
                                    <nobr>'
    .$xtPrice->xtcFormat($order->products[$i]['price'], true).'</nobr>
                            </td>
                            <td class="main_row" align="right" valign="top">
                                    <nobr>'
    .$xtPrice->xtcFormat($order->products[$i]['final_price'], true).'</nobr>
                            </td>
                    </tr>
                    <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>
                                    <br>ISBN:'
    .$order->products[$i]['products_isbn'].'
                                    <br>Author:'
    .$order->products[$i]['products_author'].'
                            </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') {
                    $data_products .= "\n".'                <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>'
    ;
            }
            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".'                <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>'
    ;
                    }
            }
            $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 .='      </tbody>'."\n".'</table>';
    $smarty->assign('PRODUCTS_BLOCK', $data_products);

    if ($order->info['payment_method'] != 'no_payment' && $order->info['payment_method'] != '') {
            include_once (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'];
                    if (isset($confirmation['fields'])) {
                            for ($i = 0, $n = sizeof($confirmation['fields']); $i < $n; $i++) {
                                    $confirmation_text= isset($confirmation['fields'][$i]['field']) ? stripslashes($confirmation['fields'][$i]['field']) : '&nbsp;';
                                    $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">'
    .$confirmation_text. '</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) && (!isset($$_SESSION['payment']->tmpOrders) || !$$_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']."'
                    LIMIT 1"
    ;
            $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']);
            $smarty->assign('REVOCATION_LINK', $main->getContentLink(REVOCATION_ID, MORE_INFO,'SSL'));
            $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'] . "'
                    LIMIT 1"
    ;
            $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']);
            $smarty->assign('AGB_LINK', $main->getContentLink(3, MORE_INFO,'SSL'));
    }

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

    rockmartin

    • Mitglied
    • Beiträge: 162
    • Geschlecht:
    Haut auch nicht so wirklich hin. Aber ich habe jetzt aus

    Code: PHP  [Auswählen]
    <td class="main_row" align="left" valign="top" width="60" rowspan="4"><img src="'.DIR_WS_THUMBNAIL_IMAGES.xtc_get_products_image($order->products[$i]['id']).'" /></td>

    Das hier gemacht mir rowspan 3

    Code: PHP  [Auswählen]
    <td class="main_row" align="left" valign="top" width="60" rowspan="3"><img src="'.DIR_WS_THUMBNAIL_IMAGES.xtc_get_products_image($order->products[$i]['id']).'" /></td>

    Das geht so einigermaßen, jetzt werden die Artikel Atribute aber unter das Bild verschoben.

    Code: XML  [Auswählen]
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                    <tr>
                            <td class="main_header" align="left" valign="top"><b>Anzahl</b></td>
                            <td class="main_header" align="left" valign="top" colspan="2"><b>Artikel</b></td>
                            <td class="main_header" align="right" valign="top"><b>Einzelpreis</b></td>
                            <td class="main_header" align="right" valign="top"><b>Summe</b></td>
                    </tr>
                    <tr>
                            <td class="main_row" align="left" valign="top">2 x </td>
                            <td class="main_row" align="left" valign="top" width="60" rowspan="3"><img src="images/product_images/thumbnail_images/17_0.jpg" /></td>
                            <td class="main_row" align="left" valign="top">Filterkassette f�r TREND II Serie geschlossen, ohne Deckel</td>
                            <td class="main_row" align="right" valign="top">
                                    <nobr> 29,50 EUR</nobr>
                            </td>
                            <td class="main_row" align="right" valign="top">
                                    <nobr> 59,00 EUR</nobr>
                            </td>
                    </tr>
                    <tr>
                            <td class="main" align="left" valign="top">&nbsp;</td>
                            <td class="main" align="left" valign="top">
                                    <small></small>
                                    <br>ISBN:Filterabscheidegrad bis 1 &#95
                                   <br>Author:VE: 5 St�ck
                           </td>
                           <td class="main" align="right" valign="top">&nbsp;</td>
                            <td class="main" align="right" valign="top">&nbsp;</td>
                    </tr>
                    <tr>
                            <td class="main" align="left" valign="top">&nbsp;</td>
                            <td class="main" align="left" valign="top">
                                    <nobr><small>Lieferzeit: ca. 1 Woche</small></nobr>
                            </td>
                            <td class="main" align="right" valign="top">&nbsp;</td>
                            <td class="main" align="right" valign="top">&nbsp;</td>
                    </tr>
                 </tr>

                    <tr>
                            <td class="main_row" align="left" valign="top">1 x </td>
                            <td class="main_row" align="left" valign="top" width="60" rowspan="3"><img src="images/product_images/thumbnail_images/4_0.jpg" /></td>
                            <td class="main_row" align="left" valign="top">ComfortTube System</td>
                            <td class="main_row" align="right" valign="top">
                                    <nobr> 89,90 EUR</nobr>
                            </td>
                            <td class="main_row" align="right" valign="top">
                                    <nobr> 89,90 EUR</nobr>
                            </td>
                    </tr>
                    <tr>
                            <td class="main" align="left" valign="top">&nbsp;</td>
                            <td class="main" align="left" valign="top">
                                    <small></small>
                                    <br>ISBN:Innendurchmesser: 19 mm<br />S
                                    <br>Author:Leistung: max. 18 W<br />L�nge: 1,83 m
                            </td>
                            <td class="main" align="right" valign="top">&nbsp;</td>
                            <td class="main" align="right" valign="top">&nbsp;</td>
                    </tr>
                    <tr>
                            <td class="main" align="left" valign="top">&nbsp;</td>
                            <td class="main" align="left" valign="top">
                                    <nobr><small>Lieferzeit: ca. 1 Woche</small></nobr>
                            </td>
                            <td class="main" align="right" valign="top">&nbsp;</td>
                            <td class="main" align="right" valign="top">&nbsp;</td>
                    </tr>
                    <tr>
                            <td class="main" align="left" valign="top">&nbsp;</td>
                            <td class="main" align="left" valign="top">
                                    <nobr><small>&nbsp;<i> - Adapter-Kit: keins</i></small></nobr></td>
                            <td class="main" align="right" valign="top">&nbsp;</td>
                            <td class="main" align="right" valign="top">&nbsp;</td>
                    </tr>
                 </tr>

                    <tr>
                            <td class="main_row" align="left" valign="top">5 x </td>
                            <td class="main_row" align="left" valign="top" width="60" rowspan="3"><img src="images/product_images/thumbnail_images/35_0.jpg" /></td>
                            <td class="main_row" align="left" valign="top">CPAP-Schlauchhalter</td>
                            <td class="main_row" align="right" valign="top">
                                    <nobr> 19,90 EUR</nobr>
                            </td>
                            <td class="main_row" align="right" valign="top">
                                    <nobr> 99,50 EUR</nobr>
                            </td>
                    </tr>
                    <tr>
                            <td class="main" align="left" valign="top">&nbsp;</td>
                            <td class="main" align="left" valign="top">
                                    <small></small>
                                    <br>ISBN:
                                    <br>Author:Material: Aluminium<br />Farbe: Blau<br />H�he: 95 cm
                            </td>
                            <td class="main" align="right" valign="top">&nbsp;</td>
                            <td class="main" align="right" valign="top">&nbsp;</td>
                    </tr>
                    <tr>
                            <td class="main" align="left" valign="top">&nbsp;</td>
                            <td class="main" align="left" valign="top">
                                    <nobr><small>Lieferzeit: 3-4 Werktage</small></nobr>
                            </td>
                            <td class="main" align="right" valign="top">&nbsp;</td>
                            <td class="main" align="right" valign="top">&nbsp;</td>
                    </tr>
                 </tr>
          </tbody>
    </table>

    rockmartin

    • Mitglied
    • Beiträge: 162
    • Geschlecht:
    Kann mir keiner helfen?

    mr.mc.mauser

    • Fördermitglied
    • Beiträge: 343
    • Geschlecht:
    Ändere einfcah den Tabellen bereich in das hier:
    Dann gibt es das Problem mit den Rows und cols nicht mehr :-)

    Code: PHP  [Auswählen]
    $data_products = "\n".'<table width="100%" border="1" cellspacing="0" cellpadding="0">
            <tbody>
                    <tr>
                            <td class="main_header" align="left" valign="top"><b>'
    .HEADER_QTY.'</b></td>
                            <td class="main_header" align="left" valign="top" colspan="2"><b>'
    .HEADER_ARTICLE.'</b></td>
                            <td class="main_header" align="right" valign="top"><b>'
    .HEADER_SINGLE.'</b></td>
                            <td class="main_header" align="right" valign="top"><b>'
    .HEADER_TOTAL.'</b></td>
                    </tr>'
    ;
    for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
            $data_products .= "\n".'                <tr>
                            <td class="main_row" align="left" valign="top" rowspan="2">'
    .$order->products[$i]['qty'].' x '.'</td>
                            <td class="main_row" align="left" valign="top" width="90" rowspan="2"><img src="'
    .DIR_WS_THUMBNAIL_IMAGES.xtc_get_products_image($order->products[$i]['id']).'" /></td>
                            <td class="main_row" align="left" valign="top">'
    .$order->products[$i]['name'].'</td>
                            <td class="main_row" align="right" valign="top" rowspan="2">
                                    <nobr>'
    .$xtPrice->xtcFormat($order->products[$i]['price'], true).'</nobr>
                            </td>
                            <td class="main_row" align="right" valign="top" rowspan="2">
                                    <nobr>'
    .$xtPrice->xtcFormat($order->products[$i]['final_price'], true).'</nobr>
                            </td>
                    </tr>
                    <tr>
                            <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>
                                            <br>ISBN:'
    .$order->products[$i]['products_isbn'].'
                                            <br>Author:'
    .$order->products[$i]['products_author'].'';
            if (ACTIVATE_SHIPPING_STATUS == 'true'){
                    $data_products .='<br><nobr><small>'.SHIPPING_TIME.$order->products[$i]['shipping_time'].'</small></nobr>';
            }
            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><nobr><small>&nbsp;<i> - '.$order->products[$i]['attributes'][$j]['option'].': '.$order->products[$i]['attributes'][$j]['value'].'</i></small></nobr>';
                    }
            }
            $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 .= '<br>'.xtc_display_tax_value($order->products[$i]['tax']).'%'."\n";
            }
            $data_products .= '</td></tr>'."\n";
    }
    $data_products .='        </tbody>'."\n".'</table>';
    $smarty->assign('PRODUCTS_BLOCK', $data_products);

    Die Zusatzdaten sind dann halt keine eigenen Tabellen zellen mehr sondern es ist alles in der "Bereschreibungszelle" die einzelnen sachen kann man ja noch Formatieren.

    rockmartin

    • Mitglied
    • Beiträge: 162
    • Geschlecht:
     :king:
    Besten Dank! Das war es!
    3 Antworten
    3209 Aufrufe
    31. Juli 2012, 06:39:14 von jannemann
    2 Antworten
    4391 Aufrufe
    23. Juli 2012, 19:35:04 von saez
    7 Antworten
    3983 Aufrufe
    18. Januar 2013, 10:19:45 von expanse