$email_order .= "\n" . EMAIL_TEXT_COMMENTS . "\n" . EMAIL_SEPARATOR . "\n" . tep_db_output($order->info['comments']) . "\n";
}
$email_order .= "\n" . EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n";
for ($i = 0, $n = sizeof($order_totals); $i < $n; $i++) {
    $order_totals_title = trim(strip_tags($order_totals[$i]['title']));
    if (substr($order_totals_title, -1) != ':') {
        $order_totals_title .= ':';
    }
    $email_order .= $order_totals_title . ' ' . strip_tags($order_totals[$i]['text']) . "\n";
}
if ($order->content_type != 'virtual') {
    $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";
    if (ALLOW_SHOW_AVAILABLE_IN == 'true' && $order->content_type != 'virtual') {
        $transfer_to_delivery_date = tep_calculate_date_available($order->info['delivery_transfer']);
        //	  $delivery_to_city_date = date('Y-m-d', strtotime($transfer_to_delivery_date) + $order->info['city_delivery_days']*60*60*24);
        $delivery_to_city_date = tep_calculate_date_available($order->info['delivery_transfer'] + $order->info['city_delivery_days']);
        $email_order .= "\n" . sprintf(MAX_AVAILABLE_IN, tep_date_long($transfer_to_delivery_date));
        if (ALLOW_SHOW_RECEIVE_IN == 'true' && isset($order->info['city_delivery_days'])) {
            $email_order .= ' ' . sprintf(MAX_RECEIVE_IN, tep_date_long($delivery_to_city_date));
        }
        $email_order .= "\n";
    }
}
if ($billto != false) {
    #	$email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
    #					EMAIL_SEPARATOR . "\n" .
    #					tep_address_label($customer_id, $billto, 0, '', "\n") . "\n";
}
if (is_object(${$payment})) {
    $email_order .= "\n" . EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n";
    $payment_class = ${$payment};
            ?>
</div>
<?php 
        } else {
            ?>
	  <div><span class="stockWarning"><?php 
            echo sprintf(OUT_OF_STOCK_CANT_CHECKOUT, STOCK_MARK_PRODUCT_OUT_OF_STOCK);
            ?>
</span></div>
<?php 
        }
        echo '	</div><br />' . "\n";
    }
    if (ALLOW_SHOW_AVAILABLE_IN == 'true') {
        if (!$only_periodicals && $cart->content_type != 'virtual') {
            echo '<div class="buttons">' . "\n" . '<div style="text-align: right;"><strong class="mediumText">' . sprintf(MAX_AVAILABLE_IN, tep_date_long(tep_calculate_date_available($cart->info['delivery_transfer']))) . '</strong></div>' . "\n" . '</div>';
        }
    }
    ?>
	<div class="buttons">
	  <div style="float: left; margin-right: 15px;"><a href="<?php 
    echo $back;
    ?>
"><?php 
    echo tep_image_button('button_continue_shopping.gif', IMAGE_BUTTON_CONTINUE_SHOPPING);
    ?>
</a></div>
	  <div style="float: left;"><?php 
    echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART, 'action=reset_cart') . '" onclick="return confirm(\'' . TEXT_RESET_CART_WARNING . '\');">' . tep_image_button('button_reset.gif', IMAGE_BUTTON_RESET_CART) . '</a>';
    ?>
</div>
 $temp_string = '';
 if ($product_info['products_weight'] > 0 && $product_info['products_types_id'] == '1') {
     $temp_string .= TEXT_WEIGHT . ' ' . $product_info['products_weight'] * 1000 . TEXT_WEIGHT_GRAMMS;
 }
 if ($product_info['products_pages_count'] > 0) {
     $temp_string .= (tep_not_null($temp_string) ? ', ' : '') . TEXT_PAGES_COUNT . ' ' . $product_info['products_pages_count'];
 }
 if ($product_info['products_copies'] > 0) {
     $temp_string .= (tep_not_null($temp_string) ? ', ' : '') . TEXT_COPIES . ' ' . $product_info['products_copies'];
 }
 if (tep_not_null($temp_string)) {
     $lc_text .= '<div class="row_product_weight">' . $temp_string . '</div>' . "\n";
 }
 if ((int) $product_info['products_available_in'] > 0 && $product_info['products_date_available'] == '' && $product_info['products_listing_status'] == '1' && $product_info['products_periodicity'] < 1) {
     if (ALLOW_SHOW_AVAILABLE_IN == 'true' && $product_info['products_status'] == '1' && $product_info['products_listing_status'] == '1') {
         $lc_text .= '<div class="row_product_available">' . TEXT_AVAILABLE_IN . ' ' . tep_date_long(tep_calculate_date_available($product_info['products_available_in'])) . '<!--' . $product_info['products_available_in'] . '-->' . '</div>' . "\n";
     }
 }
 $lc_text .= '<div class="clear">' . "\n";
 if ($product_info['specials_new_products_price'] > 0) {
     //	  $lc_text .= '<div class="row_product_special_price">' . $currencies->display_price($product_info['specials_new_products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</div><div class="row_product_special_price_old">' .  $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</div>' . "\n";
 } else {
     //	  $lc_text .= '<div class="row_product_price">' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</div>' . "\n";
 }
 $lc_text .= '<div class="row_product_price">';
 if ($product_info['products_status'] == '1') {
     list($available_year, $available_month, $available_day) = explode('-', preg_replace('/^([^\\s]+)\\s/', '$1', $product_info['products_date_available']));
     if ($product_info['products_listing_status'] == '0') {
         $available_soon_check_query = tep_db_query("select count(*) as total from " . TABLE_SPECIALS . " where products_id = '" . (int) $product_info['products_id'] . "' and specials_types_id = '4'");
         $available_soon_check = tep_db_fetch_array($available_soon_check_query);
         if ($product_info['products_date_available'] > date('Y-m-d')) {