Zum Inhalt wechseln



Neueste Nachrichten (in Englisch): (am laden..)

Foto

Thema Button-Lösung


  • Bitte melden Sie sich an, um zu antworten
153 Antworten in diesem Thema

#21 spielfuchs

spielfuchs
  • Members
  • 71 Beiträge
  • Gender:Male
  • Location:Deutschland
  • Ihr Name:Spielpanter

Geschrieben 14 July 2012 - 08:19

Und wieder einmal habe ich mich aufgemacht um zu erfahren, wie die Seite aussehen sollte.
Hier mal ein Vorschlag vom Händlerbund.


Eingefügtes Bild

----------------------------------------------------------------------------------------------------
und hier, was erforderlich ist.Da kann man sehen, das eine verlinkung auf die Produktseite-Beschreibung nicht zulässig ist.

Eingefügtes Bild

Ist natürlich nur ein Vorschlag und keine Rechtsberatung.

Ich hoffe, ich konnte helfen.
Nun liegt es an den Programmieren, dieses umzusetzten. Jedenfalls, das mit den Bildern ist hier(siehe oben) schon mal gelöst, aber die Merkmale-Beschreibung der Ware muß irgendwie mit rein. Mein Tip mit ne Scroll Box unter dem Artikelnamen irgendwie? Wer hat Vorschläge???

Gruß Rene.

Bearbeitet von spielfuchs, 14 July 2012 - 08:20.


#22 De Dokta

De Dokta
  • Members
  • 925 Beiträge
  • Gender:Male
  • Ihr Name:Dr. Bachmann

Geschrieben 14 July 2012 - 09:31

Hi,

was der Gesetzgeber in seiner unermesslichen Weisheit nun wirklich gemeint hat, werden am Ende wieder die Gerichte klären und bis dahin wird über JEDEM, der sich traut, hierzulande einen Online-Shop zu betreiben, das Damoklesschwert einer Abmahnung hängen.

Verlinkung zulässig oder nicht? Die einen sagen so (s.o.), die anderen sagen so. Nicht zulässig scheint demnach, ANSTELLE der "wesentlichen Produktmerkmale" eine Verlinkung auf die product_info zu setzen, wohl aber dem Kunden fakultativ die Möglichkeit einzuräumen, sich die Produktseite nochmal anzuschauen.

Ich habe beim Posten des umgebauten Gerüstes der checkout_confirmation dieses ausdrücklich als VORLÄUFIG bezeichnet. Niemand hier hat behauptet, dass mit einer Verlinkung auf die product_info die Anforderung der "wesentlichen Produktmerkmale" gelöst sei.

Ich würde, wenn ich es brauchen würde (tu ich nicht, unser Shop sitzt im Ausland :P ), ein zusätzliches Feld in die Tabelle PRODUCTS_DESCRIPTION einbauen, John arbeitet mit der Product extra fields-Contrib, Du möchtest eine Scroll-Box. Tue jeder, wie er mag!

Gruß
J.J.
Bitte keine PN mit Nachfragen zu meinen Forumsbeiträgen! Wer Fragen hat, stellt sie bitte im Forum. Ich werde unaufgeforderte PN künftig nicht mehr beantworten.

#23 histocard

histocard
  • Members
  • 177 Beiträge
  • Gender:Female
  • Ihr Name:Julia Meyer

Geschrieben 14 July 2012 - 11:45

Prima, das sieht ja jetzt schon alles ganz gut aus :rolleyes:

Was mir jetzt noch fehlt ist also folgendes:

1. Die Produkttabelle farbig hinterlegen.
2. Wie bekomme ich die Zwischensumme, Steuer etc. auch noch mit in die Tabelle und
3. wie bekomme ich die Rechnungsinformationen links unten daneben weg, die sind ja jetzt doppelt gemoppelt.
4. Den Button von der Lösung hätte ich gerne noch von links nach rechts verschoben.

und dann bin ich glücklich und die Angie hoffentlich auch ;) .

glg Julia

#24 De Dokta

De Dokta
  • Members
  • 925 Beiträge
  • Gender:Male
  • Ihr Name:Dr. Bachmann

Geschrieben 14 July 2012 - 12:21

Hi,

1. da ich den Code deiner checkout_confirmation nicht kenne - keine Antwort möglich.
2. normalerweise im Admin -> Module -> Order total: Da kannst Du einstellen, was an der Stelle in welcher Reihenfolge angezeigt wird.

3. und 4. wie 1.

Gruß
J.J.

Bearbeitet von De Dokta, 14 July 2012 - 12:22.

Bitte keine PN mit Nachfragen zu meinen Forumsbeiträgen! Wer Fragen hat, stellt sie bitte im Forum. Ich werde unaufgeforderte PN künftig nicht mehr beantworten.

#25 histocard

histocard
  • Members
  • 177 Beiträge
  • Gender:Female
  • Ihr Name:Julia Meyer

Geschrieben 14 July 2012 - 14:06

Hi,

1. da ich den Code deiner checkout_confirmation nicht kenne - keine Antwort möglich.
2. normalerweise im Admin -> Module -> Order total: Da kannst Du einstellen, was an der Stelle in welcher Reihenfolge angezeigt wird.

3. und 4. wie 1.

Gruß
J.J.


Klar, sorry bist ja nicht Nostradamus ;)

Also hier meine checkout_confirmation:
<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

// if the customer is not logged on, redirect them to the login page
  if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT));
    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
  }
  
//osc-support-edition BOF
  	if ($HTTP_POST_VARS['terms'] != 'true') {
  		$messageStack->add_session('terms_agree', HEADER_ERROR_ACCEPT_TERMS);
        tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    }
//osc-support-edition EOF

// if there is nothing in the customers cart, redirect them to the shopping cart page
  if ($cart->count_contents() < 1) {
    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
  }

// avoid hack attempts during the checkout procedure by checking the internal cartID
  if (isset($cart->cartID) && tep_session_is_registered('cartID')) {
    if ($cart->cartID != $cartID) {
      tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    }
  }

// if no shipping method has been selected, redirect the customer to the shipping method selection page
  if (!tep_session_is_registered('shipping')) {
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  }

  if (!tep_session_is_registered('payment')) tep_session_register('payment');
  if (isset($HTTP_POST_VARS['payment'])) $payment = $HTTP_POST_VARS['payment'];

  if (!tep_session_is_registered('comments')) tep_session_register('comments');
  if (tep_not_null($HTTP_POST_VARS['comments'])) {
    $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
  }

// load the selected payment module
  require(DIR_WS_CLASSES . 'payment.php');
  $payment_modules = new payment($payment);

  require(DIR_WS_CLASSES . 'order.php');
  $order = new order;

  $payment_modules->update_status();

  if ( ($payment_modules->selected_module != $payment) || ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) {
    tep_redirect(tep_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($shipping);

  require(DIR_WS_CLASSES . 'order_total.php');
  $order_total_modules = new order_total;
  $order_total_modules->process();

// Stock Check
  $any_out_of_stock = false;
  if (STOCK_CHECK == 'true') {
    for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
      if (tep_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) ) {
      tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
    }
  }

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_CONFIRMATION);

  $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  $breadcrumb->add(NAVBAR_TITLE_2);

  require(DIR_WS_INCLUDES . 'template_top.php');
?>

<h1><?php echo HEADING_TITLE; ?></h1>
<h3><?php echo HEADING_TEXT; ?></h3>

<?php
  if (isset($$payment->form_action_url)) {
    $form_action_url = $$payment->form_action_url;
  } else {
    $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
  }

  echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');
?>

<div class="contentContainer">
  <h2><?php echo HEADING_SHIPPING_INFORMATION; ?></h2>

  <div class="infoBoxContents">
    <table border="0" width="100%" cellspacing="1" cellpadding="2">
      <tr>

<?php
  if ($sendto != false) {
?>

        <td width="50%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td><?php echo '<strong>' . HEADING_DELIVERY_ADDRESS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'); ?></td>
          </tr>

<?php
    if ($order->info['shipping_method']) {
?>

          <tr>
            <td>
<?php echo tep_draw_separator('pixel_trans.gif', '1', '30'); ?><?php echo '<strong>' . HEADING_SHIPPING_METHOD . '</strong></span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo $order->info['shipping_method']; ?></td>
          </tr>
<?php
    }
?>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '30'); ?><?php echo '<strong>' . HEADING_PAYMENT_METHOD . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo $order->info['payment_method']; ?></td>
          </tr>
        </table></td>

<?php
  }
?>

   <?php 
   if (is_array($payment_modules->modules)) {
    if ($confirmation = $payment_modules->confirmation()) {
    for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) {
?>
    <table border="0" cellspacing="0" cellpadding="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['title']; ?></td>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['field']; ?></td>
      </tr>
</table><?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>
<?php
      }
     }
    }
?>
        <td width="<?php echo (($sendto != false) ? '50%' : '100%'); ?>" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
            <td><?php echo '<strong>' . HEADING_BILLING_ADDRESS . '</strong> <a href="' . ((tep_session_is_registered('customer_is_guest'))?tep_href_link(FILENAME_CREATE_ACCOUNT, 'guest=guest', 'SSL'):tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL')) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'); ?></td>
          </tr>

        </table></td>
      </tr>
       <?php  
  if (tep_not_null($order->info['comments'])) {
?>
<tr>
      <td><table>
     <tr>
 <div class=" infoBoxContents">
 <td><?php echo '<strong>' . HEADING_ORDER_COMMENTS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a><br/>'; ?></td>
 </tr>
<tr><td>
    <?php echo nl2br(tep_output_string_protected($order->info['comments'])) . tep_draw_hidden_field('comments', $order->info['comments']); ?>
</td>
  </div></tr>
</table><?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?></td></tr>
<?php
  }
?>
  <?php
  if (sizeof($order->info['tax_groups']) > 1) {
?>
<tr>
      <td><table>
          <tr>
            <td colspan="2"><?php echo '<strong>' . HEADING_PRODUCTS . '</strong> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
            <td align="right"><strong><?php echo HEADING_TAX; ?></strong></td>
            <td align="right"><strong><?php echo HEADING_TOTAL; ?></strong></td>
          </tr>
       </table></td>
       </tr>
<?php
  } else {
?>
<tr>
      <td><table>
          <tr>
            <td colspan="3"><?php echo '<strong>' . HEADING_PRODUCTS . '</strong> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
        </table></td>
       </tr>  
           </table>
  </div>
       <div class="ui-widget-content infoBoxContents">
  <table style="text-align: left; width: 100%;" border="0"
 cellpadding="2" cellspacing="2">

    <tr>
<?php
  }

  for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
$bild_query = tep_db_query("select products_id, products_image from " . TABLE_PRODUCTS . " where products_id = '" . $order->products[$i]['id'] . "' ");
  $bild = tep_db_fetch_array($bild_query);
  $bild_auflistung = $bild['products_image'];
    echo '          <tr>' . "\n" .
         '            <td align="center">' . tep_image(DIR_WS_IMAGES . $bild_auflistung, $order->products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</td>' .
         '            <td align="right" valign="top" width="30">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" .
         '            <td valign="top">'  . $order->products[$i]['name'];
         

    if (STOCK_CHECK == 'true') {
      echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
    }

    if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
      for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
        echo '<br /><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
      }
    }

    echo '</td>' . "\n";
    
    if (sizeof($order->info['tax_groups']) > 1) echo '            <td valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";

    echo '            <td align="right" valign="top">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" .
         '          </tr>' . "\n";
  }
?>

        </table></td>
      </tr>
    </table>
  </div>
  <h2><?php echo HEADING_BILLING_INFORMATION; ?></h2>

  <div class="contentText">
    <table border="0" width="100%" cellspacing="1" cellpadding="2">
      <tr>
        <td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td><?php echo '<strong>' . HEADING_BILLING_ADDRESS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'); ?></td>
          </tr>
          <tr>
            <td><?php echo '<strong>' . HEADING_PAYMENT_METHOD . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo $order->info['payment_method']; ?></td>
          </tr>
        </table></td>
        <td width="70%" valign="top" align="right"><table border="0" cellspacing="0" cellpadding="2">

<?php
  if (MODULE_ORDER_TOTAL_INSTALLED) {
    $order_total_modules->process();
    echo $order_total_modules->output();
  }
?>

        </table></td>
      </tr>
    </table>
  </div>
  <h3><?php echo ZOLLBESTIMMUNG; ?></h3>  

  <?php
  if (is_array($payment_modules->modules)) {
    echo $payment_modules->process_button();
  }

  echo tep_draw_button(IMAGE_BUTTON_CONFIRM_ORDER, 'check', null, 'primary');
?>
<?php
  if (is_array($payment_modules->modules)) {
    if ($confirmation = $payment_modules->confirmation()) {
?>

  <h2><?php echo HEADING_PAYMENT_INFORMATION; ?></h2>

  <div class="contentText">
    <table border="0" cellspacing="0" cellpadding="2">
      <tr>
        <td colspan="4"><?php echo $confirmation['title']; ?></td>
      </tr>

<?php
      for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) {
?>

      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['title']; ?></td>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['field']; ?></td>
      </tr>

<?php
      }
?>

    </table>
  </div>

<?php
    }
  }

  if (tep_not_null($order->info['comments'])) {
?>

  <h2><?php echo '<strong>' . HEADING_ORDER_COMMENTS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></h2>

  <div class="contentText">
    <?php echo nl2br(tep_output_string_protected($order->info['comments'])) . tep_draw_hidden_field('comments', $order->info['comments']); ?>
  </div>

<?php
  }
?>

  <div class="contentText">
    <div style="float: left; width: 60%; padding-top: 5px; padding-left: 15%;">
      <div id="coProgressBar" style="height: 5px;"></div>

      <table border="0" width="100%" cellspacing="0" cellpadding="2">
        <tr>
          <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
          <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_PAYMENT . '</a>'; ?></td>
          <td align="center" width="33%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
        </tr>
      </table>
    </div>

    <div style="float: right;">



    </div>
  </div>

</div>

<script type="text/javascript">
$('#coProgressBar').progressbar({
  value: 100
});
</script>

</form>

<?php
  require(DIR_WS_INCLUDES . 'template_bottom.php');
  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

In der order total kann ich ja nur die Reihenfolge der 4 Gesamtsummen-Komponenten regeln aber ja leider nicht wo und wie und mit wem sie steht.

Bearbeitet von histocard, 14 July 2012 - 14:12.


#26 De Dokta

De Dokta
  • Members
  • 925 Beiträge
  • Gender:Male
  • Ihr Name:Dr. Bachmann

Geschrieben 14 July 2012 - 15:06

Hi,

hier kommt erstmal noch die Lösung für das Einbinden des Hinweistextes auf Zölle etc., abhängig davon, woher der Kunde kommt:

?php      $zone_query = tep_db_query("select geo_zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where zone_country_id = '" . $order->delivery['country_id'] . "' ");
     $zone = tep_db_fetch_array($zone_query);
     $zone_data = $zone['geo_zone_id'];

if($zone_data =="2" || $zone_data =="3") {
}else{
    echo '<tr><td>' . tep_draw_separator('pixel_trans.gif', '1', '20'), TEXT_ZUSATZKOSTEN . '</td></tr>';
    }
     ?>

Wenn es unter der Gesamtsumme und über dem Kaufen_button stehen soll, kommt es so in den Code der Datei:
<?php
  if (MODULE_ORDER_TOTAL_INSTALLED) {
    $order_total_modules->process();
    echo $order_total_modules->output();
  }
?>


        </table></td>
      </tr>
<?php      $zone_query = tep_db_query("select geo_zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where zone_country_id = '" . $order->delivery['country_id'] . "' ");
     $zone = tep_db_fetch_array($zone_query);
     $zone_data = $zone['geo_zone_id'];

if($zone_data =="2" || $zone_data =="3") {
}else{
    echo '<tr><td>' . tep_draw_separator('pixel_trans.gif', '1', '20'), TEXT_ZUSATZKOSTEN . '</td></tr>';
    }
     ?>
    </table>
  </div>

TEXT_ZUSATZKOSTEN definiert in der \catalog\includes\languages\german\checkout_confirmation.php.
$$zone_data =="2" steht bei mir für Deutschland, $zone_data =="3" für das EU-Ausland. Das kann bei euch anders sein. Einfach in der Tabelle GEO_ZONES nachschauen und dann im Code die entsprechenden Werte eintragen.

Gruß
J.J.
Bitte keine PN mit Nachfragen zu meinen Forumsbeiträgen! Wer Fragen hat, stellt sie bitte im Forum. Ich werde unaufgeforderte PN künftig nicht mehr beantworten.

#27 histocard

histocard
  • Members
  • 177 Beiträge
  • Gender:Female
  • Ihr Name:Julia Meyer

Geschrieben 14 July 2012 - 15:08

Den Text hab ich schon drin! Bisserl was hab ich schon alleine geschafft :D

glg julia

#28 histocard

histocard
  • Members
  • 177 Beiträge
  • Gender:Female
  • Ihr Name:Julia Meyer

Geschrieben 14 July 2012 - 15:19

Deine Lösung ist halt etwas feiner ... allerdings zeigt es mir den Text jetzt an wenn ich innerhalb der EU bestelle und nicht von außerhalb. Hab ich das richtig gesehen?

#29 De Dokta

De Dokta
  • Members
  • 925 Beiträge
  • Gender:Male
  • Ihr Name:Dr. Bachmann

Geschrieben 14 July 2012 - 15:27

Klar, sorry bist ja nicht Nostradamus ;)


... wohl wahr :P;)

schau mal, ob das bei Dir hinhaut. (Deine checkout_confirmation umbenennen, Code als checkout_confirmation.php abspeichern und schauen was passiert):

<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

// if the customer is not logged on, redirect them to the login page
  if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT));
    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
  }
  
//osc-support-edition BOF
        if ($HTTP_POST_VARS['terms'] != 'true') {
                $messageStack->add_session('terms_agree', HEADER_ERROR_ACCEPT_TERMS);
        tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    }
//osc-support-edition EOF

// if there is nothing in the customers cart, redirect them to the shopping cart page
  if ($cart->count_contents() < 1) {
    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
  }

// avoid hack attempts during the checkout procedure by checking the internal cartID
  if (isset($cart->cartID) && tep_session_is_registered('cartID')) {
    if ($cart->cartID != $cartID) {
      tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    }
  }

// if no shipping method has been selected, redirect the customer to the shipping method selection page
  if (!tep_session_is_registered('shipping')) {
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  }

  if (!tep_session_is_registered('payment')) tep_session_register('payment');
  if (isset($HTTP_POST_VARS['payment'])) $payment = $HTTP_POST_VARS['payment'];

  if (!tep_session_is_registered('comments')) tep_session_register('comments');
  if (tep_not_null($HTTP_POST_VARS['comments'])) {
    $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
  }

// load the selected payment module
  require(DIR_WS_CLASSES . 'payment.php');
  $payment_modules = new payment($payment);

  require(DIR_WS_CLASSES . 'order.php');
  $order = new order;

  $payment_modules->update_status();

  if ( ($payment_modules->selected_module != $payment) || ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) {
    tep_redirect(tep_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($shipping);

  require(DIR_WS_CLASSES . 'order_total.php');
  $order_total_modules = new order_total;
  $order_total_modules->process();

// Stock Check
  $any_out_of_stock = false;
  if (STOCK_CHECK == 'true') {
    for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
      if (tep_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) ) {
      tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
    }
  }

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_CONFIRMATION);

  $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  $breadcrumb->add(NAVBAR_TITLE_2);

  require(DIR_WS_INCLUDES . 'template_top.php');
?>

<h1><?php echo HEADING_TITLE; ?></h1>
<h3><?php echo HEADING_TEXT; ?></h3>

<?php
  if (isset($$payment->form_action_url)) {
    $form_action_url = $$payment->form_action_url;
  } else {
    $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
  }

  echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');
?>

<div class="contentContainer">
  <h2><?php echo HEADING_SHIPPING_INFORMATION; ?></h2>

  <div class="infoBoxContents">
    <table border="0" width="100%" cellspacing="1" cellpadding="2">
      <tr>

<?php
  if ($sendto != false) {
?>

        <td width="50%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td><?php echo '<strong>' . HEADING_DELIVERY_ADDRESS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'); ?></td>
          </tr>

<?php
    if ($order->info['shipping_method']) {
?>

          <tr>
            <td>
<?php echo tep_draw_separator('pixel_trans.gif', '1', '30'); ?><?php echo '<strong>' . HEADING_SHIPPING_METHOD . '</strong></span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo $order->info['shipping_method']; ?></td>
          </tr>
<?php
    }
?>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '30'); ?><?php echo '<strong>' . HEADING_PAYMENT_METHOD . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo $order->info['payment_method']; ?></td>
          </tr>
        </table></td>

<?php
  }
?>

   <?php 
   if (is_array($payment_modules->modules)) {
    if ($confirmation = $payment_modules->confirmation()) {
    for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) {
?>
    <table border="0" cellspacing="0" cellpadding="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['title']; ?></td>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['field']; ?></td>
      </tr>
</table><?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>
<?php
      }
     }
    }
?>
        <td width="<?php echo (($sendto != false) ? '50%' : '100%'); ?>" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
            <td><?php echo '<strong>' . HEADING_BILLING_ADDRESS . '</strong> <a href="' . ((tep_session_is_registered('customer_is_guest'))?tep_href_link(FILENAME_CREATE_ACCOUNT, 'guest=guest', 'SSL'):tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL')) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'); ?></td>
          </tr>

        </table></td>
      </tr>
       <?php  
  if (tep_not_null($order->info['comments'])) {
?>
<tr>
      <td><table>
     <tr>
 <div class=" infoBoxContents">
 <td><?php echo '<strong>' . HEADING_ORDER_COMMENTS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a><br/>'; ?></td>
 </tr>

<tr><td>
    <?php echo nl2br(tep_output_string_protected($order->info['comments'])) . tep_draw_hidden_field('comments', $order->info['comments']); ?>
</td>
  </div></tr>

</table></td></tr>


<?php
  }
?>

  <?php
  if (sizeof($order->info['tax_groups']) > 1) {
?>
<tr>
      <td><table><?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>
          <tr>
            <td colspan="2"><?php echo '<strong>' . HEADING_PRODUCTS . '</strong> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
            <td align="right"><strong><?php echo HEADING_TAX; ?></strong></td>
            <td align="right"><strong><?php echo HEADING_TOTAL; ?></strong></td>
          </tr>
       </table></td>
       </tr>
<?php
  } else {
?>
<tr>
      <td><table><?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>
          <tr>
            <td colspan="3"><?php echo '<strong>' . HEADING_PRODUCTS . '</strong> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr> 
        </table></td>
       </tr>  
       
           </table>
  </div>
       <div class="ui-widget-content infoBoxContents">
  
  <table border="0"
 cellpadding="2" cellspacing="2">

    <tr>
      

<?php
  }



  for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {

  
    $bild_query = tep_db_query("select products_id, products_image from " . TABLE_PRODUCTS . " where products_id = '" . $order->products[$i]['id'] . "' ");
  $bild = tep_db_fetch_array($bild_query);
  $bild_auflistung = $bild['products_image'];
    echo '          <tr>' . "\n" .
         '            <td align="center">' . tep_image(DIR_WS_IMAGES . $bild_auflistung, $order->products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</td>' .
         '            <td valign="top">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" .
         '            <td width="55%"valign="top" >'  . $order->products[$i]['name'] . "\n" ."\n" .
         '<br/><br/><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . '">' . 'Artikel-Details</a>';




    if (STOCK_CHECK == 'true') {
      echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
    }

    if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
      for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
        echo '<br /><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
      }
    }

    echo '</td>' . "\n";

    if (sizeof($order->info['tax_groups']) > 1) echo '            <td valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";

    echo '            <td align="right" valign="top">' . $currencies->display_price2($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" .
         '          </tr>' . "\n";
  }
?>
    </tr>

</table>

</div>
  
 
  
  
         <div class="ui-widget-content infoBoxContents">

    <table border="0" width="100%" cellspacing="1" cellpadding="2">
      <tr>
        
        <td valign="top" align="right"><table border="0" cellspacing="0" cellpadding="2">

<?php
  if (MODULE_ORDER_TOTAL_INSTALLED) {
    $order_total_modules->process();
    echo $order_total_modules->output();
  }
?>


        </table></td>
      </tr>
<?php      $zone_query = tep_db_query("select geo_zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where zone_country_id = '" . $order->delivery['country_id'] . "' ");
     $zone = tep_db_fetch_array($zone_query);
     $zone_data = $zone['geo_zone_id'];

if($zone_data =="2" || $zone_data =="3") {
}else{
    echo '<tr><td>' . tep_draw_separator('pixel_trans.gif', '1', '20'), TEXT_ZUSATZKOSTEN . '</td></tr>';
    }
     ?>
    </table>
  </div>
  


<?php echo tep_draw_separator('pixel_trans.gif', '10', '10'); ?>

  
  
<?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>
   <div class="ui-widget-content infoBoxContents">
    <table border="0" width="100%" cellspacing="1" cellpadding="2">
      <tr>
        <td width="30%" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
          <?php
  		  if (is_array($payment_modules->modules)) {
          echo $payment_modules->process_button();
  }?>
		<td align="right">
  <?php echo tep_draw_button(IMAGE_BUTTON_CONFIRM_ORDER, 'check', null, 'primary');?></td>
	      </tr>
           </table>
          </td>
       </tr>
    </table>
  </div>
  
<?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>

  <div class="contentText">
    <div style="float: left; width: 60%; padding-top: 5px; padding-left: 15%;">
      <div id="coProgressBar" style="height: 5px;"></div>

      <table border="0" width="100%" cellspacing="0" cellpadding="2">
        <tr>
          <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
          <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_PAYMENT . '</a>'; ?></td>
          <td align="center" width="33%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
        </tr>
      </table>
    </div>

    
  </div>

</div>


<script type="text/javascript">
$('#coProgressBar').progressbar({
  value: 100
});
</script>

</form>

<?php
  require(DIR_WS_INCLUDES . 'template_bottom.php');
  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

Gruß
J.J.
Bitte keine PN mit Nachfragen zu meinen Forumsbeiträgen! Wer Fragen hat, stellt sie bitte im Forum. Ich werde unaufgeforderte PN künftig nicht mehr beantworten.

#30 De Dokta

De Dokta
  • Members
  • 925 Beiträge
  • Gender:Male
  • Ihr Name:Dr. Bachmann

Geschrieben 14 July 2012 - 15:35

Deine Lösung ist halt etwas feiner ... allerdings zeigt es mir den Text jetzt an wenn ich innerhalb der EU bestelle und nicht von außerhalb. Hab ich das richtig gesehen?


Nein, das siehst Du nicht richtig :lol:
Code ist so:
Wenn ich aus Zone 2 (Deutschland) oder Zone 3 (EU) bestelle {
mach garnix
} else {
hau mir den Senf mit Zoll und Gebühren rein.

Das spart mir die Mühe, alle Länder außerhalb der EU in eine eigene Zone zu packen - das ist mir zu mühsam :rolleyes:

Probiers mal aus, Du hast ja die Purchase Without Account-Contrib drin - kannste also mal versuchsweise als Ami kaufen :D

Gruß
J.J.
Bitte keine PN mit Nachfragen zu meinen Forumsbeiträgen! Wer Fragen hat, stellt sie bitte im Forum. Ich werde unaufgeforderte PN künftig nicht mehr beantworten.

#31 histocard

histocard
  • Members
  • 177 Beiträge
  • Gender:Female
  • Ihr Name:Julia Meyer

Geschrieben 14 July 2012 - 15:35

... wohl wahr :P;)

schau mal, ob das bei Dir hinhaut. (Deine checkout_confirmation umbenennen, Code als checkout_confirmation.php abspeichern und schauen was passiert):


Ne du ... des werd so nix:

Eingefügtes Bild

Alle boxen weg, und der rest ist irgenwie auch nicht so dolle :(

#32 De Dokta

De Dokta
  • Members
  • 925 Beiträge
  • Gender:Male
  • Ihr Name:Dr. Bachmann

Geschrieben 14 July 2012 - 15:45

Ne du ... des werd so nix:


Alle boxen weg, und der rest ist irgenwie auch nicht so dolle :(


...ja, sorry, geh mal in Zeile 275 und mach aus $currencies->display_price2.... ->
$currencies->display_price....

Bearbeitet von De Dokta, 14 July 2012 - 15:55.

Bitte keine PN mit Nachfragen zu meinen Forumsbeiträgen! Wer Fragen hat, stellt sie bitte im Forum. Ich werde unaufgeforderte PN künftig nicht mehr beantworten.

#33 histocard

histocard
  • Members
  • 177 Beiträge
  • Gender:Female
  • Ihr Name:Julia Meyer

Geschrieben 14 July 2012 - 16:15

...ja, sorry, geh mal in Zeile 275 und mach aus $currencies->display_price2.... ->
$currencies->display_price....


Ok, prima jetzt brauch ich nur noch meine PAYMENT_INFORMATION wieder unter dem button und vielleicht, wenn's nicht allzu schwierig wird, wäre ein Tupfer Farbe für die Tabelle schön (Hellblau würde sich gut einfügen :rolleyes: )

dicker Knutsch für Deine Hilfe und daaaanke!

#34 De Dokta

De Dokta
  • Members
  • 925 Beiträge
  • Gender:Male
  • Ihr Name:Dr. Bachmann

Geschrieben 14 July 2012 - 17:25

oops, ich dachte, das sollte raus :unsure:

Einfügen:
<?php
  if (is_array($payment_modules->modules)) {
    if ($confirmation = $payment_modules->confirmation()) {
?>

  <h2><?php echo HEADING_PAYMENT_INFORMATION; ?></h2>

  <div class="contentText">
    <table border="0" cellspacing="0" cellpadding="2">
      <tr>
        <td colspan="4"><?php echo $confirmation['title']; ?></td>
      </tr>

<?php
      for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) {
?>

      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['title']; ?></td>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['field']; ?></td>
      </tr>

<?php
      }
     }
    }
?>

  </table>
</div>


und zwar:
  <?php echo tep_draw_button(IMAGE_BUTTON_CONFIRM_ORDER, 'check', null, 'primary');?></td>
              </tr>
           </table>
          </td>
       </tr>
    </table>
  </div>
  
<?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>

-->HIER<--

  <div class="contentText">
    <div style="float: left; width: 60%; padding-top: 5px; padding-left: 15%;">
      <div id="coProgressBar" style="height: 5px;"></div>

Farbe? Bei mir wird das über die jquery.css gesteuert - Schalter hier: <div class="ui-widget-content infoBoxContents"> - das ui-widget-content bringt Farbe ins Leben :D .
Da das bei Dir offenbar nicht der Fall ist, versuch mal das. Öffne die stylesheet.css, suche .infoBoxContents {...}, füge darunter ein:
.infoBoxContentsButton {
  background: #B2C0FC;[Farbcode nach Lust und Laune]
  padding: 5px;
  font-size: 11px;
}

und ersetzte in der checkout_confirmation <div class="ui-widget-content infoBoxContents"> durch: <div class="infoBoxContentsButton"> - das müßte dreimal vorkommen.

Dann sollte es eigentlich gehen.

Gruß
J.J.
Bitte keine PN mit Nachfragen zu meinen Forumsbeiträgen! Wer Fragen hat, stellt sie bitte im Forum. Ich werde unaufgeforderte PN künftig nicht mehr beantworten.

#35 spielfuchs

spielfuchs
  • Members
  • 71 Beiträge
  • Gender:Male
  • Location:Deutschland
  • Ihr Name:Spielpanter

Geschrieben 14 July 2012 - 17:40

So, da bin ich wieder, nach vielem rumgespiele in der checkout_confirmation, ist nun meine platt. hat denn jemand, ich glaube die von Julia sieht super aus, eine fertige checkout_confirmation, die hier gepostet werden kann?

#36 histocard

histocard
  • Members
  • 177 Beiträge
  • Gender:Female
  • Ihr Name:Julia Meyer

Geschrieben 14 July 2012 - 17:54

So, da bin ich wieder, nach vielem rumgespiele in der checkout_confirmation, ist nun meine platt. hat denn jemand, ich glaube die von Julia sieht super aus, eine fertige checkout_confirmation, die hier gepostet werden kann?


Noch nicht so ganz ... mußt dich noch ein bisserl gedulden! Wenn sie fertig ist pack ich sie euch rein ... müßt dann sicher noch das ein oder andere anpassen aber soweit sieht's dank dem Docta schon super aus.

Nur eine Sache jetzt noch kurz. die payment-information ist jetzt leider doch oberhalb vom button, sollte aber drunter ... ich probier mal ein bisserl rum.

glg julia

#37 De Dokta

De Dokta
  • Members
  • 925 Beiträge
  • Gender:Male
  • Ihr Name:Dr. Bachmann

Geschrieben 14 July 2012 - 18:12

Nur eine Sache jetzt noch kurz. die payment-information ist jetzt leider doch oberhalb vom button, sollte aber drunter ... ich probier mal ein bisserl rum.

glg julia


Mamma mia :rolleyes: - bei mir ist das unterm Button

Also nochmal im Zusammenhang:

<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

// if the customer is not logged on, redirect them to the login page
  if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT));
    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
  }
  
//osc-support-edition BOF
        if ($HTTP_POST_VARS['terms'] != 'true') {
                $messageStack->add_session('terms_agree', HEADER_ERROR_ACCEPT_TERMS);
        tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    }
//osc-support-edition EOF

// if there is nothing in the customers cart, redirect them to the shopping cart page
  if ($cart->count_contents() < 1) {
    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
  }

// avoid hack attempts during the checkout procedure by checking the internal cartID
  if (isset($cart->cartID) && tep_session_is_registered('cartID')) {
    if ($cart->cartID != $cartID) {
      tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    }
  }

// if no shipping method has been selected, redirect the customer to the shipping method selection page
  if (!tep_session_is_registered('shipping')) {
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  }

  if (!tep_session_is_registered('payment')) tep_session_register('payment');
  if (isset($HTTP_POST_VARS['payment'])) $payment = $HTTP_POST_VARS['payment'];

  if (!tep_session_is_registered('comments')) tep_session_register('comments');
  if (tep_not_null($HTTP_POST_VARS['comments'])) {
    $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
  }

// load the selected payment module
  require(DIR_WS_CLASSES . 'payment.php');
  $payment_modules = new payment($payment);

  require(DIR_WS_CLASSES . 'order.php');
  $order = new order;

  $payment_modules->update_status();

  if ( ($payment_modules->selected_module != $payment) || ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) {
    tep_redirect(tep_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($shipping);

  require(DIR_WS_CLASSES . 'order_total.php');
  $order_total_modules = new order_total;
  $order_total_modules->process();

// Stock Check
  $any_out_of_stock = false;
  if (STOCK_CHECK == 'true') {
    for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
      if (tep_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) ) {
      tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
    }
  }

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_CONFIRMATION);

  $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  $breadcrumb->add(NAVBAR_TITLE_2);

  require(DIR_WS_INCLUDES . 'template_top.php');
?>

<h1><?php echo HEADING_TITLE; ?></h1>
<h3><?php echo HEADING_TEXT; ?></h3>

<?php
  if (isset($$payment->form_action_url)) {
    $form_action_url = $$payment->form_action_url;
  } else {
    $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
  }

  echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');
?>

<div class="contentContainer">
  <h2><?php echo HEADING_SHIPPING_INFORMATION; ?></h2>

  <div class="infoBoxContents">
    <table border="0" width="100%" cellspacing="1" cellpadding="2">
      <tr>

<?php
  if ($sendto != false) {
?>

        <td width="50%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td><?php echo '<strong>' . HEADING_DELIVERY_ADDRESS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'); ?></td>
          </tr>

<?php
    if ($order->info['shipping_method']) {
?>

          <tr>
            <td>
<?php echo tep_draw_separator('pixel_trans.gif', '1', '30'); ?><?php echo '<strong>' . HEADING_SHIPPING_METHOD . '</strong></span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo $order->info['shipping_method']; ?></td>
          </tr>
<?php
    }
?>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '30'); ?><?php echo '<strong>' . HEADING_PAYMENT_METHOD . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo $order->info['payment_method']; ?></td>
          </tr>
        </table></td>

<?php
  }
?>

   <?php 
   if (is_array($payment_modules->modules)) {
    if ($confirmation = $payment_modules->confirmation()) {
    for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) {
?>
    <table border="0" cellspacing="0" cellpadding="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['title']; ?></td>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['field']; ?></td>
      </tr>
</table><?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>
<?php
      }
     }
    }
?>
        <td width="<?php echo (($sendto != false) ? '50%' : '100%'); ?>" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
            <td><?php echo '<strong>' . HEADING_BILLING_ADDRESS . '</strong> <a href="' . ((tep_session_is_registered('customer_is_guest'))?tep_href_link(FILENAME_CREATE_ACCOUNT, 'guest=guest', 'SSL'):tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL')) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'); ?></td>
          </tr>

        </table></td>
      </tr>
       <?php  
  if (tep_not_null($order->info['comments'])) {
?>
<tr>
      <td><table>
     <tr>
 <div class=" infoBoxContents">
 <td><?php echo '<strong>' . HEADING_ORDER_COMMENTS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a><br/>'; ?></td>
 </tr>

<tr><td>
    <?php echo nl2br(tep_output_string_protected($order->info['comments'])) . tep_draw_hidden_field('comments', $order->info['comments']); ?>
</td>
  </div></tr>

</table></td></tr>


<?php
  }
?>

  <?php
  if (sizeof($order->info['tax_groups']) > 1) {
?>
<tr>
      <td><table><?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>
          <tr>
            <td colspan="2"><?php echo '<strong>' . HEADING_PRODUCTS . '</strong> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
            <td align="right"><strong><?php echo HEADING_TAX; ?></strong></td>
            <td align="right"><strong><?php echo HEADING_TOTAL; ?></strong></td>
          </tr>
       </table></td>
       </tr>
<?php
  } else {
?>
<tr>
      <td><table><?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>
          <tr>
            <td colspan="3"><?php echo '<strong>' . HEADING_PRODUCTS . '</strong> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr> 
        </table></td>
       </tr>  
       
           </table>
  </div>
       <div class="infoBoxContentsButton">
  
  <table border="0"
 cellpadding="2" cellspacing="2">

    <tr>
      

<?php
  }



  for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {

  
    $bild_query = tep_db_query("select products_id, products_image from " . TABLE_PRODUCTS . " where products_id = '" . $order->products[$i]['id'] . "' ");
  $bild = tep_db_fetch_array($bild_query);
  $bild_auflistung = $bild['products_image'];
    echo '          <tr>' . "\n" .
         '            <td align="center">' . tep_image(DIR_WS_IMAGES . $bild_auflistung, $order->products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</td>' .
         '            <td valign="top">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" .
         '            <td width="55%"valign="top" >'  . $order->products[$i]['name'] . "\n" ."\n" .
         '<br/><br/><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . '">' . 'Artikel-Details</a>';




    if (STOCK_CHECK == 'true') {
      echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
    }

    if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
      for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
        echo '<br /><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
      }
    }

    echo '</td>' . "\n";

    if (sizeof($order->info['tax_groups']) > 1) echo '            <td valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";

    echo '            <td align="right" valign="top">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" .
         '          </tr>' . "\n";
  }
?>
    </tr>

</table>

</div>
  
 
  
  
         <div class="infoBoxContentsButton">

    <table border="0" width="100%" cellspacing="1" cellpadding="2">
      <tr>
        
        <td valign="top" align="right"><table border="0" cellspacing="0" cellpadding="2">

<?php
  if (MODULE_ORDER_TOTAL_INSTALLED) {
    $order_total_modules->process();
    echo $order_total_modules->output();
  }
?>


        </table></td>
      </tr>
<?php      $zone_query = tep_db_query("select geo_zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where zone_country_id = '" . $order->delivery['country_id'] . "' ");
     $zone = tep_db_fetch_array($zone_query);
     $zone_data = $zone['geo_zone_id'];

if($zone_data =="2" || $zone_data =="3") {
}else{
    echo '<tr><td>' . tep_draw_separator('pixel_trans.gif', '1', '20'), TEXT_ZUSATZKOSTEN . '</td></tr>';
    }
     ?>
    </table>
  </div>
  


<?php echo tep_draw_separator('pixel_trans.gif', '10', '10'); ?>

  
  
<?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>
   <div class="infoBoxContentsButton">
    <table border="0" width="100%" cellspacing="1" cellpadding="2">
      <tr>
        <td width="30%" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
          <?php
                  if (is_array($payment_modules->modules)) {
          echo $payment_modules->process_button();
  }?>
                <td align="right">
  <?php echo tep_draw_button(IMAGE_BUTTON_CONFIRM_ORDER, 'check', null, 'primary');?></td>
              </tr>
           </table>
          </td>
       </tr>
    </table>
  </div>

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

  <h2><?php echo HEADING_PAYMENT_INFORMATION; ?></h2>

  <div class="contentText">
    <table border="0" cellspacing="0" cellpadding="2">
      <tr>
        <td colspan="4"><?php echo $confirmation['title']; ?></td>
      </tr>

<?php
      for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) {
?>

      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['title']; ?></td>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['field']; ?></td>
      </tr>

<?php
      }
     }
    }
?>

  </table>
</div>
  
<?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>

  <div class="contentText">
    <div style="float: left; width: 60%; padding-top: 5px; padding-left: 15%;">
      <div id="coProgressBar" style="height: 5px;"></div>

      <table border="0" width="100%" cellspacing="0" cellpadding="2">
        <tr>
          <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
          <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_PAYMENT . '</a>'; ?></td>
          <td align="center" width="33%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
        </tr>
      </table>
    </div>

    
  </div>

</div>


<script type="text/javascript">
$('#coProgressBar').progressbar({
  value: 100
});
</script>

</form>

<?php
  require(DIR_WS_INCLUDES . 'template_bottom.php');
  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

Bitte keine PN mit Nachfragen zu meinen Forumsbeiträgen! Wer Fragen hat, stellt sie bitte im Forum. Ich werde unaufgeforderte PN künftig nicht mehr beantworten.

#38 histocard

histocard
  • Members
  • 177 Beiträge
  • Gender:Female
  • Ihr Name:Julia Meyer

Geschrieben 14 July 2012 - 18:23

So, jetzt hab ich's:

Ich poste jetzt mal meine checkout_confirmation ... bitte, Ihr müßt noch einiges für Eure Bedürfnisse ändern. Z.B. in den sprachdateien english.php und german.php und in der stylesheet. Lest Euch einfach Aufmerksam den kompletten Thread hier durch, da weisse bescheid ;) !

Hier erstmal das Ergebnis:
Eingefügtes Bild

Hier also die neue checkout_confirmation:
<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

// if the customer is not logged on, redirect them to the login page
  if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT));
    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
  }
  
//osc-support-edition BOF
        if ($HTTP_POST_VARS['terms'] != 'true') {
                $messageStack->add_session('terms_agree', HEADER_ERROR_ACCEPT_TERMS);
        tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    }
//osc-support-edition EOF

// if there is nothing in the customers cart, redirect them to the shopping cart page
  if ($cart->count_contents() < 1) {
    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
  }

// avoid hack attempts during the checkout procedure by checking the internal cartID
  if (isset($cart->cartID) && tep_session_is_registered('cartID')) {
    if ($cart->cartID != $cartID) {
      tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    }
  }

// if no shipping method has been selected, redirect the customer to the shipping method selection page
  if (!tep_session_is_registered('shipping')) {
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  }

  if (!tep_session_is_registered('payment')) tep_session_register('payment');
  if (isset($HTTP_POST_VARS['payment'])) $payment = $HTTP_POST_VARS['payment'];

  if (!tep_session_is_registered('comments')) tep_session_register('comments');
  if (tep_not_null($HTTP_POST_VARS['comments'])) {
    $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
  }

// load the selected payment module
  require(DIR_WS_CLASSES . 'payment.php');
  $payment_modules = new payment($payment);

  require(DIR_WS_CLASSES . 'order.php');
  $order = new order;

  $payment_modules->update_status();

  if ( ($payment_modules->selected_module != $payment) || ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) {
    tep_redirect(tep_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($shipping);

  require(DIR_WS_CLASSES . 'order_total.php');
  $order_total_modules = new order_total;
  $order_total_modules->process();

// Stock Check
  $any_out_of_stock = false;
  if (STOCK_CHECK == 'true') {
    for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
      if (tep_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) ) {
      tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
    }
  }

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_CONFIRMATION);

  $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  $breadcrumb->add(NAVBAR_TITLE_2);

  require(DIR_WS_INCLUDES . 'template_top.php');
?>

<h1><?php echo HEADING_TITLE; ?></h1>
<?php echo HEADING_TEXT; ?>

<?php
  if (isset($$payment->form_action_url)) {
    $form_action_url = $$payment->form_action_url;
  } else {
    $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
  }

  echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');
?>

<div class="contentContainer">
  <h2><?php echo HEADING_SHIPPING_INFORMATION; ?></h2>

  <div class="infoBoxContents">
    <table border="0" width="100%" cellspacing="1" cellpadding="2">
      <tr>

<?php
  if ($sendto != false) {
?>

        <td width="50%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td><?php echo '<strong>' . HEADING_DELIVERY_ADDRESS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'); ?></td>
          </tr>

<?php
    if ($order->info['shipping_method']) {
?>

          <tr>
            <td>
<?php echo tep_draw_separator('pixel_trans.gif', '1', '30'); ?><?php echo '<strong>' . HEADING_SHIPPING_METHOD . '</strong></span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo $order->info['shipping_method']; ?></td>
          </tr>
<?php
    }
?>
          <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '30'); ?><?php echo '<strong>' . HEADING_PAYMENT_METHOD . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo $order->info['payment_method']; ?></td>
          </tr>
        </table></td>

<?php
  }
?>

   <?php 
   if (is_array($payment_modules->modules)) {
    if ($confirmation = $payment_modules->confirmation()) {
    for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) {
?>
    <table border="0" cellspacing="0" cellpadding="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['title']; ?></td>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['field']; ?></td>
      </tr>
</table><?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>
<?php
      }
     }
    }
?>
        <td width="<?php echo (($sendto != false) ? '50%' : '100%'); ?>" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
            <td><?php echo '<strong>' . HEADING_BILLING_ADDRESS . '</strong> <a href="' . ((tep_session_is_registered('customer_is_guest'))?tep_href_link(FILENAME_CREATE_ACCOUNT, 'guest=guest', 'SSL'):tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL')) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'); ?></td>
          </tr>

        </table></td>
      </tr>
       <?php  
  if (tep_not_null($order->info['comments'])) {
?>
<tr>
      <td><table>
     <tr>
 <div class=" infoBoxContents">
 <td><?php echo '<strong>' . HEADING_ORDER_COMMENTS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a><br/>'; ?></td>
 </tr>

<tr><td>
    <?php echo nl2br(tep_output_string_protected($order->info['comments'])) . tep_draw_hidden_field('comments', $order->info['comments']); ?>
</td>
  </div></tr>

</table></td></tr>


<?php
  }
?>

  <?php
  if (sizeof($order->info['tax_groups']) > 1) {
?>
<tr>
      <td><table><?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>
          <tr>
            <td colspan="2"><?php echo '<strong>' . HEADING_PRODUCTS . '</strong> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
            <td align="right"><strong><?php echo HEADING_TAX; ?></strong></td>
            <td align="right"><strong><?php echo HEADING_TOTAL; ?></strong></td>
          </tr>
       </table></td>
       </tr>
<?php
  } else {
?>
<tr>
      <td><table><?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>
          <tr>
            <td colspan="3"><?php echo '<strong>' . HEADING_PRODUCTS . '</strong> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr> 
        </table></td>
       </tr>  
       
           </table>
  </div>
       <div class="infoBoxContentsButton">
  
  <table border="0"
 cellpadding="2" cellspacing="2">

    <tr>
      

<?php
  }



  for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {

  
    $bild_query = tep_db_query("select products_id, products_image from " . TABLE_PRODUCTS . " where products_id = '" . $order->products[$i]['id'] . "' ");
  $bild = tep_db_fetch_array($bild_query);
  $bild_auflistung = $bild['products_image'];
    echo '          <tr>' . "\n" .
         '            <td align="center">' . tep_image(DIR_WS_IMAGES . $bild_auflistung, $order->products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</td>' .
         '            <td valign="top">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" .
         '            <td width="55%"valign="top" >'  . $order->products[$i]['name'] . "\n" ."\n" .
         '<br/><br/><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . '">' . 'Artikel-Details</a>';




    if (STOCK_CHECK == 'true') {
      echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
    }

    if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
      for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
        echo '<br /><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
      }
    }

    echo '</td>' . "\n";

    if (sizeof($order->info['tax_groups']) > 1) echo '            <td valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";

    echo '            <td align="right" valign="top">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" .
         '          </tr>' . "\n";
  }
?>
    </tr>

</table>

</div>
  
 
  
  
         <div class="infoBoxContentsButton">

    <table border="0" width="100%" cellspacing="1" cellpadding="2">
      <tr>
        
        <td valign="top" align="right"><table border="0" cellspacing="0" cellpadding="2">

<?php
  if (MODULE_ORDER_TOTAL_INSTALLED) {
    $order_total_modules->process();
    echo $order_total_modules->output();
  }
?>


        </table></td>
      </tr>
<?php      $zone_query = tep_db_query("select geo_zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where zone_country_id = '" . $order->delivery['country_id'] . "' ");
     $zone = tep_db_fetch_array($zone_query);
     $zone_data = $zone['geo_zone_id'];

if($zone_data =="2" || $zone_data =="3") {
}else{
    echo '<tr><td>' . tep_draw_separator('pixel_trans.gif', '1', '20'), ZOLLBESTIMMUNG . '</td></tr>';
    }
     ?>
    </table>
  </div>
  


<?php echo tep_draw_separator('pixel_trans.gif', '10', '10'); ?>

  
  
<?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>

   <div class="infoBoxContentsButton">
    <table border="0" width="100%" cellspacing="1" cellpadding="2">
      <tr>
        <td width="30%" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
          <?php
                  if (is_array($payment_modules->modules)) {
          echo $payment_modules->process_button();
  }?>
                <td align="right">
  <?php echo tep_draw_button(IMAGE_BUTTON_CONFIRM_ORDER, 'check', null, 'primary');?></td>
              </tr>
           </table>
          </td>
       </tr>
    </table>
  </div>

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

  <h2><?php echo HEADING_PAYMENT_INFORMATION; ?></h2>

  <div class="contentText">
    <table border="0" cellspacing="0" cellpadding="2">
      <tr>
        <td colspan="4"><?php echo $confirmation['title']; ?></td>
      </tr>

<?php
      for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) {
?>

      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['title']; ?></td>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['field']; ?></td>
      </tr>

<?php
      }
     }
    }
?>

  </table>
</div>

  
<?php echo tep_draw_separator('pixel_trans.gif', '1', '20'); ?>

  <div class="contentText">
    <div style="float: left; width: 60%; padding-top: 5px; padding-left: 15%;">
      <div id="coProgressBar" style="height: 5px;"></div>

      <table border="0" width="100%" cellspacing="0" cellpadding="2">
        <tr>
          <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
          <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_PAYMENT . '</a>'; ?></td>
          <td align="center" width="33%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
        </tr>
      </table>
    </div>

    
  </div>

</div>


<script type="text/javascript">
$('#coProgressBar').progressbar({
  value: 100
});
</script>

</form>

<?php
  require(DIR_WS_INCLUDES . 'template_bottom.php');
  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

und hier zum Vergleich MEINE alte:
<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

// if the customer is not logged on, redirect them to the login page
  if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT));
    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
  }
  
//osc-support-edition BOF
  	if ($HTTP_POST_VARS['terms'] != 'true') {
  		$messageStack->add_session('terms_agree', HEADER_ERROR_ACCEPT_TERMS);
        tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
    }
//osc-support-edition EOF

// if there is nothing in the customers cart, redirect them to the shopping cart page
  if ($cart->count_contents() < 1) {
    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
  }

// avoid hack attempts during the checkout procedure by checking the internal cartID
  if (isset($cart->cartID) && tep_session_is_registered('cartID')) {
    if ($cart->cartID != $cartID) {
      tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    }
  }

// if no shipping method has been selected, redirect the customer to the shipping method selection page
  if (!tep_session_is_registered('shipping')) {
    tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  }

  if (!tep_session_is_registered('payment')) tep_session_register('payment');
  if (isset($HTTP_POST_VARS['payment'])) $payment = $HTTP_POST_VARS['payment'];

  if (!tep_session_is_registered('comments')) tep_session_register('comments');
  if (tep_not_null($HTTP_POST_VARS['comments'])) {
    $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
  }

// load the selected payment module
  require(DIR_WS_CLASSES . 'payment.php');
  $payment_modules = new payment($payment);

  require(DIR_WS_CLASSES . 'order.php');
  $order = new order;

  $payment_modules->update_status();

  if ( ($payment_modules->selected_module != $payment) || ( is_array($payment_modules->modules) && (sizeof($payment_modules->modules) > 1) && !is_object($$payment) ) || (is_object($$payment) && ($$payment->enabled == false)) ) {
    tep_redirect(tep_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($shipping);

  require(DIR_WS_CLASSES . 'order_total.php');
  $order_total_modules = new order_total;
  $order_total_modules->process();

// Stock Check
  $any_out_of_stock = false;
  if (STOCK_CHECK == 'true') {
    for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
      if (tep_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) ) {
      tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
    }
  }

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_CONFIRMATION);

  $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
  $breadcrumb->add(NAVBAR_TITLE_2);

  require(DIR_WS_INCLUDES . 'template_top.php');
?>

<h1><?php echo HEADING_TITLE; ?></h1>

<?php
  if (isset($$payment->form_action_url)) {
    $form_action_url = $$payment->form_action_url;
  } else {
    $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
  }

  echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');
?>

<div class="contentContainer">
  <h2><?php echo HEADING_SHIPPING_INFORMATION; ?></h2>

  <div class="contentText">
    <table border="0" width="100%" cellspacing="1" cellpadding="2">
      <tr>

<?php
  if ($sendto != false) {
?>

        <td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td><?php echo '<strong>' . HEADING_DELIVERY_ADDRESS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'); ?></td>
          </tr>

<?php
    if ($order->info['shipping_method']) {
?>

          <tr>
            <td><?php echo '<strong>' . HEADING_SHIPPING_METHOD . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo $order->info['shipping_method']; ?></td>
          </tr>
<?php
    }
?>

        </table></td>

<?php
  }
?>

        <td width="<?php echo (($sendto != false) ? '70%' : '100%'); ?>" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

<?php
  if (sizeof($order->info['tax_groups']) > 1) {
?>

          <tr>
            <td colspan="2"><?php echo '<strong>' . HEADING_PRODUCTS . '</strong> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
            <td align="right"><strong><?php echo HEADING_TAX; ?></strong></td>
            <td align="right"><strong><?php echo HEADING_TOTAL; ?></strong></td>
          </tr>

<?php
  } else {
?>

          <tr>
            <td colspan="3"><?php echo '<strong>' . HEADING_PRODUCTS . '</strong> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>

<?php
  }

  for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
    echo '          <tr>' . "\n" .
         '            <td align="right" valign="top" width="30">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" .
         '            <td valign="top">' . $order->products[$i]['name'];

    if (STOCK_CHECK == 'true') {
      echo tep_check_stock($order->products[$i]['id'], $order->products[$i]['qty']);
    }

    if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
      for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
        echo '<br /><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'] . '</i></small></nobr>';
      }
    }

    echo '</td>' . "\n";

    if (sizeof($order->info['tax_groups']) > 1) echo '            <td valign="top" align="right">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n";

    echo '            <td align="right" valign="top">' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . '</td>' . "\n" .
         '          </tr>' . "\n";
  }
?>

        </table></td>
      </tr>
    </table>
  </div>

  <h2><?php echo HEADING_BILLING_INFORMATION; ?></h2>

  <div class="contentText">
    <table border="0" width="100%" cellspacing="1" cellpadding="2">
      <tr>
        <td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td><?php echo '<strong>' . HEADING_BILLING_ADDRESS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'); ?></td>
          </tr>
          <tr>
            <td><?php echo '<strong>' . HEADING_PAYMENT_METHOD . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
          </tr>
          <tr>
            <td><?php echo $order->info['payment_method']; ?></td>
          </tr>
        </table></td>
        <td width="70%" valign="top" align="right"><table border="0" cellspacing="0" cellpadding="2">

<?php
  if (MODULE_ORDER_TOTAL_INSTALLED) {
    echo $order_total_modules->output();
  }
?>

        </table></td>
      </tr>
    </table>
  </div>

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

  <h2><?php echo HEADING_PAYMENT_INFORMATION; ?></h2>

  <div class="contentText">
    <table border="0" cellspacing="0" cellpadding="2">
      <tr>
        <td colspan="4"><?php echo $confirmation['title']; ?></td>
      </tr>

<?php
      for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) {
?>

      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['title']; ?></td>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
        <td class="main"><?php echo $confirmation['fields'][$i]['field']; ?></td>
      </tr>

<?php
      }
?>

    </table>
  </div>

<?php
    }
  }

  if (tep_not_null($order->info['comments'])) {
?>

  <h2><?php echo '<strong>' . HEADING_ORDER_COMMENTS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></h2>

  <div class="contentText">
    <?php echo nl2br(tep_output_string_protected($order->info['comments'])) . tep_draw_hidden_field('comments', $order->info['comments']); ?>
  </div>

<?php
  }
?>

  <div class="contentText">
    <div style="float: left; width: 60%; padding-top: 5px; padding-left: 15%;">
      <div id="coProgressBar" style="height: 5px;"></div>

      <table border="0" width="100%" cellspacing="0" cellpadding="2">
        <tr>
          <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_DELIVERY . '</a>'; ?></td>
          <td align="center" width="33%" class="checkoutBarFrom"><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '" class="checkoutBarFrom">' . CHECKOUT_BAR_PAYMENT . '</a>'; ?></td>
          <td align="center" width="33%" class="checkoutBarCurrent"><?php echo CHECKOUT_BAR_CONFIRMATION; ?></td>
        </tr>
      </table>
    </div>

    <div style="float: right;">

<?php
  if (is_array($payment_modules->modules)) {
    echo $payment_modules->process_button();
  }

  echo tep_draw_button(IMAGE_BUTTON_CONFIRM_ORDER, 'check', null, 'primary');
?>

    </div>
  </div>

</div>

<script type="text/javascript">
$('#coProgressBar').progressbar({
  value: 100
});
</script>

</form>

<?php
  require(DIR_WS_INCLUDES . 'template_bottom.php');
  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>

Bitte vergleicht selber was alles geändert wurde.

So, nun viel Spaß damit und bis demnächst! Danke nochmal an docta-superman!

Bearbeitet von histocard, 14 July 2012 - 18:27.


#39 histocard

histocard
  • Members
  • 177 Beiträge
  • Gender:Female
  • Ihr Name:Julia Meyer

Geschrieben 14 July 2012 - 20:50

Eines fehlt mir jetzt aber doch noch ... das Textfeld Bemerkungen zur Bestellung ist irgendwie in dem ganzen Trubel verloren gegangen. :huh:

Wie bekomm ich das jetzt, sagen wir mal unterhalb vom Button noch rein?

Gut Nacht Julia

#40 spielfuchs

spielfuchs
  • Members
  • 71 Beiträge
  • Gender:Male
  • Location:Deutschland
  • Ihr Name:Spielpanter

Geschrieben 14 July 2012 - 21:21

So, nun noch eine Frage zu:

$bild_query = tep_db_query("select products_id, products_image from " . TABLE_PRODUCTS . " where products_id = '" . $order->products[$i]['id'] . "' ");
$bild = tep_db_fetch_array($bild_query);
$bild_auflistung = $bild['products_image'];
echo ' <tr>' . "\n" .
' <td align="center">' . tep_image(DIR_WS_IMAGES . $bild_auflistung, $order->products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '</td>' .

Es geht um die Bildgröße 150x150. diese wird ja aus dem warenkorb übernommen, aber die ist mir in der checkout_confirmation zu groß. Wie kann ich das Bild verkleinen, ohne an der Grundeinstellung im Images was zu verändern.

Ich möchte gerne 90 X 90 haben Ich denke mal SMALL_IMAGE_WIDTH=90x90, SMALL_IMAGE_HEIGHT=90x90 geht nicht? oder