rechtstexte für onlineshop
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Buttonlösung - NUR Vertragsgegenstand und Versandkosten hervorheben. wie?

    global-collapse

    • Neu im Forum
    • Beiträge: 13
    Hallo
    Die Wiki Lösung hab ich schon gelesen und Forumsuche hab ich schon benutzt.
    Wie schon geschrieben, möchte nur die drei Sachen "Fett" darstellen.
    (Vertragsgegenstand, Versandart und Versandkosten)
    Bis zum {$PRODUCTS_BLOCK} bin ich gekommen. Weiss aber nicht weiter.
    Welche HTML Datei ist für {$PRODUCTS_BLOCK} zuständig?

    Danke im Voraus

    [ Für Gäste sind keine Dateianhänge sichtbar ]


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

    Buggyboy

    • Fördermitglied
    • Beiträge: 968
    • Geschlecht:
    Hallo!

    Im Rootverzeichniss die
    checkout_confirmation.php

    ab hier ca.
    Code: PHP  [Auswählen]
    $data_products = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
        $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" 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>
                </tr>'
    . "\n";

    Ansonsten steht auch noch was in der Stylesheet.css im Templateordner glaube ich...

    global-collapse

    • Neu im Forum
    • Beiträge: 13
    Vielen Dank für die Antwort.

    Ich habe es nur teilweise geschafft.

    Vertragsgegenstand ist "Fett" (hab einfach <br></br> eingefügt)

    Mit dem Versandart und Versandkosten klappt es nicht. Egal wo ich <br></br> einfüge, keine Reaktion.

    Hab auch mehrere .css Dateien durchsucht, konnte aber nichts finden. Die dafür zuständige classe .main
    hab ich auch nicht gefunden. (hab Firefox Addon Web-Developer und Firebug benutzt)

    Code:
    Code: PHP  [Auswählen]
    $data_products = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
    $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";

    for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
            $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"><b>' . $order->products[$i]['name'] . '</b></td>'
                   . "\n"  . '  <td class="main_row" align="right" valign="top"><nobr>' . $xtPrice->ShopFormat($order->products[$i]['price'], true) . '</nobr></td>'
                   . "\n"  . '  <td class="main_row" align="right" valign="top"><nobr>' . $xtPrice->ShopFormat($order->products[$i]['final_price'], true) . '</nobr></td>
                                               </tr>'
    . "\n";

            if (ACTIVATE_SHIPPING_STATUS == 'true') {
                    $data_products .= '';
            }
            if ((isset ($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0)) {
                    for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
                            $data_products .= '<tr>
                                                <td class="main" align="left" valign="top">&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>'
    ;
                    }
            }

     

    Bin mir auch nicht ganz sicher WELCHE .css Datei dafür zuständig ist.

    WayneTsun

    • Fördermitglied
    • Beiträge: 1.082
    • Geschlecht:
    Hi global-collapse,

    es gibt in der originalen /templates/DeinTemplate/stylesheet.css nur eine class "td.main_row". Solltest Du diese calss nicht selbst eingetragen haben, so wird sie natürlich auch nicht gefunden. ;-)

    Für Dein Vorhaben solltest Du eine neue class in der Stylesheet.css eintragen. Z.B. td.main_brow und dieser eben das font-weight:bold geben. Dann verwendest Du diese class bei den entsprechenden Zeilen. Sollte am einfachsten sein.

    Beste Grüße,
    Wayne

    global-collapse

    • Neu im Forum
    • Beiträge: 13
    Hallo wieder 8)

    Habe jetzt mehrere Class und Ids getestet. ( .main{font-weight:bold;} ,td.main usw.).
    Egal was ich mache es werden immer alle 3 Reihen "Fett".

    Wie ich herausgefunden habe, sind alle 4 Reihen
    _____________

    Zwischensumme:    38,90 EUR
    Pauschale Versandkosten (DHL - Versicherter Versand):    5,95 EUR
    inkl. MwSt. 19%:    7,16 EUR
    Summe:    44,85 EUR
    _____________

    in dem {$TOTAL_BLOCK} verpackt.
    Wenn ich mich nicht irre, müsste ich {$TOTAL_BLOCK} bearbeiten.

    global-collapse

    • Neu im Forum
    • Beiträge: 13
    Bin mit meinem Latain am Ende.
    Hab gegoogelt (wie man {$TOTAL_BLOCK} bearbeiten kann).
    Angeblich sollte man die "includes/classes/order_total.php" bearbeiten.
    Mit der Datei kann ich aber nichts anfangen.
    Hat jemand ne Idee wie ich das lösen könnte?

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    Die Datei includes/classes/order_total.php ist schon richtig. In der Funktion output() gibt es folgende Zeilen
    Code: PHP  [Auswählen]
    $output_string .= '              <tr>'."\n".'                <td align="right" class="main">'.$GLOBALS[$class]->output[$i]['title'].'</td>'."\n".'                <td align="right" class="main">'.$GLOBALS[$class]->output[$i]['text'].'</td>'."\n".'              </tr>';
     

    Die erste Tabellenzelle enthält den Titel (also "Zwischenzumme", "inkl. 19% MwSt", etc.) und die zweite Tabellenzelle enthält den dazugehörigen Wert. Wenn du nun z.B. die Titel in fett haben möchtest wäre die schnellste Lösung diese:
    Code: PHP  [Auswählen]
    $output_string .= '              <tr>'."\n".'                <td align="right" class="main"><b>'.$GLOBALS[$class]->output[$i]['title'].'</b></td>'."\n".'                <td align="right" class="main">'.$GLOBALS[$class]->output[$i]['text'].'</td>'."\n".'              </tr>';
     

    Gruß
    Ronny

    global-collapse

    • Neu im Forum
    • Beiträge: 13
    Hallo Ronny
    Vielen Dank für deine Antwort

    Mit dem Artikel(Vertragsgegenstand) hat es gleich am Anfang geklappt.

    Ich hab <b></b> in die checkout_confirmation.php eingefügt.
    Ich hoffe das geht auch.

    Mein checkout_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');
    // 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');

    // 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 (!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 = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
    $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";

    for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
            $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"><b>' . $order->products[$i]['name'] . '</b></td>'
                   . "\n"  . '  <td class="main_row" align="right" valign="top"><nobr>' . $xtPrice->xtcFormat($order->products[$i]['price'], true) . '</nobr></td>'
                   . "\n"  . '  <td class="main_row" align="right" valign="top"><nobr>' . $xtPrice->xtcFormat($order->products[$i]['final_price'], true) . '</nobr></td>
                                               </tr>'
    . "\n";

            if (ACTIVATE_SHIPPING_STATUS == 'true') {
                    $data_products .= '';
            }
            if ((isset ($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0)) {
                    for ($j = 0, $n2 = sizeof($order->products[$i]['attributes']); $j < $n2; $j++) {
                            $data_products .= '<tr>
                                                <td class="main" align="left" valign="top">&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 .= '</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'])) { //DokuMan - 2010-09-17 - Undefined index
          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"
    ; //DokuMan - 2011-05-13 - added 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')); // 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'] . "'
                                                        LIMIT 1"
    ; //DokuMan - 2011-05-13 - added 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')); // Hetfield - 2009-07-29 - SSL for Content-Links per getContentLink
    }

    $smarty->assign('language', $_SESSION['language']);
    //$smarty->assign('PAYMENT_BLOCK', $payment_block); //DokuMan - PAYMENT_BLOCK not needed in checkout_confimation
    $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');
    ?>
     

    Was ich noch wollte ist: Versandart und Versandkosten in Fetschrift darstellen.
    (Mein Posting1-> Das Bild)

    Und hier ist mein order_total.php
    Code: PHP  [Auswählen]
    <?php
    /* -----------------------------------------------------------------------------------------
       $Id: order_total.php 1029 2005-07-14 19:08:49Z 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(order_total.php,v 1.4 2003/02/11); www.oscommerce.com
       (c) 2003      nextcommerce (order_total.php,v 1.6 2003/08/13); www.nextcommerce.org

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

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

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


    class order_total {
            var $modules;

            // GV Code Start
            // ICW ORDER TOTAL CREDIT CLASS/GV SYSTEM - START ADDITION
            //
            // This function is called in checkout payment after display of payment methods. It actually calls
            // two credit class functions.
            //
            // use_credit_amount() is normally a checkbox used to decide whether the credit amount should be applied to reduce
            // the order total. Whether this is a Gift Voucher, or discount coupon or reward points etc.
            //
            // The second function called is credit_selection(). This in the credit classes already made is usually a redeem box.
            // for entering a Gift Voucher number. Note credit classes can decide whether this part is displayed depending on
            // E.g. a setting in the admin section.
            //
            function credit_selection() {
                    $selection_string = '';
                    $close_string = '';
                    $credit_class_string = '';
                    if (MODULE_ORDER_TOTAL_INSTALLED) {
                         // BOF - vr - 2010-03-03 fix gv display on checkout
                            /*$header_string = '<tr>'."\n";
                            $header_string .= '   <td><table border="0" width="100%" cellspacing="0" cellpadding="2">'."\n";
                            $output1_string .= '      <tr>'."\n";
                            $header_string .= '        <td class="main"><strong>'.TABLE_HEADING_CREDIT.'</strong></td>'."\n";
                            $header_string .= '      </tr>'."\n";
                            $header_string .= '    </table></td>'."\n";
                            $header_string .= '  </tr>'."\n";
                            $header_string .= '<tr>'."\n";
                            $header_string .= '   <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">'."\n";
                            $header_string .= '     <tr class="infoBoxContents"><td><table border="0" width="100%" cellspacing="0" cellpadding="2">'."\n";
                            $header_string .= '       <tr><td width="10">'.xtc_draw_separator('pixel_trans.gif', '10', '1').'</td>'."\n";
                            $header_string .= '           <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">'."\n";
                            $close_string = '                           </table></td>';
                            $close_string .= '<td width="10">'.xtc_draw_separator('pixel_trans.gif', '10', '1').'</td>';
                            $close_string .= '</tr></table></td></tr></table></td>';
                            $close_string .= '<tr><td width="100%">'.xtc_draw_separator('pixel_trans.gif', '100%', '10').'</td></tr>';*/

                           
                            $header_string  = '<tr><td>';
                            $header_string .= '<table class="paymentblock" border="0" width="100%" cellspacing="0" cellpadding="6">';
                            $header_string .= '<td width="90%" class="header">'.TABLE_HEADING_CREDIT.'</td>';
                            $header_string .= '<td width="10%" class="header"></td>';
                            $header_string .= '</table>';
                            $header_string .= '</td></tr>';
                            $close_string .= '<tr><td width="100%">'.xtc_draw_separator('pixel_trans.gif', '100%', '10').'</td></tr>';
                            // EOF - vr - 2010-03-03 fix gv display on checkout
                           
                            reset($this->modules);
                            $output_string = '';
                            while (list (, $value) = each($this->modules)) {
                                    $class = substr($value, 0, strrpos($value, '.'));
            if ($GLOBALS[$class]->enabled && isset($GLOBALS[$class]->credit_class) && $GLOBALS[$class]->credit_class) {
              $use_credit_string = $GLOBALS[$class]->use_credit_amount();
              if ($selection_string == '') {
                $selection_string = $GLOBALS[$class]->credit_selection();
              }
                                            if (($use_credit_string != '') || ($selection_string != '')) {
                                                    $output_string .= '<tr colspan="4"><td colspan="4" width="100%">'.xtc_draw_separator('pixel_trans.gif', '100%', '10').'</td></tr>';
                                                    $output_string .= '<tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" >';
                                                    $output_string .= '<td width="10">'.xtc_draw_separator('pixel_trans.gif', '10', '1').'</td>';
                                                    // BOF - vr - 2010-03-03 fix gv display on checkout
                                                    // $output_string .='<td class="main"><strong>'.$GLOBALS[$class]->header.'</strong></td>';
                                                    // EOF - vr - 2010-03-03 fix gv display on checkout
                                                    $output_string .=  $use_credit_string;
                                                    $output_string .= '<td width="10">'.xtc_draw_separator('pixel_trans.gif', '10', '1').'</td>';
                                                    $output_string .= '</tr>'."\n";
                                                    $output_string .= $selection_string;
                                            }
                                    }
                            }
                            if ($output_string != '') {
                                    $output_string = $header_string.$output_string;
                                    $output_string .= $close_string;
                            }
                    }
                    return $output_string;
            }

            //            if ($selection_string !='') {
            //              $output_string .= '</td>' . "\n";
            //              $output_string .= $selection_string;
            //            }

            // update_credit_account is called in checkout process on a per product basis. It's purpose
            // is to decide whether each product in the cart should add something to a credit account.
            // e.g. for the Gift Voucher it checks whether the product is a Gift voucher and then adds the amount
            // to the Gift Voucher account.
            // Another use would be to check if the product would give reward points and add these to the points/reward account.
            //
            function update_credit_account($i) {
                    if (MODULE_ORDER_TOTAL_INSTALLED) {
                            reset($this->modules);
                            while (list (, $value) = each($this->modules)) {
                                    $class = substr($value, 0, strrpos($value, '.'));
                                    if (($GLOBALS[$class]->enabled && isset($GLOBALS[$class]->credit_class) && $GLOBALS[$class]->credit_class)) {
              $GLOBALS[$class]->update_credit_account($i);
            }
                            }
                    }
            }
            // This function is called in checkout confirmation.
            // It's main use is for credit classes that use the credit_selection() method. This is usually for
            // entering redeem codes(Gift Vouchers/Discount Coupons). This function is used to validate these codes.
            // If they are valid then the necessary actions are taken, if not valid we are returned to checkout payment
            // with an error
            //
            function collect_posts() {
        if (MODULE_ORDER_TOTAL_INSTALLED) {
          reset($this->modules);
          while (list (, $value) = each($this->modules)) {
            $class = substr($value, 0, strrpos($value, '.'));
            if (($GLOBALS[$class]->enabled && isset($GLOBALS[$class]->credit_class) && $GLOBALS[$class]->credit_class)) {
              $post_var = 'c'.$GLOBALS[$class]->code;
              if (isset($_POST[$post_var]) && $_POST[$post_var]) {
                $_SESSION[$post_var] = $_POST[$post_var];
              }
              $GLOBALS[$class]->collect_posts();
            }
          }
        }
      }
            // pre_confirmation_check is called on checkout confirmation. It's function is to decide whether the
            // credits available are greater than the order total. If they are then a variable (credit_covers) is set to
            // true. This is used to bypass the payment method. In other words if the Gift Voucher is more than the order
            // total, we don't want to go to paypal etc.
            //
            function pre_confirmation_check() {
                    global $order;
                    if (MODULE_ORDER_TOTAL_INSTALLED) {
                            $total_deductions = 0;
                            reset($this->modules);
                            $order_total = $order->info['total'];
                            while (list (, $value) = each($this->modules)) {
                                    $class = substr($value, 0, strrpos($value, '.'));
                                    $order_total = $this->get_order_total_main($class, $order_total);
                                    if (($GLOBALS[$class]->enabled && isset($GLOBALS[$class]->credit_class) && $GLOBALS[$class]->credit_class)) {
                                            $total_deductions = $total_deductions + $GLOBALS[$class]->pre_confirmation_check($order_total);
                                            $order_total = $order_total - $GLOBALS[$class]->pre_confirmation_check($order_total);
                                    }
                            }
                            if ($order->info['total'] - $total_deductions <= 0) {
                                    $_SESSION['credit_covers'] = true;
                            } else { // belts and suspenders to get rid of credit_covers variable if it gets set once and they put something else in the cart
                                    unset ($_SESSION['credit_covers']);
                            }
                    }
            }
            // this function is called in checkout process. it tests whether a decision was made at checkout payment to use
            // the credit amount be applied aginst the order. If so some action is taken. E.g. for a Gift voucher the account
            // is reduced the order total amount.
            //
            function apply_credit() {
                    if (MODULE_ORDER_TOTAL_INSTALLED) {
                            reset($this->modules);
                            while (list (, $value) = each($this->modules)) {
                                    $class = substr($value, 0, strrpos($value, '.'));
                                    if (($GLOBALS[$class]->enabled && isset($GLOBALS[$class]->credit_class) && $GLOBALS[$class]->credit_class)) {
                                            $GLOBALS[$class]->apply_credit();
                                    }
                            }
                    }
            }
            // Called in checkout process to clear session variables created by each credit class module.
            //
            function clear_posts() {
                    if (MODULE_ORDER_TOTAL_INSTALLED) {
                            reset($this->modules);
                            while (list (, $value) = each($this->modules)) {
                                    $class = substr($value, 0, strrpos($value, '.'));
                                    if (($GLOBALS[$class]->enabled && isset($GLOBALS[$class]->credit_class) && $GLOBALS[$class]->credit_class)) {
                                            $post_var = 'c'.$GLOBALS[$class]->code;
                                            unset ($_SESSION[$post_var]);
                                    }
                            }
                    }
            }
            // Called at various times. This function calulates the total value of the order that the
            // credit will be appled aginst. This varies depending on whether the credit class applies
            // to shipping & tax
            //
            function get_order_total_main($class, $order_total) {
                    global $credit, $order;
                    //      if ($GLOBALS[$class]->include_tax == 'false') $order_total=$order_total-$order->info['tax'];
                    //      if ($GLOBALS[$class]->include_shipping == 'false') $order_total=$order_total-$order->info['shipping_cost'];
                    return $order_total;
            }
            // ICW ORDER TOTAL CREDIT CLASS/GV SYSTEM - END ADDITION
            // GV Code End

            // class constructor
            function order_total() {
                    if (defined('MODULE_ORDER_TOTAL_INSTALLED') && xtc_not_null(MODULE_ORDER_TOTAL_INSTALLED)) {
                            $this->modules = explode(';', MODULE_ORDER_TOTAL_INSTALLED);
                            $modules = $this->modules;
                            sort($modules); // cgoenner: we need to include the ot_coupon & ot_gv BEFORE ot_tax
                            reset($modules);
                            while (list (, $value) = each($modules)) {
                                    include (DIR_WS_LANGUAGES.$_SESSION['language'].'/modules/order_total/'.$value);
                                    include (DIR_WS_MODULES.'order_total/'.$value);

                                    $class = substr($value, 0, strrpos($value, '.'));
                                    $GLOBALS[$class] = new $class ();
                            }
                            unset($modules);
                    }
            }

            function process() {
                    $order_total_array = array ();
                    if (is_array($this->modules)) {
                            reset($this->modules);
                            while (list (, $value) = each($this->modules)) {
                                    $class = substr($value, 0, strrpos($value, '.'));
                                    if ($GLOBALS[$class]->enabled) {
              $GLOBALS[$class]->output = array(); //DokuMan - 2011-09-29 - calling $order_total_modules->process() multiple times would duplicate the output data due to the order total modules already being instantiated
                                            $GLOBALS[$class]->process();

                                            for ($i = 0, $n = sizeof($GLOBALS[$class]->output); $i < $n; $i ++) {
                                                    if (xtc_not_null($GLOBALS[$class]->output[$i]['title']) && xtc_not_null($GLOBALS[$class]->output[$i]['text'])) {
                                                            $order_total_array[] = array ('code' => $GLOBALS[$class]->code,
                                                'title' => $GLOBALS[$class]->output[$i]['title'],
                                                'text' => $GLOBALS[$class]->output[$i]['text'],
                                                'value' => $GLOBALS[$class]->output[$i]['value'],
                                                'sort_order' => $GLOBALS[$class]->sort_order
                                                );
                                                    }
                                            }
                                    }
                            }
                    }

                    return $order_total_array;
            }

            function output() {
                    $output_string = '';
                    if (is_array($this->modules)) {
                            reset($this->modules);
                            while (list (, $value) = each($this->modules)) {
                                    $class = substr($value, 0, strrpos($value, '.'));
                                    if ($GLOBALS[$class]->enabled) {
                                            $size = sizeof($GLOBALS[$class]->output);
                                            for ($i = 0; $i < $size; $i ++) {
                                                    $output_string .= '              <tr>'."\n".'                <td align="right" class="main">'.$GLOBALS[$class]->output[$i]['title'].'</td>'."\n".'                <td align="right" class="main">'.$GLOBALS[$class]->output[$i]['text'].'</td>'."\n".'              </tr>';
                                            }
                                    }
                            }
                    }

                    return $output_string;
            }
    }
    ?>

     

    GRuß

    global-collapse

    • Neu im Forum
    • Beiträge: 13
    Hallo
    Jetzt hab ich versucht bei der 1te und 2te <td>, eine <b> zu setzten.
    Erste <td> bewirkt dass alle 3 Titel Fett werden. (Bild1), und 2te dass alle 3 Werte Fett werden.(Bild2)

    Und ich versuchte ganze Zeit, wie auf dem Bild zu sehen, nur den Satz:
    "Pauschale Versandkosten (DHL - Versicherter Versand):" und dazu gehörigen Wert "5,95 EUR"
    "Fett" zu kriegen.

    Gruß

    Langhals_1

    • Frisch an Board
    • Beiträge: 70
    • Geschlecht:
    @global-collapse

    was hat das für einen Grund das nur dieses Fett soll, verstehe ich nicht ganz :mhhh:

    Modulfux

    • Experte
    • Beiträge: 3.590
    • Geschlecht:
    Dann gehe doch in die lang/german/shipping/dhl.php und modifiziere dort die Sprachkonstanten.

    Aus
    Code: PHP  [Auswählen]
    'Pauschale Versandkosten'
    machst du
    Code: PHP  [Auswählen]
    '<b>Pauschale Versandkosten</b>'
    .
    Analog wird aus
    Code: PHP  [Auswählen]
    '(DHL - Versicherter Versand)'
    dann
    Code: PHP  [Auswählen]
    '<b>(DHL - Versicherter Versand)</b>'

    Gruß
    Ronny

    global-collapse

    • Neu im Forum
    • Beiträge: 13
    @Ronny Danke 1000 mal 8)))
    Das hat geklappt. Die Versandart ist jetzt "Fett".
    (eine Sache war noch wichtig dabei. Erst nach dem ich Firefox-Cache gelöscht habe und die Seite neugeladen habe wurde die Schrift "Fett" angezeigt)

    Jetzt nur noch Versandkosten

    @Langhals_1
    Brief von unserem Anwalt:
    Zitat
    ...unmittelbar vor Abgabe der Bestellung klar und verständlich auf

       1. den Vertragsgegenstand,
       2. den Gesamtpreis,
       3. die Liefer- und Versandkosten und
       4. die Vertragslaufzeit bei Dauerschuldverhältnissen (z.B. Abonnement)

    hervorgehobener Weise anzeigen. ...

    Also Buttongesetz
    Ich weiss dass man es hier im Forum anderes macht (mit dem Miniaturbild und Kurzbeschreibung usw.).
    Ich hab das ganze mit meinem Chef besprochen und er meinte ich soll nur das machen was uns der Anwalt geschrieben hat. (nur die 3 Sachen hervorheben)

    LG

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.989
    • Geschlecht:
    Schnelllösung:

    In /includes/modules/order_total/ot_shipping.php das suchen:
    Code: PHP  [Auswählen]
            $this->output[] = array('title' => $order->info['shipping_method'] . ':',
                                    'text' => $xtPrice->xtcFormat($order->info['shipping_cost'], true,0,true),
                                    'value' => $xtPrice->xtcFormat($order->info['shipping_cost'], false,0,true));

    und das draus machen:
    Code: PHP  [Auswählen]
            $this->output[] = array('title' => '<strong>' . $order->info['shipping_method'] . '</strong>:',
                                    'text' => $xtPrice->xtcFormat($order->info['shipping_cost'], true,0,true),
                                    'value' => $xtPrice->xtcFormat($order->info['shipping_cost'], false,0,true));

    Besser wäre noch das ganze in ein <span class="DEINE_CLASS> </span> zu bauen und über CSS zu steuern.

    Gruß,
    noRiddle

    *NACHTRAG*
    Wenn du alles fett haben willst, also auch den Wert, machst du das mit den array-Werten  'text' und 'value' analog.

    global-collapse

    • Neu im Forum
    • Beiträge: 13
    Hallo noRiddle
    shipping_method haben wir schon hingekriegt.

    Nur shipping_cost würde ich noch bearbeiten.
    Ich habe es versucht aber es kommt nur eine leere Seite.

    Bin mir nicht ganz sicher wo genau ich den zweiten (</strong>) einsetzten soll.

    Das hier irritiert mich ein wenig:
    Code: PHP  [Auswählen]
    true,0,true),
    false,0,true));
     

    Wäre es auch möglich mit <span style="font-weight:bold"> </span>?

    (Muss jetzt leider zu Arbeit.  Danke erstmal. Bis später)

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.989
    • Geschlecht:
    Code: PHP  [Auswählen]
                $this->output[] = array('title' => '<strong>' . $order->info['shipping_method'] . '</strong>:',
                                        'text' => '<strong>' . $xtPrice->xtcFormat($order->info['shipping_cost'], true,0,true) . '</strong>',
                                        'value' => '<strong>' . $xtPrice->xtcFormat($order->info['shipping_cost'], false,0,true) . '</strong>');

    Mach das in einem guten Editor (notepad++ z.B.), dann siehst du besser welche Klammern zusammen gehören.

    Mit span geht das auch, klar, solltest es dann aber mit einer Klasse machen und mit CSS steuern. Wäre dann später evtl. auch leicht anzupassen (z.B. andere Farbne o.ä.).

    Gruß,
    noRiddle
    Templateshop - Eine große Auswahl an neuen und modernen Templates für die modified eCommerce Shopsoftware
    7 Antworten
    4165 Aufrufe
    20. Oktober 2011, 15:41:23 von nolledge
    10 Antworten
    4618 Aufrufe
    12. Januar 2012, 01:13:14 von noRiddle (revilonetz)
    1 Antworten
    2015 Aufrufe
    13. Oktober 2011, 15:52:23 von Tomcraft
    32 Antworten
    13533 Aufrufe
    21. September 2012, 15:18:29 von ARS