function before_process()
 {
     global $order;
     parent::before_process();
     $days = 7;
     if (is_numeric(MODULE_PAYMENT_PAYMILL_ELV_PRENOTIFICATION_DAYS)) {
         $days = MODULE_PAYMENT_PAYMILL_ELV_PRENOTIFICATION_DAYS;
     }
     $date = tep_date_long(date('Y-m-d', strtotime("+{$days} day")) . ' 00:00:00');
     if ($order->info['comments']) {
         $order->info['comments'] .= "\n" . SEPA_DRAWN_TEXT . $date;
     } else {
         $order->info['comments'] = "\n" . SEPA_DRAWN_TEXT . $date;
     }
 }
 echo '<span class="main"><strong>' . BOX_HEADING_REVIEWS . '</strong></span><br>';
 $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int) $_GET['products_id'] . "'");
 $reviews = tep_db_fetch_array($reviews_query);
 if ($reviews['count'] > 0) {
     echo '<span class="main">' . TEXT_CURRENT_REVIEWS . ' ' . $reviews['count'];
     echo '<span class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . (int) $_GET['products_id']) . '">' . BOX_REVIEWS_READ_REVIEW . '</a></span><br>';
 } else {
     echo '<span class="main">' . BOX_REVIEWS_NO_REVIEWS . '</span><br>';
 }
 echo '<span class="main"><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'products_id=' . (int) $_GET['products_id']) . '">' . BOX_REVIEWS_WRITE_REVIEW . '</a></span><br>';
 echo '<br><br>';
 echo '<span class="main"><strong>' . TAB_EXTRA_INFORMATIONS . '</strong></span><br>';
 if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
     echo '<span class="main">' . sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])) . '</span>';
 } else {
     echo '<span class="main">' . sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])) . '</span>';
 }
 if (isset($_SESSION['customer_id'])) {
     $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . (int) $_GET['products_id'] . "' and customers_id = '" . (int) $customer_id . "'");
     $check = tep_db_fetch_array($check_query);
     $notification_exists = $check['count'] > 0 ? true : false;
 } else {
     $notification_exists = false;
 }
 if ($notification_exists == true) {
     echo '<br><span class="main"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify_remove', $request_type) . '">' . sprintf(BOX_NOTIFICATIONS_NOTIFY_REMOVE, tep_get_products_name((int) $_GET['products_id'])) . '</a></span><br>';
 } else {
     echo '<br><span class="main"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=notify', $request_type) . '">' . sprintf(BOX_NOTIFICATIONS_NOTIFY, tep_get_products_name((int) $_GET['products_id'])) . '</a></span><br>';
 }
 echo '<span class="main"><a href="' . tep_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . (int) $_GET['products_id'], 'NONSSL') . '">' . BOX_TELL_A_FRIEND_TEXT . '</a></span><br>';
 ?>
Exemple #3
0
// Now get all downloadable products in that order
$downloads_query = tep_db_query("select date_format(o.date_purchased, '%Y-%m-%d') as date_purchased_day, opd.download_maxdays, op.products_name, opd.orders_products_download_id, opd.orders_products_filename, opd.download_count, opd.download_maxdays from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_PRODUCTS . " op, " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . " opd where o.customers_id = '" . (int) $customer_id . "' and o.orders_id = '" . (int) $last_order . "' and o.orders_id = op.orders_id and op.orders_products_id = opd.orders_products_id and opd.orders_products_filename != ''");
if (tep_db_num_rows($downloads_query) > 0) {
    $xoopsTpl->assign("down", 1);
    $i = 0;
    while ($downloads = tep_db_fetch_array($downloads_query)) {
        $tmp_downloads[$i] = $downloads;
        // MySQL 3.22 does not have INTERVAL
        list($dt_year, $dt_month, $dt_day) = explode('-', $downloads['date_purchased_day']);
        $download_timestamp = mktime(23, 59, 59, $dt_month, $dt_day + $downloads['download_maxdays'], $dt_year);
        $download_expiry = date('Y-m-d H:i:s', $download_timestamp);
        // The link will appear only if:
        // - Download remaining count is > 0, AND
        // - The file is present in the DOWNLOAD directory, AND EITHER
        // - No expiry date is enforced (maxdays == 0), OR
        // - The expiry date is not reached
        if ($downloads['download_count'] > 0 && file_exists(DIR_FS_DOWNLOAD . $downloads['orders_products_filename']) && ($downloads['download_maxdays'] == 0 || $download_timestamp > time())) {
            $tmp_downloads[$i]['link'] = tep_href_link(FILENAME_DOWNLOAD, 'order=' . $last_order . '&id=' . $downloads['orders_products_download_id']);
            $tmp_downloads[$i]['slink'] == 1;
        }
        $tmp_downloads[$i]['date'] = tep_date_long($download_expiry);
        $i++;
    }
    if (!strstr($PHP_SELF, FILENAME_ACCOUNT_HISTORY_INFO)) {
        $xoopsTpl->assign("fahi", 1);
        $xoopsTpl->assign("footer_down", sprintf(FOOTER_DOWNLOAD, '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . HEADER_TITLE_MY_ACCOUNT . '</a>'));
    }
}
?>
<!-- downloads_eof //-->
              <td class="main"><?php 
        echo '<b>' . TEXT_ORDER_NUMBER . '</b> ' . $history['orders_id'];
        ?>
</td>
              <td class="main" align="right"><?php 
        echo '<b>' . TEXT_ORDER_STATUS . '</b> ' . $history['orders_status_name'];
        ?>
</td>
            </tr>
          </table>
          <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
            <tr class="infoBoxContents">
              <td><table border="0" width="100%" cellspacing="2" cellpadding="4">
                <tr>
                  <td class="main" width="50%" valign="top"><?php 
        echo '<b>' . TEXT_ORDER_DATE . '</b> ' . tep_date_long($history['date_purchased']) . '<br><b>' . $order_type . '</b> ' . tep_output_string_protected($order_name);
        ?>
</td>
                  <td class="main" width="30%" valign="top"><?php 
        echo '<b>' . TEXT_ORDER_PRODUCTS . '</b> ' . $products['count'] . '<br><b>' . TEXT_ORDER_COST . '</b> ' . strip_tags($history['order_total']);
        ?>
</td>
                  <td class="main" width="20%"><?php 
        echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, (isset($HTTP_GET_VARS['page']) ? 'page=' . $HTTP_GET_VARS['page'] . '&' : '') . 'order_id=' . $history['orders_id'], 'SSL') . '">' . tep_image_button('small_view.gif', SMALL_IMAGE_BUTTON_VIEW) . '</a>';
        ?>
</td>
                </tr>
              </table></td>
            </tr>
          </table>
          <table border="0" width="100%" cellspacing="0" cellpadding="2">
Exemple #5
0
                $news_description = str_replace('<p>', '', $news_description);
                $news_description = str_replace(array('<br />', '<br>', '</p>'), "\n", $news_description);
                $news_description = trim(preg_replace("/[\r\n]+/", "\n", $news_description));
                $news_short_description = tep_cut_string($news_description, 200);
                if (strlen($news_description) > 200) {
                    $news_short_description .= '...';
                }
                $news_image = '';
                if (tep_not_null($listing['news_image'])) {
                    $news_image = str_replace('news/', 'news/thumbs/', $listing['news_image']);
                    if (!file_exists(DIR_FS_CATALOG . 'images/' . $news_image)) {
                        $news_image = '';
                    }
                }
                $news_link = tep_href_link(FILENAME_NEWS, 'news_id=' . $listing['news_id'] . ($news_type_id > 0 ? '&tPath=' . $news_type_id : ''));
                echo '<br clear="right" />' . "\n" . '<strong><a href="' . $news_link . '">' . $listing['news_name'] . '</a></strong><br />' . "\n" . (tep_not_null($news_image) ? '<a href="' . $news_link . '">' . tep_image(DIR_WS_IMAGES . $news_image, $listing['news_name'], '', '', 'class="one_image"') . '</a>' : '') . ($news_type_id == 0 ? '<a href="' . tep_href_link(FILENAME_NEWS, 'tPath=' . $listing['news_types_id']) . '" class="mediumText">' . $news_type_info['news_types_name'] . '</a>' . "\n" : '') . '<div class="smallText">' . tep_date_long($listing['date_added']) . '</div>' . "\n" . '' . nl2br($news_short_description) . '<br />' . "\n";
            }
            ?>
	<br clear="all" /><div id="listing-split">
	  <div style="float: left;"><?php 
            echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_RECORDS);
            ?>
</div>
	  <div style="text-align: right"><?php 
            echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_NEWS_RESULTS, tep_get_all_get_params(array('page', 'info', 'x', 'y')));
            ?>
</div>
	</div>
<?php 
        } else {
            echo '<p>' . TEXT_NO_NEWS . '</p>';
Exemple #6
0
 case 'update_order':
     $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
     $status = tep_db_prepare_input($HTTP_POST_VARS['status']);
     $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']);
     $order_updated = false;
     $check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int) $oID . "'");
     $check_status = tep_db_fetch_array($check_status_query);
     if ($check_status['orders_status'] != $status || tep_not_null($comments)) {
         tep_db_query("update " . TABLE_ORDERS . " set orders_status = '" . tep_db_input($status) . "', last_modified = now() where orders_id = '" . (int) $oID . "'");
         $customer_notified = '0';
         if (isset($HTTP_POST_VARS['notify']) && $HTTP_POST_VARS['notify'] == 'on') {
             $notify_comments = '';
             if (isset($HTTP_POST_VARS['notify_comments']) && $HTTP_POST_VARS['notify_comments'] == 'on') {
                 $notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "\n\n";
             }
             $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);
             tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
             $customer_notified = '1';
         }
         tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int) $oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')");
         $order_updated = true;
     }
     if ($order_updated == true) {
         $messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success');
     } else {
         $messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning');
     }
     tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=edit'));
     break;
 case 'deleteconfirm':
     $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']);
            echo '<strong>' . Translate('Bestelnummer') . '</strong> ' . $history['orders_id'];
            ?>
</td>
				<td class="padding3" align="right"><?php 
            echo '<strong>' . Translate('Status') . '</strong> ' . $history['orders_status_name'];
            ?>
</td>
			</tr>
		</table>
		<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
			<tr class="infoBoxContents">
				<td>
					<table border="0" width="100%" cellspacing="2" cellpadding="4">
						<tr>
							<td class="main" width="50%" valign="top"><?php 
            echo '<b>' . Translate('Datum') . '</b> ' . utf8_encode(tep_date_long($history['date_purchased'])) . '<br><b>' . $order_type . '</b> ' . tep_output_string_protected($order_name);
            ?>
</td>
							<td class="main" width="30%" valign="top"><?php 
            echo '<b>' . Translate('Producten') . '</b> ' . $products['count'] . '<br><b>' . Translate('Bedrag') . '</b> ' . strip_tags($history['order_total']);
            ?>
</td>
							<td class="main" align="right" width="20%"><?php 
            echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, (isset($_GET['page']) ? 'page=' . $_GET['page'] . '&' : '') . 'order_id=' . $history['orders_id'], 'SSL') . '" class="button-a"><span>' . Translate('Bekijken') . '</span></a>';
            ?>
</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
Exemple #8
0
    $update_status = array('orders_status' => 3);
    tep_db_perform(TABLE_ORDERS, $update_status, 'update', "orders_id = '" . $order . "'");
    if ($send_email_on_shipping) {
        $customer_notified = '1';
    } else {
        $customer_notified = '0';
    }
    tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . $order . "', '3', now(), '" . $customer_notified . "', '" . $fedex_comments . "')");
    // send email automatically on shipping
    if ($send_email_on_shipping) {
        $check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int) $order . "'");
        $check_status = tep_db_fetch_array($check_status_query);
        if (tep_not_null($trackNum)) {
            $email_notify_tracking = sprintf(EMAIL_TEXT_TRACKING_NUMBER) . "\n" . URL_TO_TRACK1 . nl2br(tep_output_string_protected($trackNum)) . "\n\n";
        }
        $email_txt = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $order . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $order, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $email_notify_tracking . sprintf(EMAIL_TEXT_STATUS_UPDATE, 'Shipped');
        tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email_txt, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
    }
    // ... and display the new label without manifest entry for express shipments
    $ship_type_query = tep_db_query("select shipping_type from " . TABLE_SHIPPING_MANIFEST . " where orders_id = '" . $order . "'");
    $ship_type = tep_db_fetch_array($ship_type_query);
    if ($service_type < 89) {
        $delete_manifest_query = tep_db_query("delete from " . TABLE_SHIPPING_MANIFEST . " where orders_id = '" . $order . "'");
    }
    tep_redirect('fedex_popup.php?num=' . $trackNum . '&oID=' . $order . '&multiple=' . $shipData[1117]);
} else {
    ////
    // cancel a scheduled shipment
    if ($action == 'cancel') {
        if (!$order) {
            echo ERROR_NO_ORDER_SPECIFIED;
Exemple #9
0
     $order->setStatus($status, $process);
     $order_updated = true;
     $thestatus = sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]) . "\n\n";
 } else {
     $thestatus = '';
 }
 if ($_POST['notify'] == 'on') {
     $customer_notified = 1;
     if ($_POST['notify_comments'] == 'on') {
         if (!empty($comments) || $comments != '') {
             $comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments);
         } else {
             $comments = '';
         }
     }
     $email = 'Dear ' . $check_status['customers_name'] . ',' . "\n\n" . STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' <a href="' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . '">My Order History</a>' . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $comments . $thestatus . "\n" . EMAIL_TEXT_FOOTER;
     tep_mail($check_status['customers_name'], $check_status['customers_email_address'], sprintf(EMAIL_TEXT_SUBJECT_UPDATE, $oID), $email, STORE_NAME, STORE_OWNER_EMAIL_ADDRESS);
     // # Send a copy to the store admin
     tep_mail($check_status['customers_name'], STORE_OWNER_EMAIL_ADDRESS, sprintf(EMAIL_TEXT_SUBJECT_ADMIN, $oID), $email, STORE_NAME, STORE_OWNER_EMAIL_ADDRESS);
     // # Update order status history table with current status
     $comments = strip_tags(tep_db_input(trim(str_replace(array("Comments:", "\n\n"), "", $comments))));
 }
 // # get current admin username
 $admin_user = !empty($_COOKIE['admin_user']) ? $_COOKIE['admin_user'] : '';
 tep_db_query("INSERT INTO " . TABLE_ORDERS_STATUS_HISTORY . " \n\t\t\t\t\t\t\t  SET orders_id = '" . (int) $oID . "',\n\t\t\t\t\t\t\t  orders_status_id = '" . (int) $status . "',\n\t\t\t\t\t\t\t  date_added = NOW(), \n\t\t\t\t\t\t\t  customer_notified = '" . $customer_notified . "', \n\t\t\t\t\t\t\t  comments = '" . $comments . "',\n\t\t\t\t\t\t\t  admin_user = '******'\n\t\t\t\t\t\t\t");
 // # 1.3 UPDATE PRODUCTS #####
 $RunningSubTotal = 0;
 $RunningTax = 0;
 // # Do pre-check for subtotal field existence
 $ot_subtotal_found = false;
 foreach ($update_totals as $total_details) {
Exemple #10
0
    } elseif (tep_not_null($news_params[0])) {
        tep_redirect(tep_href_link(FILENAME_ERROR_404));
    }
    if (tep_not_null($news_path)) {
        $news_type_query = tep_db_query("select * from " . TABLE_NEWS_TYPES . " where news_types_status = '1' and news_types_path = '" . tep_db_input(tep_db_prepare_input($news_path)) . "' and language_id = '" . (int) $languages_id . "'");
        if (tep_db_num_rows($news_type_query) > 0) {
            $news_type_info = tep_db_fetch_array($news_type_query);
            $news_type_id = $news_type_info['news_types_id'];
            $breadcrumb->add($news_type_info['news_types_name'], tep_href_link(FILENAME_NEWS, 'tPath=' . $news_type_info['news_types_id']));
        } else {
            tep_redirect(tep_href_link(FILENAME_ERROR_404));
        }
    } elseif (tep_not_null($news_year)) {
        $breadcrumb->add($news_year, tep_href_link(FILENAME_NEWS, 'year=' . $news_year));
        if (tep_not_null($news_month)) {
            $breadcrumb->add($monthes_array[(int) $news_month], tep_href_link(FILENAME_NEWS, 'year=' . $news_year . '&month=' . $news_month));
        }
    }
    if (tep_not_null($news_id)) {
        $news_check_query = tep_db_query("select news_id, news_name, date_added from " . TABLE_NEWS . " where " . ($news_type_id > 0 ? "news_types_id = '" . (int) $news_type_id . "'" : "year(date_added) = '" . (int) $news_year . "' and month(date_added) = '" . (int) $news_month . "'") . " and news_id = '" . (int) $news_id . "' and language_id = '" . (int) $languages_id . "'");
        if (tep_db_num_rows($news_check_query) > 0) {
            $news_check = tep_db_fetch_array($news_check_query);
            $news_depth = 'news';
            $content_id = $news_check['news_id'];
            $content_type = 'news';
            $breadcrumb->add(tep_date_long($news_check['date_added']) . ' - ' . $news_check['news_name'], tep_href_link(FILENAME_NEWS, 'news_id=' . $news_check['news_id'] . ($news_type_id > 0 ? '&tPath=' . $news_type_id : '')));
        }
    }
    unset($HTTP_GET_VARS['nName']);
}
require DIR_WS_INCLUDES . 'application_bottom.php';
Exemple #11
0
                <td class="dataTableHeadingContent" align="right"><?php 
    echo TABLE_HEADING_ACTION;
    ?>
&nbsp;</td>
              </tr>

<?php 
    foreach ($new_versions as $version) {
        ?>
              <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">
                <td class="dataTableContent"><?php 
        echo '<a href="' . $version[2] . '" target="_blank">osCommerce Online Merchant v' . $version[0] . '</a>';
        ?>
</td>
                <td class="dataTableContent"><?php 
        echo tep_date_long(substr($version[1], 0, 4) . '-' . substr($version[1], 4, 2) . '-' . substr($version[1], 6, 2));
        ?>
</td>
                <td class="dataTableContent" align="right"><?php 
        echo '<a href="' . $version[2] . '" target="_blank">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>';
        ?>
&nbsp;</td>
              </tr>
<?php 
    }
    ?>
            </table></rd>
          </tr>
        </table></td>
      </tr>
<?php 
<?php

#########################################
#  Author  : D3W4 & SAHAT               #
#  Created : May 20, 2010 10:14:58 AM   #
#########################################
$email_subject = 'Ihre Bestellung bei JULIE & GRACE über Otto.de';
$email_text_array = array();
$email_text_array[0] = 'Guten Tag ' . $to_name . ',';
$email_text_array[1] = 'vielen Dank für Ihre Bestellung bei JULIE & GRACE über Otto.de.';
$email_text_array[2] = 'Ihre Bestellung vom ' . tep_date_long($order['order_date']) . ' wurde erfolgreich von Otto.de an uns übermittelt.';
//XMAS LATE DELIVERY ($email_text_array[2])
//$email_text_array[2] .= ' <strong>Bitte beachten Sie, dass unsere Lieferzeit derzeit 1-2 Wochen beträgt und wir daher eine Zustellung bis zum 24. Dezember 2010 leider nicht garantieren können.</strong>';
$email_text_array[3] .= 'Wir werden Ihre Bestellung wie folgt ausführen:';
$email_text_array[4] = '';
$total = 0;
if (isset($item_mail)) {
    foreach ($item_mail as $p) {
        $email_text_array[4] .= $p['order_quantity'] * 1 . ' x ';
        $email_text_array[4] .= $p['billing_text'];
        $email_text_array[4] .= ' (' . $p['article_number'] . ') = ';
        $value = $p['order_quantity'] * $p['price'];
        $total += $value;
        $tpp = displayCurrency('EUR', $value);
        $email_text_array[4] .= $tpp;
        $email_text_array[4] .= "\n";
    }
}
if (isset($order['shipping_costs']) && $order['shipping_costs'] > 0) {
    $total += $order['shipping_costs'];
    $email_text_array[4] .= 'Verpackung & Versand: ' . displayCurrency('EUR', $order['shipping_costs']) . "\n";
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    echo '	  <tr valign="top">' . "\n" . '		<td width="1%" align="right">' . $order->products[$i]['qty'] . '</td>' . "\n" . '		<td width="1%">x</td>' . "\n" . '		<td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $order->products[$i]['id']) . '">' . $order->products[$i]['name'] . '</a>' . (tep_not_null($order->products[$i]['tracking_number']) && $tracking_numbers_count > 1 ? '<br />' . "\n" . HEADING_TRACKING_NUMBER . ' ' . $order->products[$i]['tracking_number'] : '') . '</td>' . "\n" . '		<td align="right" nowrap="nowrap">' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</td>' . "\n" . '	  </tr>' . "\n";
}
?>
	</table>
	</fieldset>
	<fieldset>
	<legend><?php 
echo HEADING_ORDER_HISTORY;
?>
</legend>
	<table border="0" cellspacing="0" cellpadding="0" width="100%">
<?php 
$statuses_query = tep_db_query("select os.orders_status_name, os.orders_status_description, osh.date_added, osh.comments from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh where osh.orders_id = '" . (int) $HTTP_GET_VARS['order_id'] . "' and osh.orders_status_id = os.orders_status_id and os.language_id = '" . (int) DEFAULT_LANGUAGE_ID . "' order by osh.date_added");
while ($statuses = tep_db_fetch_array($statuses_query)) {
    echo '	  <tr valign="top">' . "\n" . '		<td width="50%">' . tep_date_long($statuses['date_added']) . '</td>' . "\n" . '		<td width="50%">' . $statuses['orders_status_name'] . (tep_not_null($statuses['comments']) ? ' (' . nl2br(tep_output_string_protected($statuses['comments'])) . ')' : (tep_not_null($statuses['orders_status_description']) ? ' (' . tep_output_string_protected($statuses['orders_status_description']) . ')' : '')) . '</td>' . "\n" . '	  </tr>' . "\n";
}
?>
	</table>
	</fieldset>
<?php 
if (DOWNLOAD_ENABLED == 'true') {
    include DIR_WS_MODULES . 'downloads.php';
}
?>
	<div class="buttons">
	  <div style="text-align: left;"><?php 
echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, tep_get_all_get_params(array('order_id')), 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK, 'class="button_back"') . '</a>';
?>
</div>
	</div>
              </tr>
<?php 
    }
    if (CHECKOUT_SHIPPING_DATE == 'true') {
        ?>

<!-- ship date -->
              <tr>
                <td class="main"><?php 
        echo '<b>' . HEADING_SHIPPING_DATE . '</b>';
        ?>
</td>
              </tr>
              <tr>
                <td class="main"><?php 
        echo tep_date_long($order->info['delivery_date']);
        ?>
</td>
              </tr> 
<!-- eof ship date -->

<?php 
    }
    // end if (CHECKOUT_SHIPPING_DATE != 'true')
    ?>
            </table></td>
<?php 
}
?>
            <td width="<?php 
echo $order->delivery != false ? '70%' : '100%';
Exemple #15
0
    $template_pinfo['moreinfolabel'] = TEXT_MORE_INFORMATION;
    $template_pinfo['moreinfourl'] = tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false);
} else {
    $template_pinfo['moreinfolabel'] = '';
    $template_pinfo['moreinfourl'] = '';
}
$template_pinfo['moreinfolabel'] = str_replace('%s', $template_pinfo['moreinfourl'], $template_pinfo['moreinfolabel']);
// See if product is not yet available
if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
    $template_pinfo['productdatelabel'] = sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available']));
    // Modified in v4.5
    $template_pinfo['productdate'] = tep_date_long($product_info['products_date_available']);
} else {
    $template_pinfo['productdatelabel'] = sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added']));
    // Modified in v4.5
    $template_pinfo['productdate'] = tep_date_long($product_info['products_date_added']);
}
// Strip out %s values
//$template_pinfo['productdatelabel'] = str_replace('%s.', '', $template['productdatelabel']); // Removed in v4.5
// See if any product reviews
$template_pinfo['reviewsurl'] = tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params());
$template_pinfo['reviewsbutton'] = tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS);
$template_pinfo['addtocartbutton'] = tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART);
// See if any "Also Purchased" items. Feature added in v4.0.6
$sts->start_capture();
if (USE_CACHE == 'true' && empty($SID)) {
    echo tep_cache_also_purchased(3600);
} else {
    include DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS;
}
$sts->stop_capture('alsopurchased');
Exemple #16
0
 if (tep_not_null($product_info['products_image'])) {
     $lc_text .= '<div class="row_product_image">' . tep_image(DIR_WS_IMAGES . 'foreign/big/' . $product_info['products_image'], $product_info['products_name']) . '</div>' . "\n";
 } else {
     $lc_text .= '<div class="row_product_image">' . tep_image(DIR_WS_TEMPLATES_IMAGES . 'nofoto_big.gif', $product_info['products_name']) . '</div>' . "\n";
 }
 $lc_text .= '<div class="row_product_name">' . $product_info['products_name'] . '</div>' . "\n";
 $temp_string = '';
 if (tep_not_null($product_info['products_author'])) {
     $temp_string .= (strpos($product_info['products_author'], ',') ? TEXT_AUTHORS : TEXT_AUTHOR) . ' ' . $product_info['products_author'];
 }
 if (tep_not_null($product_info['products_manufacturer'])) {
     $temp_string .= (tep_not_null($temp_string) ? ', ' : '') . TEXT_MANUFACTURER . ' ' . $product_info['products_manufacturer'] . ($product_info['products_date_available'] <= date('Y-m-d') && tep_not_null($product_info['products_year']) ? ', ' . $product_info['products_year'] . TEXT_YEAR : '');
 }
 $lc_text .= '<div class="row_product_author">' . $temp_string . '</div>' . "\n";
 if ($product_info['products_date_available'] > date('Y-m-d')) {
     $lc_text .= '<div class="row_product_author">' . sprintf(TEXT_PRODUCT_NOT_AVAILABLE, tep_date_long($product_info['products_date_available']) . TEXT_YEAR) . '</div>' . "\n";
 }
 $temp_string = '';
 if (tep_not_null($product_info['products_available_in'])) {
     if (ALLOW_SHOW_AVAILABLE_IN == 'true') {
         $temp_string .= sprintf(TEXT_AVAILABLE_IN_FOREIGN, $product_info['products_available_in']) . ' ';
     }
 }
 $lc_text .= '<div class="row_product_author"><strong>' . $temp_string . '</strong></div>' . "\n";
 if (tep_not_null($product_info['products_model'])) {
     $lc_text .= '<div class="row_product_model">' . TEXT_MODEL . ' ' . $product_info['products_model'] . '</div>' . "\n";
 }
 if (tep_not_null($product_info['products_genre'])) {
     $lc_text .= '<div class="row_product_author">' . TEXT_GENRE . ' ' . $product_info['products_genre'] . '</div>' . "\n";
 }
 if (tep_not_null($product_info['products_language'])) {
Exemple #17
0
        for ($i = 1; $i <= 5; $i++) {
            $conditions_array[] = array('id' => $i, 'text' => sprintf(ENTRY_CONDITION_OF, $i));
        }
        echo tep_draw_pull_down_menu('boards_condition', $conditions_array, $bInfo->boards_condition);
    }
    ?>
</td>
          </tr>
          <tr>
            <td class="main" width="250"><?php 
    echo ENTRY_EXPIRES_DATE;
    ?>
</td>
            <td class="main"><?php 
    if ($bInfo->expires_date > '0000-00-00') {
        echo ENTRY_EXPIRES_DATE_TILL . ' ' . tep_date_long($bInfo->expires_date);
    } else {
        echo ENTRY_EXPIRES_DATE_NONE;
    }
    ?>
</td>
          </tr>
          <tr>
            <td class="main" width="250"><?php 
    echo ENTRY_IMAGES;
    ?>
</td>
            <td class="main"><?php 
    if (tep_not_null($bInfo->boards_image)) {
        $boards_images_dir = 'boards/' . substr(sprintf('%09d', $bInfo->boards_id), 0, 6) . '/';
        $boards_images = explode("\n", $bInfo->boards_image);
            ?>
</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>
    }
    $canceldue = strtotime('+' . PAYMENT_METHOD_BANK_TRANSFER_OVERDUE);
}
$email_text_array = array();
$email_text_array[0] = 'Guten Tag ' . $to_name . ',';
$email_text_array[1] = 'vielen Dank für Ihre Bestellung ' . $order_no . ' vom ' . $order_date . ' bei JULIE & GRACE.';
$email_text_array[2] = 'Sie haben bei der Bezahlweise „Vorkasse“ ausgewählt, aber leider konnten wir bis heute auf unserem Konto noch keinen Zahlungseingang von Ihnen feststellen.';
$email_text_array[3] = 'Bitte haben Sie Verständnis, dass wir mit der Bearbeitung Ihrer Bestellung erst nach Zahlungseingang beginnen.';
$email_text_array[4] = 'Bitte überweisen Sie den Betrag von ' . strip_tags($total['text']) . ' auf das folgende Konto:';
$email_text_array[5] = 'Verwendungszweck: Bestell-Nr.: ' . $order_no . ' vom ' . $order_date . '' . "\n\n";
//$email_text_array[5]  = 'Kontoinhaber: '.MODULE_PAYMENT_TRANSFER_PAYTO."\n";
//$email_text_array[5] .= 'Kontonummer: '.MODULE_PAYMENT_TRANSFER_ACCOUNT."\n";
//$email_text_array[5] .= 'Kreditinstitut: '.MODULE_PAYMENT_TRANSFER_BANK."\n";
//$email_text_array[5] .= 'Bankleitzahl: '.MODULE_PAYMENT_TRANSFER_BRANCH."\n";
//$email_text_array[5] .= 'Nur für Auslandszahlungen: '.MODULE_PAYMENT_TRANSFER_INTERNATIONAL_CODE."\n";
//$email_text_array[5] .= 'IBAN-Nummer: '.MODULE_PAYMENT_TRANSFER_IBAN."\n";
$email_text_array[6] = nl2br(displayBankAccountInfo());
$jng_live_email = MAILTYPE == 'HTML' ? '<a href="mailto:' . JNG_LIVE_EMAIL . '">' . JNG_LIVE_EMAIL . '</a>' : JNG_LIVE_EMAIL;
$email_text_array[7] = 'Sollten Sie in den Betrag bereits überwiesen haben, informieren Sie uns bitte kurz über ' . $jng_live_email . ' über Ihre geleistete Zahlung. Wenn wir bis zum ' . tep_date_long($canceldue) . ' keine Zahlung von Ihnen erhalten, gehen wir davon aus, dass Sie an der Bestellung nicht mehr interessiert sind und stornieren diese.';
$email_text = '';
if (MAILTYPE == 'HTML') {
    foreach ($email_text_array as $eta) {
        $email_text .= '<p>' . nl2br($eta) . '</p>';
    }
    $email_text .= '<p>' . nl2br(EMAIL_FOOTER_TEXT_2) . '</p>';
} else {
    foreach ($email_text_array as $eta) {
        $email_text .= $eta . "\n\n";
    }
    $email_text .= EMAIL_FOOTER_TEXT_2;
}
     // Update Status History & Email Customer if Necessary
     $customer_notified = '0';
     if ($check_status['advance_orders_status'] != $status || tep_not_null($comments)) {
         // Notify Customer
         if (isset($HTTP_POST_VARS['notify']) && $HTTP_POST_VARS['notify'] == 'on') {
             $notify_comments = '';
             if (isset($HTTP_POST_VARS['notify_comments']) && $HTTP_POST_VARS['notify_comments'] == 'on' && tep_not_null($comments)) {
                 $notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "\n\n";
             }
             if (tep_not_null($check_status['shops_database'])) {
                 tep_db_select_db($check_status['shops_database']);
             }
             $store_name_info_query = tep_db_query("select configuration_value as store_name from " . TABLE_CONFIGURATION . " where configuration_key = 'STORE_NAME'");
             $store_name_info = tep_db_fetch_array($store_name_info_query);
             tep_db_select_db(DB_DATABASE);
             $email = $store_name_info['store_name'] . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . EMAIL_TEXT_ORDER_CHANGED . "\n" . EMAIL_SEPARATOR . "\n" . ($check_status['advance_orders_status'] != $status ? sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]) . "\n\n" : '') . $notify_comments . "\n" . EMAIL_TEXT_PS;
             tep_mail($check_status['customers_name'], $check_status['customers_email_address'], sprintf(EMAIL_TEXT_SUBJECT, $store_name_info['store_name'], $oID), $email, STORE_NAME, STORE_OWNER_EMAIL_ADDRESS);
             //			tep_mail('Andrey Sivkov', '*****@*****.**', sprintf(EMAIL_TEXT_SUBJECT, $store_name_info['store_name'], $oID), $email, STORE_NAME, STORE_OWNER_EMAIL_ADDRESS);
             $customer_notified = '1';
         }
         tep_db_query("update " . TABLE_ADVANCE_ORDERS . " set advance_orders_status = '" . tep_db_input($status) . "' where advance_orders_id = '" . tep_db_input($oID) . "'");
     }
     $operator = tep_db_prepare_input($REMOTE_USER);
     if ($check_status['advance_orders_status'] != $status || tep_not_null($comments) || tep_not_null($admin_comments)) {
         tep_db_query("insert into " . TABLE_ADVANCE_ORDERS_STATUS_HISTORY . " (advance_orders_id, advance_orders_status_id, date_added, customer_notified, comments, admin_comments, operator) values ('" . tep_db_input($oID) . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input(tep_db_prepare_input($comments)) . "', '" . tep_db_input(tep_db_prepare_input($admin_comments)) . "', '" . tep_db_input(tep_db_prepare_input($operator)) . "')");
     }
     tep_redirect(tep_href_link(FILENAME_ADVANCE_ORDERS, tep_get_all_get_params(array('action')) . 'action=view'));
     break;
 case 'create_payment_link':
     header('Content-type: text/html; charset=' . CHARSET . '');
     echo '<?xml version="1.0" encoding="' . CHARSET . '"?>' . "\n";
function status_email($oID, $payCC)
{
    global $languages_id;
    $payCC == 1 ? $status = QBI_CC_STATUS_SELECT : ($status = QBI_MO_STATUS_SELECT);
    $comments = tep_db_prepare_input('');
    $check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int) $oID . "'");
    $check_status = tep_db_fetch_array($check_status_query);
    if ($check_status['orders_status'] != $status) {
        tep_db_query("update " . TABLE_ORDERS . " set orders_status = '" . tep_db_input($status) . "', last_modified = now() where orders_id = '" . (int) $oID . "'");
        $customer_notified = '0';
        if (QBI_EMAIL_SEND == 1) {
            $result = tep_db_query("SELECT orders_status_name FROM " . TABLE_ORDERS_STATUS . " WHERE orders_status_id={$status} AND language_id={$languages_id}");
            if ($myrow = tep_db_fetch_array($result)) {
                $status_name = $myrow['orders_status_name'];
            }
            $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . sprintf(EMAIL_TEXT_STATUS_UPDATE, $status_name);
            tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
            $customer_notified = '1';
        }
        tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int) $oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')");
    }
    return;
}
        <td><?php 
echo tep_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main" colspan="2"><b><?php 
echo sprintf(HEADING_ORDER_NUMBER, $HTTP_GET_VARS['order_id']) . ' <small>(' . $order->info['orders_status'] . ')</small>';
?>
</b></td>
          </tr>
          <tr>
            <td class="smallText"><?php 
echo HEADING_ORDER_DATE . ' ' . tep_date_long($order->info['date_purchased']);
?>
</td>
            <td class="smallText" align="right"><?php 
echo HEADING_ORDER_TOTAL . ' ' . $order->info['total'];
?>
</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents">
<?php 
if ($order->delivery != false) {
    ?>
        if ($new_price = tep_get_products_special_price($products_new['products_id'])) {
            $products_price = '<s>' . $currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($products_new['products_tax_class_id'])) . '</span>';
        } else {
            $products_price = $currencies->display_price($products_new['products_price'], tep_get_tax_rate($products_new['products_tax_class_id']));
        }
        ?>
          <tr>
            <td width="<?php 
        echo SMALL_IMAGE_WIDTH + 10;
        ?>
" valign="top" class="main"><?php 
        echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $products_new['products_image'], $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
        ?>
</td>
            <td valign="top" class="main"><?php 
        echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '"><b><u>' . $products_new['products_name'] . '</u></b></a><br>' . TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br>' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'] . '<br><br>' . TEXT_PRICE . ' ' . $products_price;
        ?>
</td>
            <td align="right" valign="middle" class="main"><?php 
        echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new['products_id']) . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a>';
        ?>
</td>
          </tr>
          <tr>
            <td colspan="3"><?php 
        echo tep_draw_separator('pixel_trans.gif', '100%', '10');
        ?>
</td>
          </tr>
<?php 
    }
        }
        ?>
    </p>

<?php 
    }
    ?>

    <div class="clearfix"></div>

<?php 
    if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
        ?>

    <div class="alert alert-info"><?php 
        echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available']));
        ?>
</div>

<?php 
    }
    ?>

  </div>

<?php 
    $reviews_query = tep_db_query("select count(*) as count, avg(reviews_rating) as avgrating from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd where r.products_id = '" . (int) $HTTP_GET_VARS['products_id'] . "' and r.reviews_id = rd.reviews_id and rd.languages_id = '" . (int) $languages_id . "' and reviews_status = 1");
    $reviews = tep_db_fetch_array($reviews_query);
    if ($reviews['count'] > 0) {
        echo '<span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"><meta itemprop="ratingValue" content="' . $reviews['avgrating'] . '" /><meta itemprop="ratingCount" content="' . $reviews['count'] . '" /></span>';
    }
Exemple #25
0
      </tr>
<?php 
        if ($pInfo->products_date_available > date('Y-m-d')) {
            ?>
      <tr>
        <td align="center" class="smallText"><?php 
            echo sprintf(TEXT_PRODUCT_DATE_AVAILABLE, tep_date_long($pInfo->products_date_available));
            ?>
</td>
      </tr>
<?php 
        } else {
            ?>
      <tr>
        <td align="center" class="smallText"><?php 
            echo sprintf(TEXT_PRODUCT_DATE_ADDED, tep_date_long($pInfo->products_date_added));
            ?>
</td>
      </tr>
<?php 
        }
        ?>
      <tr>
        <td><?php 
        echo tep_draw_separator('pixel_trans.gif', '1', '10');
        ?>
</td>
      </tr>
<?php 
    }
    if (isset($HTTP_GET_VARS['read']) && $HTTP_GET_VARS['read'] == 'only') {
Exemple #26
0
<!-- left box -->
<?php 
        // The link will appear only if:
        // - Download remaining count is > 0, AND
        // - The file is present in the DOWNLOAD directory, AND EITHER
        // - No expiry date is enforced (maxdays == 0), OR
        // - The expiry date is not reached
        if ($downloads['download_count'] > 0 && file_exists(DIR_FS_DOWNLOAD . $downloads['orders_products_filename']) && ($downloads['download_maxdays'] == 0 || $download_timestamp > time())) {
            echo '            <td class="main"><a href="' . tep_href_link(FILENAME_DOWNLOAD, 'order=' . $last_order . '&id=' . $downloads['orders_products_download_id']) . '">' . $downloads['products_name'] . '</a></td>' . "\n";
        } else {
            echo '            <td class="main">' . $downloads['products_name'] . '</td>' . "\n";
        }
        ?>
<!-- right box -->
<?php 
        echo '            <td class="main">' . TABLE_HEADING_DOWNLOAD_DATE . tep_date_long($download_expiry) . '</td>' . "\n" . '            <td class="main" align="right">' . $downloads['download_count'] . TABLE_HEADING_DOWNLOAD_COUNT . '</td>' . "\n" . '          </tr>' . "\n";
    }
    ?>
          </tr>
        </table></td>
      </tr>
<?php 
    if (!strstr($PHP_SELF, FILENAME_ACCOUNT_HISTORY_INFO)) {
        ?>
      <tr>
        <td><?php 
        echo tep_draw_separator('pixel_trans.gif', '100%', '10');
        ?>
</td>
      </tr>
      <tr>
        }
        ?>

  <div class="contentText">
    <div class="panel panel-info">
      <div class="panel-heading"><strong><?php 
        echo TEXT_ORDER_NUMBER . ' ' . (int) $order['orders_id'] . ' <span class="contentText">(' . HTML::outputProtected($order['orders_status_name']) . ')</span>';
        ?>
</strong><?php 
        echo HTML::button(SMALL_IMAGE_BUTTON_VIEW, 'glyphicon glyphicon-file', OSCOM::link('account_history_info.php', (isset($_GET['page']) ? 'page=' . $_GET['page'] . '&' : '') . 'order_id=' . (int) $order['orders_id'], 'SSL'), 'primary', NULL, 'btn-primary btn-xs pull-right');
        ?>
</div>
      <div class="panel-body">
        <div class="row">
          <div class="col-sm-6"><?php 
        echo '<strong>' . TEXT_ORDER_DATE . '</strong> ' . tep_date_long($order['date_purchased']) . '<br /><strong>' . $order_type . '</strong> ' . HTML::outputProtected($order_name);
        ?>
</div>
          <br class="visible-xs" />
          <div class="col-sm-6"><?php 
        echo '<strong>' . TEXT_ORDER_PRODUCTS . '</strong> ' . $Qproducts->valueInt('count') . '<br /><strong>' . TEXT_ORDER_COST . '</strong> ' . strip_tags($order['order_total']);
        ?>
</div>
        </div>
      </div>
    </div>
  </div>

<?php 
    }
    ?>
Exemple #28
0
    }
    if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
        ?>
						<table cellpadding="0" cellspacing="0" class="product box_width_cont">
							<tr><td class="line_h"><?php 
        echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available']));
        ?>
</td></tr>
							<tr><td height="17"></td></tr>
						</table>
<?php 
    } else {
        ?>
						<table cellpadding="0" cellspacing="0" class="product box_width_cont">
							<tr><td class="line_h"><?php 
        echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added']));
        ?>
</td></tr>
							<tr><td height="17"></td></tr>
						</table>
<?php 
    }
    ?>
		<!-- 
		<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
          <tr class="infoBoxContents"><td>
			 -->
			<table border="0" width="100%" cellspacing="0" cellpadding="0" class="product box_width_cont">
              <tr>
                <td class="main bg_input"><?php 
    echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>';
Exemple #29
0
        echo $reviews_split->display_count(TEXT_DISPLAY_NUMBER_OF_REVIEWS);
        ?>
</p>
  </div>

  <br />

<?php 
    }
    $reviews_query = tep_db_query($reviews_split->sql_query);
    while ($reviews = tep_db_fetch_array($reviews_query)) {
        ?>

  <div>
    <span style="float: right;"><?php 
        echo sprintf(TEXT_REVIEW_DATE_ADDED, tep_date_long($reviews['date_added']));
        ?>
</span>
    <h2><?php 
        echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $reviews['products_id'] . '&reviews_id=' . $reviews['reviews_id']) . '">' . $reviews['products_name'] . '</a> <span class="smallText">' . sprintf(TEXT_REVIEW_BY, tep_output_string_protected($reviews['customers_name'])) . '</span>';
        ?>
</h2>
  </div>

  <div class="contentText">
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td width="<?php 
        echo SMALL_IMAGE_WIDTH + 10;
        ?>
" align="center" valign="top" class="main"><?php 
        }
        ?>
      <div class="col-sm-6">
        <div class="well well-sm">
           <div class="row">
              <div class="col-xs-3 col-md-3 text-center"><?php 
        echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $products_new['products_image'], $products_new['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>';
        ?>
</div>
              <div class="col-xs-9 col-md-9 info-box">
                <h4><?php 
        echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products_new['products_id']) . '">' . $products_new['products_name'] . '</a>';
        ?>
</h4>
                <p><?php 
        echo TEXT_DATE_ADDED . ' ' . tep_date_long($products_new['products_date_added']) . '<br />' . TEXT_MANUFACTURER . ' ' . $products_new['manufacturers_name'];
        ?>
</p>
                <hr />
                <div class="row">
                  <div class="col-sm-6">
                    <?php 
        echo TEXT_PRICE . ' ' . $products_price;
        ?>
                  </div>
                  <div class="col-sm-6 text-right">
                    <?php 
        echo tep_draw_button(IMAGE_BUTTON_IN_CART, 'glyphicon glyphicon-shopping-cart', tep_href_link(FILENAME_PRODUCTS_NEW, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_new['products_id']), null, null, 'btn-success');
        ?>
                  </div>
                </div>