Der Artikel “Template-Anpassungen” wird bereitgestellt von:
BuI Hinsche GmbH – Softwareentwicklung und Design. Plugins, Module, Templates
Anpassungen für
xt:Commerce Veyton 4.0.12
(Die manuellen Anpassungen können auch in Version 4.0.13 notwendig sein, wenn der Shop nicht nach Anleitung geupdated wurde.)
Sollte bei Ihnen der Zahlungsbereich weiß bleiben, passen Sie in Ihrem Template folgende Dateien an bzw. erzeugen neue.
Datei: ./xtCore/pages/checkout.html
Suchen Sie folgenden Code:
{if $page_action == pay}
{include file="/xtCore/pages/checkout/subpage_pay.html" type="tpl_include"}
{/if}
Fügen Sie danach ein:
{if $page_action == pay_frame}
{include file='/xtCore/pages/checkout/subpage_pay_iframe.html' type='tpl_include'}
{/if}
Datei: ./xtCore/pages/checkout/subpage_pay_iframe.html
Erstellen Sie diese Datei und fügen Sie folgendem Inhalt ein:
<h1>{txt key=TEXT_PAGE_TITLE_PAY}</h1>
<iframe src="{$psp_target}" width="100%" height="600" frameborder="0" name="veyton_paymentframe">
<p>Ihr Browser kann leider keine eingebetteten Frames anzeigen</p>
</iframe>
Datei: ./xt_core/pages/page_action/checkout_pay_frame.php
Prüfen Sie, ob die Datei folgenden Inhalt hat und korrigieren Sie sie gegebenenfalls:
<?php
/*
#########################################################################
# xt:Commerce VEYTON 4.0 Enterprise
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright 2007-2009 xt:Commerce GmbH. All Rights Reserved.
# This file may not be redistributed in whole or significant part.
# Content of this file is Protected By International Copyright Laws.
#
# ~~~~~~~~~ xt:Commerce VEYTON 4.0 Enterprise IS NOT FREE SOFTWARE ~~~~~~~~~~~~~~~~
#
# http://www.xt-commerce.com
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# @version $Id: checkout.pay_frame.php 4229 2010-07-21 16:29:19Z mzanier $
# @copyright xt:Commerce GmbH, www.xt-commerce.com
#
# @author Mario Zanier, xt:Commerce GmbH mzanier@xt-commerce.com
#
# @author Matthias Hinsche mh@xt-commerce.com
# @author Matthias Benkwitz mb@xt-commerce.com
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# xt:Commerce GmbH, Bachweg 1, A-6091 Goetzens (AUSTRIA)
# office@xt-commerce.com
#
#########################################################################
defined('_VALID_CALL') or die('Direct Access is not allowed.');
$brotkrumen->_addItem($xtLink->_link(array('page'=>'cart')),TEXT_CART);
$brotkrumen->_addItem($xtLink->_link(array('page'=>'checkout','paction'=>'shipping', 'conn'=>'SSL')),TEXT_SHIPPING_METHOD);
$brotkrumen->_addItem($xtLink->_link(array('page'=>'checkout','paction'=>'payment', 'conn'=>'SSL')),TEXT_PAYMENT_METHOD);
$brotkrumen->_addItem($xtLink->_link(array('page'=>'checkout','paction'=>'confirmation', 'conn'=>'SSL')),TEXT_CONFIRMATION);
$order = new order($_SESSION['last_order_id'],$_SESSION['customer']->customers_id);
$shop_id = $store_handler->shop_id;
$shipping_code = $_SESSION['selected_shipping'];
$payment_code = $_SESSION['selected_payment'];
// Shipping
$tmp_shipping_data = $checkout->_getShipping();
$shipping_data = $tmp_shipping_data[$shipping_code];
$shipping_class_path = _SRV_WEBROOT._SRV_WEB_PLUGINS.$shipping_data['shipping_dir'].'/classes/';
$shipping_class_file = 'class.'.$shipping_data['shipping_code'].'.php';
if (file_exists($shipping_class_path . $shipping_class_file)) {
require_once($shipping_class_path.$shipping_class_file);
$shipping_module_data = new $shipping_data['shipping_code']();
}
// Payment
$tmp_payment_data = $checkout->_getPayment();
$payment_data = $tmp_payment_data[$payment_code];
$payment_class_path = _SRV_WEBROOT._SRV_WEB_PLUGINS.$payment_data['payment_dir'].'/classes/';
$payment_class_file = 'class.'.$payment_data['payment_code'].'.php';
if (file_exists($payment_class_path . $payment_class_file)) {
require_once($payment_class_path.$payment_class_file);
$payment_module_data = new $payment_data['payment_code']();
}
// check for PSP form
if (isset($payment_module_data->IFRAME_URL)) {
$frame_url = $payment_module_data->pspRedirect();
$PSP_TARGET = $frame_url;
$checkout_data = array_merge($checkout_data,array('psp_target'=>$PSP_TARGET));
($plugin_code = $xtPlugin->PluginCode('module_checkout.php:pay_frame_data')) ? eval($plugin_code) : false;
}
?>