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: Text "Lieferzeit" fehlt im Checkout

    knecht2020

    • Fördermitglied
    • Beiträge: 233
    • Geschlecht:
    Text "Lieferzeit" fehlt im Checkout
    am: 02. August 2012, 12:41:25
    Hallo,
    beim Umbau zur Buttonlösung ist irgendwie der Text "Lieferzeit:" im Checkout verloren gegangen.
    Es erscheint nur noch z.B. 4-5 Tage. Kann mir jemand sagen wo ich suchen muss um das wieder anzuzeigen?
    Danke
    Gruß
    Werner

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

    DirkK

    • Fördermitglied
    • Beiträge: 230
    • Geschlecht:
    Re: Text "Lieferzeit" fehlt im Checkout
    Antwort #1 am: 02. August 2012, 13:17:33
    Schau mal in der checkout_confirmation.php. Da müsste in ca. Zeile 207 stehen:

    Code: PHP  [Auswählen]
    if (ACTIVATE_SHIPPING_STATUS == 'true') {
        $data_products .= '<br /><nobr><small>' . SHIPPING_TIME . $order->products[$i]['shipping_time'] . '</small></nobr>';
            }

    Und hier noch mal ein etwas längerer Ausschnitt des Blocks:
    Code: PHP  [Auswählen]
            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 .= '<br /><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
                    }
            }

      $data_products .= '  </div>'. PHP_EOL .
                        '  </td>'. PHP_EOL .
                        '  <td class="main_row" align="right" valign="top"><nobr>' . $xtPrice->xtcFormat($order->products[$i]['price'], true) . '</nobr></td>'. PHP_EOL .
                        '  <td class="main_row" align="right" valign="top"><nobr>' . $xtPrice->xtcFormat($order->products[$i]['final_price'], true) . '</nobr>';

    Oder schau Dir mal Deine /lang/german/german.php an. Da müsste folgendes drin stehen:
    Code: PHP  [Auswählen]
    define('SHIPPING_TIME','Lieferzeit: ');
    define('MORE_INFO','[Mehr]');

    Bevor Du was änderst mach aber auf jeden Fall ein Backup der Datei da ich nur durch Selbststudium ein klein wenig php kann.

    Gruß
     Dirk

    knecht2020

    • Fördermitglied
    • Beiträge: 233
    • Geschlecht:
    Re: Text "Lieferzeit" fehlt im Checkout
    Antwort #2 am: 02. August 2012, 13:32:08
    Hallo Dirkk, danke aber bei mir schaut das ganz anders aus. Ich hänge es mal an.
    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);
    }
    //allow duty-note in checkout_confirmation
    $smarty->assign('DELIVERY_DUTY_INFO', $main->getDeliveryDutyInfo($order->delivery['country']['iso_code_2']));

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

    //new output array, set in includes/classes/order.php function cart
    $smarty->assign('PRODUCTS_ARRAY', $order->products);
    //echo print_r($order->products);  //DEBUG

    $smarty->assign('ORDER_TAX_GROUPS', sizeof($order->info['tax_groups']));

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

    if (MODULE_ORDER_TOTAL_INSTALLED) {
      $order_total_modules->process();
      $total_block = $order_total_modules->output();
      $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
          $smarty->assign('PAYMENT_INFORMATION', $confirmation['fields']);
        }
      }
    }

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

      $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'));
      $smarty->assign('TEXT_AGB_CHECKOUT', sprintf(TEXT_AGB_CHECKOUT,$main->getContentLink(3, MORE_INFO,'SSL') , $main->getContentLink(REVOCATION_ID, MORE_INFO,'SSL')));
    }

    $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');
    ?>
    Vielleicht kannst du mal schauen ob du was damit anfangen kannst.
    Sicherung ist natürlich gemacht.
    Danke

    DirkK

    • Fördermitglied
    • Beiträge: 230
    • Geschlecht:
    Re: Text "Lieferzeit" fehlt im Checkout
    Antwort #3 am: 02. August 2012, 13:51:17
    Also in Deiner Datei fehlt ein ganzer Block wohl auf Abänderungen Deinerseits, welcher auch die "SHIPPING_Time" enthält. Und zwar dieser hier:

    Code: PHP  [Auswählen]
    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>'. PHP_EOL .
                             '  <td class="main_header" style="width:50px" align="left" valign="top"><b>' . HEADER_QTY . '</b></td>'. PHP_EOL .
                             '  <td class="main_header" style="padding-left:95px;" align="left" valign="top"><b>' . HEADER_ARTICLE . '</b></td>'. PHP_EOL .
                             '  <td class="main_header" style="width:100px;" align="right" valign="top"><b>' . HEADER_SINGLE . '</b></td>'. PHP_EOL .
                             '  <td class="main_header" style="width:100px;" align="right" valign="top"><b>' . HEADER_TOTAL . '</b></td>'. PHP_EOL .
                             '</tr>'. PHP_EOL ;
    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">' . $order->products[$i]['name'] . '</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";
    */

            $data_products .= '<tr>'. PHP_EOL .
                      '  <td class="main_row" align="left" valign="top">' . $order->products[$i]['qty'] . ' x ' . '</td>'. PHP_EOL .
                      '  <td class="main_row" align="left" valign="top">
                      <div style="width:90px; float:left;"><img style="max-width:80px" src="'
    .DIR_WS_THUMBNAIL_IMAGES.xtc_get_products_image($order->products[$i]['id']).'" /></div>
                      <div style="width:230px; float:left;">'
    . $main->getProductPopupLink($order->products[$i]['id'],$order->products[$i]['name']).
                      '<br /><small>' . (!empty($order->products[$i]['short_description'])?trim(substr(strip_tags($order->products[$i]['short_description']),0,300)):trim(substr(strip_tags($order->products[$i]['description']),0,300))). ' [...]' . $main->getProductPopupLinkMore($order->products[$i]['id'],' [Mehr]') . '</small>';

    /*
    $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 .= $order->products[$i]['short_description'];
    } else {
      $data_products .= trim(substr(strip_tags($order->products[$i]['description']),0,300)) . ' [...]';
    }
    $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') {
        $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 .= '<br /><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
                    }
            }

      $data_products .= '  </div>'. PHP_EOL .
                        '  </td>'. PHP_EOL .
                        '  <td class="main_row" align="right" valign="top"><nobr>' . $xtPrice->xtcFormat($order->products[$i]['price'], true) . '</nobr></td>'. PHP_EOL .
                        '  <td class="main_row" align="right" valign="top"><nobr>' . $xtPrice->xtcFormat($order->products[$i]['final_price'], true) . '</nobr>';

            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']) . '%'. PHP_EOL;
                              }
                              $data_products .= '  </td>'. PHP_EOL .
                                                '</tr>'. PHP_EOL;  
                            }
                            $data_products .= '</table>'. PHP_EOL;
    $smarty->assign('PRODUCTS_BLOCK', $data_products);

    Dieser kam eigentlich direkt nach:
    Code: PHP  [Auswählen]
        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'));
          }
        }

    Das ist mir jetzt leider zu hoch. Da musst Du wohl auf die Antwort eines Fachmanns warten.

    Gruß
     Dirk

    DirkK

    • Fördermitglied
    • Beiträge: 230
    • Geschlecht:
    Re: Text "Lieferzeit" fehlt im Checkout
    Antwort #4 am: 02. August 2012, 14:56:41
    Kannst Du bitte auch mal Deine checkout_confirmation.html posten. Danke

    knecht2020

    • Fördermitglied
    • Beiträge: 233
    • Geschlecht:
    Re: Text "Lieferzeit" fehlt im Checkout
    Antwort #5 am: 02. August 2012, 15:00:55
    Natürlich gerne und danken muss ich, für die Hilfe
    Code: PHP  [Auswählen]
    {config_load file="$language/lang_$language.conf" section="checkout_confirmation"}
    {config_load file="$language/lang_$language.conf" section="checkout_navigation"}
    {config_load file="$language/lang_$language.conf" section="duty_info"}
    <ul id="checkoutnavigation">
        <li class="inactive"><span class="number">1.</span> <span class="title">{#title_shipping#}</span><br />
           <span class="description">{#desc_shipping#}</span></li>
       <li class="inactive"><span class="number">2.</span> <span class="title">{#title_payment#}</span><br />
           <span class="description">{#desc_payment#}</span></li>
       <li class="active"><span class="number">3.</span> <span class="title">{#title_confirmation#}</span><br />
           <span class="description">{#desc_confirmation#}</span></li>
       <li class="inactive"><span class="number">4.</span> <span class="title">{#title_success#}</span><br />
           <span class="description">{#desc_success#}</span></li>
    </ul>
    <div style="clear:both"></div>

    <br />
    <h1>{#heading_confirmation#}</h1>

    <div class="checkout_infos">

      <div class="checkoutInfoBoxes" style="text-align: justify;">
        {#text_information#}
       {if $IP_LOG=='true'}
        <p>{#text_ip#}:&nbsp;<strong>{$CUSTOMERS_IP}</strong></p>
       {/if}
      </div>

      {if $REVOCATION}
      <div class="checkoutInfoBoxes red">    
        {$TEXT_AGB_CHECKOUT}
      </div>
      {/if}

      <div style="clear:both"><br /></div>  

      <div class="checkoutNavBoxes">
        <h2>{#text_shipping_address#}</h2>
       <div class="text">&nbsp;<a href="{$SHIPPING_ADDRESS_EDIT}">{#text_edit#}</a></div>
       <div style="clear:both">{$DELIVERY_LABEL}<br /></div>
      </div>
     
      {if $BILLING_LABEL}
      <div class="checkoutNavBoxes">
        <h2>{#text_payment_address#}</h2>
       <div class="text">&nbsp;<a href="{$BILLING_ADDRESS_EDIT}">{#text_edit#}</a></div>
       <div style="clear:both">{$BILLING_LABEL}<br /></div>
      </div>
      {/if}

      <div style="clear:both"><br /></div>
     
      {if $SHIPPING_METHOD}
        <div class="checkoutNav2Boxes">
          <h2>{#text_shipping_method#}</h2>
         <div class="text">&nbsp;<a href="{$SHIPPING_EDIT}">{#text_edit#}</a></div>
         <p style="clear:both;">{$SHIPPING_METHOD}</p>
        </div>
      {/if}

      {if $PAYMENT_METHOD!=''}
        <div class="checkoutNav2Boxes">
          <h2>{#text_payment_method#}</h2>
         <div class="text">&nbsp;<a href="{$PAYMENT_EDIT}">{#text_edit#}</a></div>
         <p style="clear:both;">{$PAYMENT_METHOD}</p>
        </div>
        <div style="clear:both"></div>
      {/if}
     
      {if $ORDER_COMMENTS!=''}
        <br />
        <h2>{#text_comments#}</h2>
       <div class="text">&nbsp;<a href="{$PAYMENT_EDIT}">{#text_edit#}</a></div>  
       <div style="clear:both;padding: 0 5px;">{$ORDER_COMMENTS}</div>  
      {/if}
     
      {if $PAYMENT_INFORMATION!=''}
        <br />
        <h2>{#text_payment_info#}</h2>
       <table style="clear:both">
          <tr>
            {foreach name=aussen item=data from=$PAYMENT_INFORMATION}    
              <td class="main">{$data.title|stripslashes}</td>
              <td>&nbsp;</td>
              <td class="main">{if $data.field}{$data.field|stripslashes}{else}&nbsp;{/if}</td>    
            {/foreach}
          </tr>
        </table>
      {/if}
     
      <br />
      <h2>{#text_products#}</h2>
     <p <div class="text">&nbsp;<a href="{$PRODUCTS_EDIT}">{#text_edit#}</a></p>
     <div style="clear:both"></div>
     
    </div>

    <div class="highlightbox checkoutbox">  
      {* BOC PRODUCTS TABLE *}
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr class="headerrow">
          <td class="main_header" style="width:50px" align="left" valign="top"><b>{$smarty.const.HEADER_QTY}</b></td>
          <td class="main_header" style="padding-left:90px;" align="left" valign="top"><b>{$smarty.const.HEADER_ARTICLE}</b></td>
          <td class="main_header" style="width:100px;" align="right" valign="top"><b>{$smarty.const.HEADER_SINGLE}</b></td>
          <td class="main_header" style="width:100px;" align="right" valign="top"><b>{$smarty.const.HEADER_TOTAL}</b></td>
        </tr>
        {foreach name=aussen item=data from=$PRODUCTS_ARRAY}
        <tr>
          <td class="main_row" align="left" valign="top">{$data.qty}</td>
          <td class="main_row" align="left" valign="top">
            <div style="width:90px; float:left;">{$data.image}</div>
            <div style="width:520px; float:left;">{$data.link}
              {if $data.order_description}<div class="small">{$data.order_description}</div>{/if}
              {if $data.shipping_time}<br /><span class="nobr small">{$data.shipping_time}</span>{/if}
              {foreach key=a_data item=attrib_data from=$data.attributes}
                {if $attrib_data.value != ''}<br /><span class="nobr small">&nbsp;<i> - {$attrib_data.option} : {$attrib_data.value}</i></span>{/if}          
              {/foreach}
            </div>
          </td>      
          <td class="main_row" align="right" valign="top">{$data.price_formated}</td>
          <td class="main_row" align="right" valign="top">{$data.final_price_formated}{if $ORDER_TAX_GROUPS > 1}<br />{$data.tax} %{/if}</td>
        </tr>
        {/foreach}
      </table>
      {* EOC PRODUCTS TABLE *}
     
      <div class="hr"></div>
      {if $TOTAL_BLOCK}
        <div class="total">
          <table align="right">
            {$TOTAL_BLOCK}
          </table>
          <div style="clear:both"></div>
        </div>
      {/if}
      {if $DELIVERY_DUTY_INFO == true}
        <div class="hr"></div>
        <div style="font-size:11px; border:0px solid red;padding:5px;margin-top:8px;">{#text_duty_info#}</div>
     {/if}
      <br />
      <div style="text-align:right">{$CHECKOUT_FORM}{if $MODULE_BUTTONS!=''}&nbsp;{$MODULE_BUTTONS}{/if}&nbsp;{$CHECKOUT_BUTTON}</div>  
    </div>
     

    DirkK

    • Fördermitglied
    • Beiträge: 230
    • Geschlecht:
    Re: Text "Lieferzeit" fehlt im Checkout
    Antwort #6 am: 02. August 2012, 21:12:43
    Änder mal das:
    Code: PHP  [Auswählen]
    {if $data.shipping_time}<br /><span class="nobr small">{$data.shipping_time}</span>{/if}

    so um:
    Code: PHP  [Auswählen]
    {if $data.shipping_time}<br /><span class="nobr small">{#SHIPPING_TIME#} {$data.shipping_time}</span>{/if}

    Weiß aber nicht ob es so klappt.

    Gruß
     Dik

    knecht2020

    • Fördermitglied
    • Beiträge: 233
    • Geschlecht:
    Re: Text "Lieferzeit" fehlt im Checkout
    Antwort #7 am: 03. August 2012, 19:51:33
    Hallo Dik,
    das Problem hat sich erledigt, lag soeit ich weiß an Sprachkonstanten.
    Da ich es nicht selber gemacht habe kann ich leider nicht mehr dazu sagen.
    Danke für deine Hilfe.
    Gruß
    Werner

    web28

    • modified Team
    • Beiträge: 9.404
    Re: Text "Lieferzeit" fehlt im Checkout
    Antwort #8 am: 04. August 2012, 16:30:26
    Hier die korrekte Zeile für die checkout_confirmation.html von Werner

    Code: PHP  [Auswählen]
    {if $data.shipping_time}<br /><span class="nobr small">{$smarty.const.SHIPPING_TIME}{$data.shipping_time}</span>{/if}

    Es fehlte {$smarty.const.SHIPPING_TIME}

    derJan

    • Mitglied
    • Beiträge: 120
    • Geschlecht:
    Re: Text "Lieferzeit" fehlt im Checkout
    Antwort #9 am: 27. August 2012, 23:25:39
    Nabend zusammen,

    ich bin auch gerade dabei meinen Shop neu aufzubauen und kann auf "der letzten Seite" auch keine Angabe zur Lieferzeit finden. Bei mir steht nur "Lieferzeit:" ... aber keine Angae zur Lieferzeit. Nun benutze ich zwar ein gekauftes Template, doch habe ich mir mal das original xtc5 Template (zum Vergleich) angesehen ...
    ... in der original checkout_confirmation.html kann ich die "shipping_time" Angabe nirgends finden:

    Code: PHP  [Auswählen]
    {config_load file="$language/lang_$language.conf" section="checkout_confirmation"} {config_load file="$language/lang_$language.conf" section="checkout_navigation"}
    <ul id="checkoutnavigation">
        <li class="inactive"><span class="number">1.</span> <span class="title">{#title_shipping#}</span><br />
           <span class="description">{#desc_shipping#}</span></li>
       <li class="inactive"><span class="number">2.</span> <span class="title">{#title_payment#}</span><br />
           <span class="description">{#desc_payment#}</span></li>
       <li class="active"><span class="number">3.</span> <span class="title">{#title_confirmation#}</span><br />
           <span class="description">{#desc_confirmation#}</span></li>
       <li class="inactive"><span class="number">4.</span> <span class="title">{#title_success#}</span><br />
           <span class="description">{#desc_success#}</span></li>
    </ul>
    <div style="clear:both"></div>
    <br />
    <h1>{#heading_confirmation#}</h1>
    <p>{#text_information#}</p>
    {if $IP_LOG=='true'}
    <p>{#text_ip#}:&nbsp;<strong>{$CUSTOMERS_IP}</strong></p>
    <p>{/if}</p>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td width="40%"><strong>{#text_shipping_address#}</strong><br />
               {$DELIVERY_LABEL}<br />
                <a href="{$SHIPPING_ADDRESS_EDIT}">{#text_edit#}</a></span></td>
           <td width="60%">{if $BILLING_LABEL}<strong>{#text_payment_address#}</strong><br />
               {$BILLING_LABEL}<br />
                <a href="{$BILLING_ADDRESS_EDIT}">{#text_edit#}</a>{/if}</td>
       </tr>
    </table>
    {if $SHIPPING_METHOD}
    <h2>{#text_shipping_method#}</h2>
    <p>{$SHIPPING_METHOD}&nbsp;<a href="{$SHIPPING_EDIT}">{#text_edit#}</a></p>
    {/if} {if $PAYMENT_METHOD!=''}
    <h2>{#text_payment_method#}</h2>
    <p>{$PAYMENT_METHOD}&nbsp;<a href="{$PAYMENT_EDIT}">{#text_edit#}</a></p>
    {/if} {if $ORDER_COMMENTS!=''}
    <h2>{#text_comments#}</h2>
    <p>{$ORDER_COMMENTS}&nbsp;<a href="{$PAYMENT_EDIT}">{#text_edit#}</a></p>
    {/if} {if $PAYMENT_INFORMATION!=''}
    <h2>{#text_payment_info#}</h2>
    <p>{$PAYMENT_INFORMATION}</p>
    {/if}
    <h2>{#text_products#}</h2>
    <p>{#text_products#}&nbsp;<a href="{$PRODUCTS_EDIT}">{#text_edit#}</a></p>
    <div class="highlightbox"> {$PRODUCTS_BLOCK}
        <div class="hr"></div>
        {$TOTAL_BLOCK} </div>
    <br />
    {if $REVOCATION} <strong>{$REVOCATION_TITLE} </strong> {$REVOCATION} <strong>{$REVOCATION_TITLE}</strong> {$REVOCATION_LINK}<br />
    <strong>{$AGB_TITLE}</strong> {$AGB_LINK} {/if}
    <p>{$CHECKOUT_FORM}{if $MODULE_BUTTONS!=''}&nbsp;{$MODULE_BUTTONS}{/if}&nbsp;{$CHECKOUT_BUTTON}</p>
     

    xxhappyxx

    • Viel Schreiber
    • Beiträge: 829
    • Geschlecht:
    Re: Text "Lieferzeit" fehlt im Checkout
    Antwort #10 am: 27. August 2012, 23:46:47
    Hallo back@me,

    das "shipping_time" wirst du in der checkout_confirmation.html auch nicht finden. Die Artikel werden über {$PRODUCTS_BLOCK} eingefügt. Und das wiederum, wird in der checkout_confirmation.php definiert.

    Wenn die also die Lieferzeit fehlt, solltest du da mal schauen ob dort alles im Grünen ist.

    Gruß Thomas

    derJan

    • Mitglied
    • Beiträge: 120
    • Geschlecht:
    Re: Text "Lieferzeit" fehlt im Checkout
    Antwort #11 am: 27. August 2012, 23:55:49
    Hallo Thomas,

    vielen Dank für Deine Antwort.

    Folgendes habe ich in meiner "checkout_confirmation.php" in Zeile 189-197 gefunden:

    Code: PHP  [Auswählen]
    if (ACTIVATE_SHIPPING_STATUS == 'true') {
    $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>'
    ;

    Da sollte doch soweit alles passen ... oder habe ich etwas übersehen? Ich bin auch nur ein blutiger Laie und "wühle" mich so durch den Code durch :-|

    xxhappyxx

    • Viel Schreiber
    • Beiträge: 829
    • Geschlecht:
    Re: Text "Lieferzeit" fehlt im Checkout
    Antwort #12 am: 28. August 2012, 00:05:22
    Dann mache mal aus

    Code: PHP  [Auswählen]
    if (ACTIVATE_SHIPPING_STATUS == 'true') {

    Code: PHP  [Auswählen]
    if (ACTIVATE_SHIPPING_STATUS == true) {

    Könnte helfen, so steht es jedenfalls bei mir.

    derJan

    • Mitglied
    • Beiträge: 120
    • Geschlecht:
    Re: Text "Lieferzeit" fehlt im Checkout
    Antwort #13 am: 28. August 2012, 00:13:37
    Das hat leider nichts gebracht ... alles unverändert geblieben (siehe Anhang).

    Mir ist aber auch aufgefallen, dass mir auch die komplette Lieferzeitangabe in der Produktbeschreibung fehlt (Lieferzeit: 5 Tage).
    http://newshop.haubendesign.de/Modellfliegerbrillen/ModelGlasses/ModelGlasses-Nimbus::591.html
    Sollte das etwas mit der fehlenden Anzeige auf der letzten Seite zu tun haben?

    xxhappyxx

    • Viel Schreiber
    • Beiträge: 829
    • Geschlecht:
    Re: Text "Lieferzeit" fehlt im Checkout
    Antwort #14 am: 28. August 2012, 00:35:23
    Dein shot zeigt doch die Übersicht auf der checkout_confirmation? und diese Daten kommen aus der order.php.

    Ist denn da 'PRODUCTS_SHIPPING_TIME' => $order_data_values['products_shipping_time'], vorhanden?
    Shop Hosting