#1 (permalink)  
Alt 13.09.2008, 10:58
MPS MPS ist offline
Neuer Benutzer
 
Registriert seit: 31.01.2008
Beiträge: 11
Standard iframe in checkout_confirmation

Hallo,

folgende Idee...

Ich möchte in der checkout_confirmation.php die Anzeige des Widerrufes in einem iframe einbinden, damit nicht der ganze lange Text angezeigt wird.

Ferner hat das dann auch zum Vorteil, das mein Kreditkartenmodul nicht auf den Widerrufstext angezeigt, sprich darüber gelegt wird.

Zur Zeit ist der Widerruf in der checkout_confirmation.php ausgeschaltet.

Wie kann ich iframe an besten einbinden?

Hier der Code wie er momentan ist:

//heidelpay
if (substr($payment_modules->selected_module,0,9) == 'heidelpay' && $payment_modules->selected_module != 'heidelpaypp') {
$HEIDELPAY_CALL_FORM = true;
$smarty->assign('CHECKOUT_BUTTON', "</form>" . $payment_modules->payment_action());
}else
$smarty->assign('CHECKOUT_BUTTON', xtc_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "\n");
////heidelpay

//check if display conditions on checkout page is true
if (DISPLAY_REVOCATION_ON_CHECKOUT == 'false') {

if (GROUP_CHECK == 'true') {
$group_check = "and group_ids LIKE '%c_" . $_SESSION['customers_status']['customers_status_id'] . "_group%'";
}

$shop_content_query = "SELECT
content_title,
content_heading,
content_text,
content_file
FROM " . TABLE_CONTENT_MANAGER . "
WHERE content_group='" . REVOCATION_ID . "' " . $group_check . "
AND languages_id='" . $_SESSION['languages_id'] . "'";

$shop_content_query = xtc_db_query($shop_content_query);
$shop_content_data = xtc_db_fetch_array($shop_content_query);

if ($shop_content_data['content_file'] != '') {
ob_start();
if (strpos($shop_content_data['content_file'], '.txt'))
echo '<pre>';
include (DIR_FS_CATALOG . 'media/content/' . $shop_content_data['content_file']);
if (strpos($shop_content_data['content_file'], '.txt'))
echo '</pre>';
$revocation = ob_get_contents();
ob_end_clean();
} else {
$revocation = $shop_content_data['content_text'];
}

$smarty->assign('REVOCATION', $revocation);
$smarty->assign('REVOCATION_TITLE', $shop_content_data['content_heading']);
$smarty->assign('REVOCATION_LINK', $main->getContentLink(REVOCATION_ID, MORE_INFO));

$shop_content_query = "SELECT
content_title,
content_heading,
content_text,
content_file
FROM " . TABLE_CONTENT_MANAGER . "
WHERE content_group='3' " . $group_check . "
AND languages_id='" . $_SESSION['languages_id'] . "'";

$shop_content_query = xtc_db_query($shop_content_query);
$shop_content_data = xtc_db_fetch_array($shop_content_query);

$smarty->assign('AGB_TITLE', $shop_content_data['content_heading']);
$smarty->assign('AGB_LINK', $main->getContentLink(3, MORE_INFO));

}

$smarty->assign('language', $_SESSION['language']);
$smarty->assign('PAYMENT_BLOCK', $payment_block);
$smarty->caching = 0;
$main_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/checkout_confirmation.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');
?>


LG
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
checkoutconfirmation, iframe

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Aus {$products_url} einen Iframe für: {$products_description} Mohamedal_hakim Template System 9 03.09.2007 12:35
main_content in einem iFrame andreas.schmidt Shopbereich 1 23.03.2007 12:59
Iframe stut Shopbereich 8 13.07.2004 17:42


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:10 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand