Danke für die schnelle Antwort.
Also:
Der o.g. Code ist auf der Bestellbestätigungsseite.
Auf dieser Seite findet auch eine Datbankabfrage stattet :
Code:
include ('includes/application_top.php');
// create smarty elements
$smarty = new Smarty;
// include boxes
require (DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/source/boxes.php');
// if the customer is not logged on, redirect them to the shopping cart page
if (!isset ($_SESSION['customer_id'])) {
xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART));
}
if (isset ($_GET['action']) && ($_GET['action'] == 'update')) {
if ($_SESSION['account_type'] != 1) {
xtc_redirect(xtc_href_link(FILENAME_DEFAULT));
} else {
xtc_redirect(xtc_href_link(FILENAME_LOGOFF));
}
}
$breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT_SUCCESS);
$breadcrumb->add(NAVBAR_TITLE_2_CHECKOUT_SUCCESS);
require (DIR_WS_INCLUDES.'header.php');
$orders_query = xtc_db_query("select orders_id, orders_status from ".TABLE_ORDERS." where customers_id = '".$_SESSION['customer_id']."' order by orders_id desc limit 1");
$orders = xtc_db_fetch_array($orders_query);
$last_order = $orders['orders_id'];
$order_status = $orders['orders_status'];
$smarty->assign('FORM_ACTION', xtc_draw_form('order', xtc_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')));
$smarty->assign('BUTTON_CONTINUE', xtc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
$smarty->assign('BUTTON_PRINT', '
');
$smarty->assign('FORM_END', '</form>');
// GV Code Start
$gv_query = xtc_db_query("select amount from ".TABLE_COUPON_GV_CUSTOMER." where customer_id='".$_SESSION['customer_id']."'");
if ($gv_result = xtc_db_fetch_array($gv_query)) {
if ($gv_result['amount'] > 0) {
$smarty->assign('GV_SEND_LINK', xtc_href_link(FILENAME_GV_SEND));
}
}
// GV Code End
// Google Conversion tracking
if (GOOGLE_CONVERSION == 'true') {
$smarty->assign('google_tracking', 'true');
$smarty->assign('tracking_code', '
<noscript>
<a href="http://services.google.com/sitestats/'.GOOGLE_LANG.'.html" onclick="window.open(this.href); return false;">
[Blockierte Grafik: http://www.googleadservices.com/pagead/convers…'.GOOGLE_LANG.']
</a>
</noscript>
');
}
if (DOWNLOAD_ENABLED == 'true')
include (DIR_WS_MODULES.'downloads.php');
$smarty->assign('language', $_SESSION['language']);
$smarty->assign('PAYMENT_BLOCK', $payment_block);
$smarty->caching = 0;
$main_content = $smarty->fetch(CURRENT_TEMPLATE.'/module/checkout_success.html');
$smarty->assign('language', $_SESSION['language']);
$smarty->assign('main_content', $main_content);
$smarty->caching = 0;
if (!defined(RM))
$smarty->load_filter('output', 'note');
$smarty->display(CURRENT_TEMPLATE.'/index.html');
include ('includes/application_bottom.php');
?>
Mein Problem:
Ich weiß nicht, wohin mit dem Code, bzw. was muss ich ersetzen, dass die Bestellnummer ergänzt wird.