change line endings for easy patching
This commit is contained in:
parent
f67736a60f
commit
2e429beb94
BIN
.gitattributes
vendored
Normal file
BIN
.gitattributes
vendored
Normal file
Binary file not shown.
@ -1,25 +1,25 @@
|
||||
---- IDENT ----
|
||||
d3_hp_vorkassemail_cust_plain
|
||||
|
||||
---- TITEL ----
|
||||
Heidelpay Vorkasseinfomail Kunde Plain
|
||||
|
||||
---- LANGTEXT ----
|
||||
Sehr geehrter Kunde,
|
||||
|
||||
Sie haben bei Ihrer Bestellung die Bezahlart "Vorkasse" oder "Rechnung" gewählt.
|
||||
Wir konnten heute Ihren Zahlungseingang verbuchen.
|
||||
|
||||
[{if $order->blDifferentAmount}]
|
||||
Achtung, der von Ihnen überwiesene Betrag ([{$order->fPayAmount}] [{$order->oxorder__oxcurrency->value}])
|
||||
stimmt nicht mit dem Gesamtbetrag der Bestellung ([{$order->getTotalOrderSum()}] [{$order->oxorder__oxcurrency->value}])
|
||||
überein!
|
||||
Bitte kontaktieren Sie uns umgehend per eMail oder Telefon.
|
||||
[{else}]
|
||||
Ihre Bestellung wird nun umgehend von uns bearbeitet und versandt.
|
||||
[{/if}]
|
||||
|
||||
Vielen Dank.
|
||||
|
||||
Beste Grüße
|
||||
---- IDENT ----
|
||||
d3_hp_vorkassemail_cust_plain
|
||||
|
||||
---- TITEL ----
|
||||
Heidelpay Vorkasseinfomail Kunde Plain
|
||||
|
||||
---- LANGTEXT ----
|
||||
Sehr geehrter Kunde,
|
||||
|
||||
Sie haben bei Ihrer Bestellung die Bezahlart "Vorkasse" oder "Rechnung" gewählt.
|
||||
Wir konnten heute Ihren Zahlungseingang verbuchen.
|
||||
|
||||
[{if $order->blDifferentAmount}]
|
||||
Achtung, der von Ihnen überwiesene Betrag ([{$order->fPayAmount}] [{$order->oxorder__oxcurrency->value}])
|
||||
stimmt nicht mit dem Gesamtbetrag der Bestellung ([{$order->getTotalOrderSum()}] [{$order->oxorder__oxcurrency->value}])
|
||||
überein!
|
||||
Bitte kontaktieren Sie uns umgehend per eMail oder Telefon.
|
||||
[{else}]
|
||||
Ihre Bestellung wird nun umgehend von uns bearbeitet und versandt.
|
||||
[{/if}]
|
||||
|
||||
Vielen Dank.
|
||||
|
||||
Beste Grüße
|
||||
Ihr Shop Team
|
@ -1,8 +1,8 @@
|
||||
---- IDENT ----
|
||||
d3_hp_vorkassemail_cust_subject
|
||||
|
||||
---- TITEL ----
|
||||
Heidelpay Vorkasseinfomail Kunde Betreff
|
||||
|
||||
---- LANGTEXT ----
|
||||
---- IDENT ----
|
||||
d3_hp_vorkassemail_cust_subject
|
||||
|
||||
---- TITEL ----
|
||||
Heidelpay Vorkasseinfomail Kunde Betreff
|
||||
|
||||
---- LANGTEXT ----
|
||||
Zahlungseingang zu Ihrer Bestellung [{$order->oxorder__oxordernr->value}] in unserem Online Shop
|
@ -1,26 +1,26 @@
|
||||
---- IDENT ----
|
||||
d3_hp_vorkassemail_cust_text
|
||||
|
||||
---- TITEL ----
|
||||
Heidelpay Vorkasseinfomail Kunde Text
|
||||
|
||||
---- LANGTEXT ----
|
||||
Sehr geehrter Kunde,<br/><br/>
|
||||
|
||||
<p>Sie haben bei Ihrer Bestellung die Bezahlart "Vorkasse" oder "Rechnung" gewählt.
|
||||
Wir konnten heute Ihren Zahlungseingang verbuchen.<br/><br/>
|
||||
[{if $order->blDifferentAmount}]
|
||||
Achtung, der von Ihnen überwiesene Betrag ([{$order->fPayAmount}] [{$order->oxorder__oxcurrency->value}])
|
||||
stimmt nicht mit dem Gesamtbetrag der Bestellung ([{$order->getTotalOrderSum()}] [{$order->oxorder__oxcurrency->value}])
|
||||
überein!<br/><br/>
|
||||
Bitte kontaktieren Sie uns umgehend per eMail oder Telefon.
|
||||
[{else}]
|
||||
Ihre Bestellung wird nun
|
||||
umgehend von uns bearbeitet und versandt.
|
||||
[{/if}]
|
||||
</p><br/><br/>
|
||||
|
||||
Vielen Dank.<br/><br/>
|
||||
|
||||
Beste Grüße<br/>
|
||||
---- IDENT ----
|
||||
d3_hp_vorkassemail_cust_text
|
||||
|
||||
---- TITEL ----
|
||||
Heidelpay Vorkasseinfomail Kunde Text
|
||||
|
||||
---- LANGTEXT ----
|
||||
Sehr geehrter Kunde,<br/><br/>
|
||||
|
||||
<p>Sie haben bei Ihrer Bestellung die Bezahlart "Vorkasse" oder "Rechnung" gewählt.
|
||||
Wir konnten heute Ihren Zahlungseingang verbuchen.<br/><br/>
|
||||
[{if $order->blDifferentAmount}]
|
||||
Achtung, der von Ihnen überwiesene Betrag ([{$order->fPayAmount}] [{$order->oxorder__oxcurrency->value}])
|
||||
stimmt nicht mit dem Gesamtbetrag der Bestellung ([{$order->getTotalOrderSum()}] [{$order->oxorder__oxcurrency->value}])
|
||||
überein!<br/><br/>
|
||||
Bitte kontaktieren Sie uns umgehend per eMail oder Telefon.
|
||||
[{else}]
|
||||
Ihre Bestellung wird nun
|
||||
umgehend von uns bearbeitet und versandt.
|
||||
[{/if}]
|
||||
</p><br/><br/>
|
||||
|
||||
Vielen Dank.<br/><br/>
|
||||
|
||||
Beste Grüße<br/>
|
||||
Ihr Shop Team
|
@ -1,19 +1,19 @@
|
||||
---- IDENT ----
|
||||
d3_hp_vorkassemail_owner_plain
|
||||
|
||||
---- TITEL ----
|
||||
Heidelpay Vorkasseinfomail Shopinhaber Plain
|
||||
|
||||
---- LANGTEXT ----
|
||||
Hallo,
|
||||
|
||||
Soeben konnte für Bestellung Nr [{$order->oxorder__oxordernr->value}] ein Zahlungseingang verbucht werden.
|
||||
|
||||
[{if $order->blDifferentAmount}]
|
||||
Achtung, der überwiesene Betrag ([{$order->fPayAmount}] [{$order->oxorder__oxcurrency->value}])
|
||||
stimmt NICHT mit dem Gesamtbetrag der Bestellung ([{$order->getTotalOrderSum()}]
|
||||
[{$order->oxorder__oxcurrency->value}]) überein!
|
||||
[{else}]
|
||||
Der überwiesene Betrag ([{$order->getTotalOrderSum()}] [{$order->oxorder__oxcurrency->value}])
|
||||
stimmt mit der Bestellsumme überein. Die Bestellung kann versandt werden.
|
||||
[{/if}]
|
||||
---- IDENT ----
|
||||
d3_hp_vorkassemail_owner_plain
|
||||
|
||||
---- TITEL ----
|
||||
Heidelpay Vorkasseinfomail Shopinhaber Plain
|
||||
|
||||
---- LANGTEXT ----
|
||||
Hallo,
|
||||
|
||||
Soeben konnte für Bestellung Nr [{$order->oxorder__oxordernr->value}] ein Zahlungseingang verbucht werden.
|
||||
|
||||
[{if $order->blDifferentAmount}]
|
||||
Achtung, der überwiesene Betrag ([{$order->fPayAmount}] [{$order->oxorder__oxcurrency->value}])
|
||||
stimmt NICHT mit dem Gesamtbetrag der Bestellung ([{$order->getTotalOrderSum()}]
|
||||
[{$order->oxorder__oxcurrency->value}]) überein!
|
||||
[{else}]
|
||||
Der überwiesene Betrag ([{$order->getTotalOrderSum()}] [{$order->oxorder__oxcurrency->value}])
|
||||
stimmt mit der Bestellsumme überein. Die Bestellung kann versandt werden.
|
||||
[{/if}]
|
||||
|
@ -1,8 +1,8 @@
|
||||
---- IDENT ----
|
||||
d3_hp_vorkassemail_owner_subject
|
||||
|
||||
---- TITEL ----
|
||||
Heidelpay Vorkasseinfomail Shopinhaber Betreff
|
||||
|
||||
---- LANGTEXT ----
|
||||
---- IDENT ----
|
||||
d3_hp_vorkassemail_owner_subject
|
||||
|
||||
---- TITEL ----
|
||||
Heidelpay Vorkasseinfomail Shopinhaber Betreff
|
||||
|
||||
---- LANGTEXT ----
|
||||
Zahlungseingang für Bestellung [{$order->oxorder__oxordernr->value}]
|
@ -1,24 +1,24 @@
|
||||
---- IDENT ----
|
||||
d3_hp_vorkassemail_owner_text
|
||||
|
||||
---- TITEL ----
|
||||
Heidelpay Vorkasseinfomail Shopinhaber Text
|
||||
|
||||
---- LANGTEXT ----
|
||||
Hallo,<br/><br/>
|
||||
|
||||
Soeben konnte für Bestellung Nr. [{$order->oxorder__oxordernr->value}] ein
|
||||
Zahlungseingang verbucht werden.<br/><br/>
|
||||
|
||||
[{if $order->blDifferentAmount}]
|
||||
<div style="color: red; font-weight: bold">
|
||||
Achtung, der überwiesene Betrag ([{$order->fPayAmount}] [{$order->oxorder__oxcurrency->value}])
|
||||
stimmt NICHT mit dem Gesamtbetrag der Bestellung
|
||||
([{$order->getTotalOrderSum()}] [{$order->oxorder__oxcurrency->value}]) überein!
|
||||
</div><br/>
|
||||
[{else}]
|
||||
<div style="color: #123123; font-weight: bold">
|
||||
Der überwiesene Betrag ([{$order->getTotalOrderSum()}] [{$order->oxorder__oxcurrency->value}]) stimmt mit
|
||||
der Bestellsumme überein. Die Bestellung kann versandt werden.
|
||||
</div><br/>
|
||||
---- IDENT ----
|
||||
d3_hp_vorkassemail_owner_text
|
||||
|
||||
---- TITEL ----
|
||||
Heidelpay Vorkasseinfomail Shopinhaber Text
|
||||
|
||||
---- LANGTEXT ----
|
||||
Hallo,<br/><br/>
|
||||
|
||||
Soeben konnte für Bestellung Nr. [{$order->oxorder__oxordernr->value}] ein
|
||||
Zahlungseingang verbucht werden.<br/><br/>
|
||||
|
||||
[{if $order->blDifferentAmount}]
|
||||
<div style="color: red; font-weight: bold">
|
||||
Achtung, der überwiesene Betrag ([{$order->fPayAmount}] [{$order->oxorder__oxcurrency->value}])
|
||||
stimmt NICHT mit dem Gesamtbetrag der Bestellung
|
||||
([{$order->getTotalOrderSum()}] [{$order->oxorder__oxcurrency->value}]) überein!
|
||||
</div><br/>
|
||||
[{else}]
|
||||
<div style="color: #123123; font-weight: bold">
|
||||
Der überwiesene Betrag ([{$order->getTotalOrderSum()}] [{$order->oxorder__oxcurrency->value}]) stimmt mit
|
||||
der Bestellsumme überein. Die Bestellung kann versandt werden.
|
||||
</div><br/>
|
||||
[{/if}]
|
@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
/usr/local/php5/bin/php-cli /ihr/serverpfad/zum/shop/modules/d3/heidelpay/Cron/cron_bankaccount.php
|
||||
#!/bin/bash
|
||||
/usr/local/php5/bin/php-cli /ihr/serverpfad/zum/shop/modules/d3/heidelpay/Cron/cron_bankaccount.php
|
||||
|
@ -1,21 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Carlos Souza
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Carlos Souza
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
@ -1,199 +1,199 @@
|
||||
/*
|
||||
* jQuery-Simple-Timer
|
||||
*
|
||||
* Creates a countdown timer.
|
||||
*
|
||||
* Example:
|
||||
* $('.timer').startTimer();
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
|
||||
var timer;
|
||||
|
||||
var Timer = function(targetElement){
|
||||
this.targetElement = targetElement;
|
||||
return this;
|
||||
};
|
||||
|
||||
Timer.start = function(options, targetElement){
|
||||
timer = new Timer(targetElement);
|
||||
return timer.start(options);
|
||||
};
|
||||
|
||||
Timer.prototype.start = function(options) {
|
||||
var createSubDivs = function(timerBoxElement){
|
||||
var seconds = document.createElement('div');
|
||||
seconds.className = 'seconds';
|
||||
|
||||
var minutes = document.createElement('div');
|
||||
minutes.className = 'minutes';
|
||||
|
||||
var hours = document.createElement('div');
|
||||
hours.className = 'hours';
|
||||
|
||||
var clearDiv = document.createElement('div');
|
||||
clearDiv.className = 'clearDiv';
|
||||
|
||||
return timerBoxElement.
|
||||
append(hours).
|
||||
append(minutes).
|
||||
append(seconds).
|
||||
append(clearDiv);
|
||||
};
|
||||
|
||||
this.targetElement.each(function(_index, timerBox) {
|
||||
var timerBoxElement = $(timerBox);
|
||||
var cssClassSnapshot = timerBoxElement.attr('class');
|
||||
|
||||
timerBoxElement.on('complete', function() {
|
||||
clearInterval(timerBoxElement.intervalId);
|
||||
});
|
||||
|
||||
timerBoxElement.on('complete', function() {
|
||||
timerBoxElement.onComplete(timerBoxElement);
|
||||
});
|
||||
|
||||
timerBoxElement.on('complete', function(){
|
||||
timerBoxElement.addClass('timeout');
|
||||
});
|
||||
|
||||
timerBoxElement.on('complete', function(){
|
||||
if(options && options.loop === true) {
|
||||
timer.resetTimer(timerBoxElement, options, cssClassSnapshot);
|
||||
}
|
||||
});
|
||||
|
||||
createSubDivs(timerBoxElement);
|
||||
return this.startCountdown(timerBoxElement, options);
|
||||
}.bind(this));
|
||||
};
|
||||
|
||||
/**
|
||||
* Resets timer and add css class 'loop' to indicate the timer is in a loop.
|
||||
* $timerBox {jQuery object} - The timer element
|
||||
* options {object} - The options for the timer
|
||||
* css - The original css of the element
|
||||
*/
|
||||
Timer.prototype.resetTimer = function($timerBox, options, css) {
|
||||
var interval = 0;
|
||||
if(options.loopInterval) {
|
||||
interval = parseInt(options.loopInterval, 10) * 1000;
|
||||
}
|
||||
setTimeout(function() {
|
||||
$timerBox.trigger('reset');
|
||||
$timerBox.attr('class', css + ' loop');
|
||||
timer.startCountdown($timerBox, options);
|
||||
}, interval);
|
||||
};
|
||||
|
||||
/*
|
||||
* Function finds out the number of seconds left in the timer of the particular element
|
||||
* element - the element of which the number of seconds left has to be found
|
||||
*/
|
||||
|
||||
Timer.prototype.fetchSecondsLeft = function(element){
|
||||
var secondsLeft = element.data('seconds-left');
|
||||
var minutesLeft = element.data('minutes-left');
|
||||
|
||||
if(minutesLeft === undefined){
|
||||
return parseInt(secondsLeft, 10);
|
||||
} else if(secondsLeft === undefined) {
|
||||
return parseFloat(minutesLeft) * 60;
|
||||
}else{
|
||||
throw 'Missing time data';
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
* Function starts the countdown of each of the element and binds clear when completed
|
||||
* element - The element whose timer is to initiated
|
||||
* options - Options specified in api call
|
||||
*/
|
||||
Timer.prototype.startCountdown = function(element, options) {
|
||||
options = options || {};
|
||||
|
||||
var intervalId = null;
|
||||
var defaultComplete = function(){
|
||||
clearInterval(intervalId);
|
||||
return this.clearTimer(element);
|
||||
}.bind(this);
|
||||
|
||||
element.onComplete = options.onComplete || defaultComplete;
|
||||
|
||||
var secondsLeft = this.fetchSecondsLeft(element);
|
||||
if(secondsLeft==0)
|
||||
{
|
||||
clearInterval(intervalId);
|
||||
return this.clearTimer(element);
|
||||
}
|
||||
var refreshRate = options.refreshRate || 1000;
|
||||
var endTime = secondsLeft + this.currentTime();
|
||||
var timeLeft = endTime - this.currentTime();
|
||||
|
||||
this.setFinalValue(this.formatTimeLeft(timeLeft), element);
|
||||
|
||||
intervalId = setInterval((function() {
|
||||
timeLeft = endTime - this.currentTime();
|
||||
this.setFinalValue(this.formatTimeLeft(timeLeft), element);
|
||||
}.bind(this)), refreshRate);
|
||||
|
||||
element.intervalId = intervalId;
|
||||
};
|
||||
|
||||
Timer.prototype.clearTimer = function(element){
|
||||
element.find('.seconds').text('00');
|
||||
element.find('.minutes').text('00:');
|
||||
element.find('.hours').text('00:');
|
||||
};
|
||||
|
||||
Timer.prototype.currentTime = function() {
|
||||
return Math.round((new Date()).getTime() / 1000);
|
||||
};
|
||||
|
||||
Timer.prototype.formatTimeLeft = function(timeLeft) {
|
||||
var lpad = function(n, width) {
|
||||
width = width || 2;
|
||||
n = n + '';
|
||||
|
||||
var padded = null;
|
||||
|
||||
if (n.length >= width) {
|
||||
padded = n;
|
||||
} else {
|
||||
padded = new Array(width - n.length + 1).join(0) + n;
|
||||
}
|
||||
return padded;
|
||||
};
|
||||
|
||||
var hours, minutes, remaining, seconds;
|
||||
remaining = new Date(timeLeft * 1000);
|
||||
hours = remaining.getUTCHours();
|
||||
minutes = remaining.getUTCMinutes();
|
||||
seconds = remaining.getUTCSeconds();
|
||||
|
||||
if (+hours === 0 && +minutes === 0 && +seconds === 0) {
|
||||
return [];
|
||||
} else {
|
||||
return [lpad(hours), lpad(minutes), lpad(seconds)];
|
||||
}
|
||||
};
|
||||
|
||||
Timer.prototype.setFinalValue = function(finalValues, element) {
|
||||
if(finalValues.length === 0){
|
||||
this.clearTimer(element);
|
||||
element.trigger('complete');
|
||||
return false;
|
||||
}
|
||||
|
||||
element.find('.seconds').text(finalValues.pop());
|
||||
element.find('.minutes').text(finalValues.pop() + ':');
|
||||
element.find('.hours').text(finalValues.pop() + ':');
|
||||
};
|
||||
|
||||
|
||||
$.fn.startTimer = function(options) {
|
||||
Timer.start(options, this);
|
||||
return this;
|
||||
};
|
||||
})(jQuery);
|
||||
/*
|
||||
* jQuery-Simple-Timer
|
||||
*
|
||||
* Creates a countdown timer.
|
||||
*
|
||||
* Example:
|
||||
* $('.timer').startTimer();
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
|
||||
var timer;
|
||||
|
||||
var Timer = function(targetElement){
|
||||
this.targetElement = targetElement;
|
||||
return this;
|
||||
};
|
||||
|
||||
Timer.start = function(options, targetElement){
|
||||
timer = new Timer(targetElement);
|
||||
return timer.start(options);
|
||||
};
|
||||
|
||||
Timer.prototype.start = function(options) {
|
||||
var createSubDivs = function(timerBoxElement){
|
||||
var seconds = document.createElement('div');
|
||||
seconds.className = 'seconds';
|
||||
|
||||
var minutes = document.createElement('div');
|
||||
minutes.className = 'minutes';
|
||||
|
||||
var hours = document.createElement('div');
|
||||
hours.className = 'hours';
|
||||
|
||||
var clearDiv = document.createElement('div');
|
||||
clearDiv.className = 'clearDiv';
|
||||
|
||||
return timerBoxElement.
|
||||
append(hours).
|
||||
append(minutes).
|
||||
append(seconds).
|
||||
append(clearDiv);
|
||||
};
|
||||
|
||||
this.targetElement.each(function(_index, timerBox) {
|
||||
var timerBoxElement = $(timerBox);
|
||||
var cssClassSnapshot = timerBoxElement.attr('class');
|
||||
|
||||
timerBoxElement.on('complete', function() {
|
||||
clearInterval(timerBoxElement.intervalId);
|
||||
});
|
||||
|
||||
timerBoxElement.on('complete', function() {
|
||||
timerBoxElement.onComplete(timerBoxElement);
|
||||
});
|
||||
|
||||
timerBoxElement.on('complete', function(){
|
||||
timerBoxElement.addClass('timeout');
|
||||
});
|
||||
|
||||
timerBoxElement.on('complete', function(){
|
||||
if(options && options.loop === true) {
|
||||
timer.resetTimer(timerBoxElement, options, cssClassSnapshot);
|
||||
}
|
||||
});
|
||||
|
||||
createSubDivs(timerBoxElement);
|
||||
return this.startCountdown(timerBoxElement, options);
|
||||
}.bind(this));
|
||||
};
|
||||
|
||||
/**
|
||||
* Resets timer and add css class 'loop' to indicate the timer is in a loop.
|
||||
* $timerBox {jQuery object} - The timer element
|
||||
* options {object} - The options for the timer
|
||||
* css - The original css of the element
|
||||
*/
|
||||
Timer.prototype.resetTimer = function($timerBox, options, css) {
|
||||
var interval = 0;
|
||||
if(options.loopInterval) {
|
||||
interval = parseInt(options.loopInterval, 10) * 1000;
|
||||
}
|
||||
setTimeout(function() {
|
||||
$timerBox.trigger('reset');
|
||||
$timerBox.attr('class', css + ' loop');
|
||||
timer.startCountdown($timerBox, options);
|
||||
}, interval);
|
||||
};
|
||||
|
||||
/*
|
||||
* Function finds out the number of seconds left in the timer of the particular element
|
||||
* element - the element of which the number of seconds left has to be found
|
||||
*/
|
||||
|
||||
Timer.prototype.fetchSecondsLeft = function(element){
|
||||
var secondsLeft = element.data('seconds-left');
|
||||
var minutesLeft = element.data('minutes-left');
|
||||
|
||||
if(minutesLeft === undefined){
|
||||
return parseInt(secondsLeft, 10);
|
||||
} else if(secondsLeft === undefined) {
|
||||
return parseFloat(minutesLeft) * 60;
|
||||
}else{
|
||||
throw 'Missing time data';
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
* Function starts the countdown of each of the element and binds clear when completed
|
||||
* element - The element whose timer is to initiated
|
||||
* options - Options specified in api call
|
||||
*/
|
||||
Timer.prototype.startCountdown = function(element, options) {
|
||||
options = options || {};
|
||||
|
||||
var intervalId = null;
|
||||
var defaultComplete = function(){
|
||||
clearInterval(intervalId);
|
||||
return this.clearTimer(element);
|
||||
}.bind(this);
|
||||
|
||||
element.onComplete = options.onComplete || defaultComplete;
|
||||
|
||||
var secondsLeft = this.fetchSecondsLeft(element);
|
||||
if(secondsLeft==0)
|
||||
{
|
||||
clearInterval(intervalId);
|
||||
return this.clearTimer(element);
|
||||
}
|
||||
var refreshRate = options.refreshRate || 1000;
|
||||
var endTime = secondsLeft + this.currentTime();
|
||||
var timeLeft = endTime - this.currentTime();
|
||||
|
||||
this.setFinalValue(this.formatTimeLeft(timeLeft), element);
|
||||
|
||||
intervalId = setInterval((function() {
|
||||
timeLeft = endTime - this.currentTime();
|
||||
this.setFinalValue(this.formatTimeLeft(timeLeft), element);
|
||||
}.bind(this)), refreshRate);
|
||||
|
||||
element.intervalId = intervalId;
|
||||
};
|
||||
|
||||
Timer.prototype.clearTimer = function(element){
|
||||
element.find('.seconds').text('00');
|
||||
element.find('.minutes').text('00:');
|
||||
element.find('.hours').text('00:');
|
||||
};
|
||||
|
||||
Timer.prototype.currentTime = function() {
|
||||
return Math.round((new Date()).getTime() / 1000);
|
||||
};
|
||||
|
||||
Timer.prototype.formatTimeLeft = function(timeLeft) {
|
||||
var lpad = function(n, width) {
|
||||
width = width || 2;
|
||||
n = n + '';
|
||||
|
||||
var padded = null;
|
||||
|
||||
if (n.length >= width) {
|
||||
padded = n;
|
||||
} else {
|
||||
padded = new Array(width - n.length + 1).join(0) + n;
|
||||
}
|
||||
return padded;
|
||||
};
|
||||
|
||||
var hours, minutes, remaining, seconds;
|
||||
remaining = new Date(timeLeft * 1000);
|
||||
hours = remaining.getUTCHours();
|
||||
minutes = remaining.getUTCMinutes();
|
||||
seconds = remaining.getUTCSeconds();
|
||||
|
||||
if (+hours === 0 && +minutes === 0 && +seconds === 0) {
|
||||
return [];
|
||||
} else {
|
||||
return [lpad(hours), lpad(minutes), lpad(seconds)];
|
||||
}
|
||||
};
|
||||
|
||||
Timer.prototype.setFinalValue = function(finalValues, element) {
|
||||
if(finalValues.length === 0){
|
||||
this.clearTimer(element);
|
||||
element.trigger('complete');
|
||||
return false;
|
||||
}
|
||||
|
||||
element.find('.seconds').text(finalValues.pop());
|
||||
element.find('.minutes').text(finalValues.pop() + ':');
|
||||
element.find('.hours').text(finalValues.pop() + ':');
|
||||
};
|
||||
|
||||
|
||||
$.fn.startTimer = function(options) {
|
||||
Timer.start(options, this);
|
||||
return this;
|
||||
};
|
||||
})(jQuery);
|
||||
|
@ -1,12 +1,12 @@
|
||||
# enabling file access
|
||||
<FilesMatch .*>
|
||||
<IfModule mod_authz_core.c>
|
||||
Require all granted
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_core.c>
|
||||
order allow,deny
|
||||
allow from all
|
||||
</IfModule>
|
||||
</FilesMatch>
|
||||
|
||||
# enabling file access
|
||||
<FilesMatch .*>
|
||||
<IfModule mod_authz_core.c>
|
||||
Require all granted
|
||||
</IfModule>
|
||||
<IfModule !mod_authz_core.c>
|
||||
order allow,deny
|
||||
allow from all
|
||||
</IfModule>
|
||||
</FilesMatch>
|
||||
|
||||
Options -Indexes
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,11 +1,11 @@
|
||||
[{capture append="oxidBlock_content"}]
|
||||
[{* ordering steps *}]
|
||||
<!-- ordering steps -->
|
||||
[{include file="page/checkout/inc/steps.tpl" active=4}]
|
||||
<h1 class="pageHead">[{oxmultilang ident="D3HEIDELPAY_CC_INPUT_TITLENR"}]</h1>
|
||||
<div id="payment">
|
||||
[{include file=$oView->d3GetAfterStepTemplate()}]
|
||||
</div>
|
||||
[{insert name="oxid_tracker" title=$template_title}]
|
||||
[{/capture}]
|
||||
[{include file="layout/page.tpl"}]
|
||||
[{capture append="oxidBlock_content"}]
|
||||
[{* ordering steps *}]
|
||||
<!-- ordering steps -->
|
||||
[{include file="page/checkout/inc/steps.tpl" active=4}]
|
||||
<h1 class="pageHead">[{oxmultilang ident="D3HEIDELPAY_CC_INPUT_TITLENR"}]</h1>
|
||||
<div id="payment">
|
||||
[{include file=$oView->d3GetAfterStepTemplate()}]
|
||||
</div>
|
||||
[{insert name="oxid_tracker" title=$template_title}]
|
||||
[{/capture}]
|
||||
[{include file="layout/page.tpl"}]
|
||||
|
@ -1,10 +1,10 @@
|
||||
[{if $easyCreditInformations}]
|
||||
<tr>
|
||||
<th>[{oxmultilang ident="D3HEIDELPAY_ORDER_EASYCREDIT_ACCRUINGINTEREST"}]</th>
|
||||
<td>[{oxprice price=$easyCreditInformations.criterion_easycredit_accruinginterest currency=$currency}]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>[{oxmultilang ident="D3HEIDELPAY_ORDER_EASYCREDIT_TOTALAMOUNT"}]</th>
|
||||
<td>[{oxprice price=$easyCreditInformations.criterion_easycredit_totalamount currency=$currency}]</td>
|
||||
</tr>
|
||||
[{/if}]
|
||||
[{if $easyCreditInformations}]
|
||||
<tr>
|
||||
<th>[{oxmultilang ident="D3HEIDELPAY_ORDER_EASYCREDIT_ACCRUINGINTEREST"}]</th>
|
||||
<td>[{oxprice price=$easyCreditInformations.criterion_easycredit_accruinginterest currency=$currency}]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>[{oxmultilang ident="D3HEIDELPAY_ORDER_EASYCREDIT_TOTALAMOUNT"}]</th>
|
||||
<td>[{oxprice price=$easyCreditInformations.criterion_easycredit_totalamount currency=$currency}]</td>
|
||||
</tr>
|
||||
[{/if}]
|
||||
|
@ -1,35 +1,35 @@
|
||||
[{assign var='oHeidelPaySettings' value=$oHeidelpayViewConfig->getSettings()}]
|
||||
[{assign var='oHeidelPayment' value=$oHeidelPaySettings->getPayment($paymentmethod)}]
|
||||
[{assign var="aBrands" value=$oHeidelpayViewConfig->getHeidelpayNgwBrands($paymentmethod, $oHeidelPayment, $oxcmp_user)}]
|
||||
[{assign var="sImageUrl" value=$oViewConf->getModuleUrl('d3heidelpay','out/img/')}]
|
||||
|
||||
[{block name="heidelpay_cards"}]
|
||||
<dl>
|
||||
<dt>
|
||||
<input id="payment_[{$sPaymentID}]"
|
||||
type="radio"
|
||||
name="paymentid"
|
||||
value="[{$sPaymentID}]"
|
||||
[{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]checked[{/if}]>
|
||||
<label for="payment_[{$sPaymentID}]"><b>[{$paymentmethod->oxpayments__oxdesc->value}]</b></label>
|
||||
[{foreach from=$aBrands item='sBrandName' key='sBrandIdent'}]
|
||||
[{assign var="sBrandIdent" value=$sBrandIdent|lower}]
|
||||
[{assign var="sFullImageUrl" value=$sImageUrl|cat:'logo_'|cat:$sBrandIdent|cat:'.jpg'}]
|
||||
[{include file="d3_heidelpay_views_tpl_payment_img.tpl" sImageUrl=$sFullImageUrl sBrandIdent=$sBrandIdent}]
|
||||
[{/foreach}]
|
||||
</dt>
|
||||
<dd class="[{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]activePayment[{/if}]">
|
||||
<ul class="form">
|
||||
<li>
|
||||
<div class="status corners error">[{oxmultilang ident="D3PAYMENT_EXT_AFTERSTEP4_INFO_STEP4"}]</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
[{if $paymentmethod->oxpayments__oxlongdesc->value}]
|
||||
<div class="desc">
|
||||
[{$paymentmethod->oxpayments__oxlongdesc->value}]
|
||||
</div>
|
||||
[{/if}]
|
||||
</dd>
|
||||
</dl>
|
||||
[{/block}]
|
||||
[{assign var='oHeidelPaySettings' value=$oHeidelpayViewConfig->getSettings()}]
|
||||
[{assign var='oHeidelPayment' value=$oHeidelPaySettings->getPayment($paymentmethod)}]
|
||||
[{assign var="aBrands" value=$oHeidelpayViewConfig->getHeidelpayNgwBrands($paymentmethod, $oHeidelPayment, $oxcmp_user)}]
|
||||
[{assign var="sImageUrl" value=$oViewConf->getModuleUrl('d3heidelpay','out/img/')}]
|
||||
|
||||
[{block name="heidelpay_cards"}]
|
||||
<dl>
|
||||
<dt>
|
||||
<input id="payment_[{$sPaymentID}]"
|
||||
type="radio"
|
||||
name="paymentid"
|
||||
value="[{$sPaymentID}]"
|
||||
[{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]checked[{/if}]>
|
||||
<label for="payment_[{$sPaymentID}]"><b>[{$paymentmethod->oxpayments__oxdesc->value}]</b></label>
|
||||
[{foreach from=$aBrands item='sBrandName' key='sBrandIdent'}]
|
||||
[{assign var="sBrandIdent" value=$sBrandIdent|lower}]
|
||||
[{assign var="sFullImageUrl" value=$sImageUrl|cat:'logo_'|cat:$sBrandIdent|cat:'.jpg'}]
|
||||
[{include file="d3_heidelpay_views_tpl_payment_img.tpl" sImageUrl=$sFullImageUrl sBrandIdent=$sBrandIdent}]
|
||||
[{/foreach}]
|
||||
</dt>
|
||||
<dd class="[{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]activePayment[{/if}]">
|
||||
<ul class="form">
|
||||
<li>
|
||||
<div class="status corners error">[{oxmultilang ident="D3PAYMENT_EXT_AFTERSTEP4_INFO_STEP4"}]</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
[{if $paymentmethod->oxpayments__oxlongdesc->value}]
|
||||
<div class="desc">
|
||||
[{$paymentmethod->oxpayments__oxlongdesc->value}]
|
||||
</div>
|
||||
[{/if}]
|
||||
</dd>
|
||||
</dl>
|
||||
[{/block}]
|
||||
|
@ -1,27 +1,27 @@
|
||||
[{assign var="sImageUrl" value=$oViewConf->getModuleUrl('d3heidelpay','out/img/')}]
|
||||
[{assign var='oHeidelPaySettings' value=$oHeidelpayViewConfig->getSettings()}]
|
||||
[{assign var='oHeidelPayment' value=$oHeidelPaySettings->getPayment($paymentmethod)}]
|
||||
[{assign var="aBrands" value=$oHeidelpayViewConfig->getHeidelpayNgwBrands($paymentmethod, $oHeidelPayment, $oxcmp_user)}]
|
||||
[{assign var="sBrandIdent" value=$aBrands.MASTERPASS|lower}]
|
||||
[{assign var="sFullImageUrl" value=$sImageUrl|cat:'logo_'|cat:$sBrandIdent|cat:'.jpg'}]
|
||||
|
||||
[{block name="heidelpay_masterpass"}]
|
||||
<dl>
|
||||
<dt>
|
||||
<input id="payment_[{$sPaymentID}]"
|
||||
type="radio"
|
||||
name="paymentid"
|
||||
value="[{$sPaymentID}]"
|
||||
[{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]checked[{/if}]>
|
||||
<label for="payment_[{$sPaymentID}]"><b>[{$paymentmethod->oxpayments__oxdesc->value}]</b></label>
|
||||
[{include file="d3_heidelpay_views_tpl_payment_img.tpl" sImageUrl=$sFullImageUrl sBrandIdent=$sBrandIdent}]
|
||||
</dt>
|
||||
<dd class="[{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]activePayment[{/if}]">
|
||||
[{if $paymentmethod->oxpayments__oxlongdesc->value}]
|
||||
<div class="desc">
|
||||
[{$paymentmethod->oxpayments__oxlongdesc->value}]
|
||||
</div>
|
||||
[{/if}]
|
||||
</dd>
|
||||
</dl>
|
||||
[{/block}]
|
||||
[{assign var="sImageUrl" value=$oViewConf->getModuleUrl('d3heidelpay','out/img/')}]
|
||||
[{assign var='oHeidelPaySettings' value=$oHeidelpayViewConfig->getSettings()}]
|
||||
[{assign var='oHeidelPayment' value=$oHeidelPaySettings->getPayment($paymentmethod)}]
|
||||
[{assign var="aBrands" value=$oHeidelpayViewConfig->getHeidelpayNgwBrands($paymentmethod, $oHeidelPayment, $oxcmp_user)}]
|
||||
[{assign var="sBrandIdent" value=$aBrands.MASTERPASS|lower}]
|
||||
[{assign var="sFullImageUrl" value=$sImageUrl|cat:'logo_'|cat:$sBrandIdent|cat:'.jpg'}]
|
||||
|
||||
[{block name="heidelpay_masterpass"}]
|
||||
<dl>
|
||||
<dt>
|
||||
<input id="payment_[{$sPaymentID}]"
|
||||
type="radio"
|
||||
name="paymentid"
|
||||
value="[{$sPaymentID}]"
|
||||
[{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]checked[{/if}]>
|
||||
<label for="payment_[{$sPaymentID}]"><b>[{$paymentmethod->oxpayments__oxdesc->value}]</b></label>
|
||||
[{include file="d3_heidelpay_views_tpl_payment_img.tpl" sImageUrl=$sFullImageUrl sBrandIdent=$sBrandIdent}]
|
||||
</dt>
|
||||
<dd class="[{if $oView->getCheckedPaymentId() == $paymentmethod->oxpayments__oxid->value}]activePayment[{/if}]">
|
||||
[{if $paymentmethod->oxpayments__oxlongdesc->value}]
|
||||
<div class="desc">
|
||||
[{$paymentmethod->oxpayments__oxlongdesc->value}]
|
||||
</div>
|
||||
[{/if}]
|
||||
</dd>
|
||||
</dl>
|
||||
[{/block}]
|
||||
|
@ -1,11 +1,11 @@
|
||||
[{$smarty.block.parent}]
|
||||
|
||||
[{d3modcfgcheck modid="d3heidelpay"}]
|
||||
[{/d3modcfgcheck}]
|
||||
|
||||
[{if $oViewConf->getActiveClassName() == 'payment' || $oViewConf->getActiveClassName() == 'order'}]
|
||||
[{if $mod_d3heidelpay}]
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('d3heidelpay', 'out/src/css/d3heidelpay.css')}]
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
|
||||
[{$smarty.block.parent}]
|
||||
|
||||
[{d3modcfgcheck modid="d3heidelpay"}]
|
||||
[{/d3modcfgcheck}]
|
||||
|
||||
[{if $oViewConf->getActiveClassName() == 'payment' || $oViewConf->getActiveClassName() == 'order'}]
|
||||
[{if $mod_d3heidelpay}]
|
||||
[{oxstyle include=$oViewConf->getModuleUrl('d3heidelpay', 'out/src/css/d3heidelpay.css')}]
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
[{$smarty.block.parent}]
|
||||
[{d3modcfgcheck modid="d3heidelpay"}][{/d3modcfgcheck}]
|
||||
|
||||
[{if $mod_d3heidelpay && $oViewConf->getActiveClassname() === 'order'}]
|
||||
[{assign var="easyCreditInformations" value=$oView->getHeidelpayEasyCreditInformations()}]
|
||||
[{if isset($easyCreditInformations)}]
|
||||
[{include file=$oView->d3GetTemplateName('order_easycreditcriterions') easyCreditInformations=$easyCreditInformations}]
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
[{$smarty.block.parent}]
|
||||
[{d3modcfgcheck modid="d3heidelpay"}][{/d3modcfgcheck}]
|
||||
|
||||
[{if $mod_d3heidelpay && $oViewConf->getActiveClassname() === 'order'}]
|
||||
[{assign var="easyCreditInformations" value=$oView->getHeidelpayEasyCreditInformations()}]
|
||||
[{if isset($easyCreditInformations)}]
|
||||
[{include file=$oView->d3GetTemplateName('order_easycreditcriterions') easyCreditInformations=$easyCreditInformations}]
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
|
@ -1,8 +1,8 @@
|
||||
[{d3modcfgcheck modid="d3heidelpay"}]
|
||||
[{/d3modcfgcheck}]
|
||||
|
||||
[{if $mod_d3heidelpay && $d3heidelpayErrorCodes && $oHeidelpayViewConfig->getPaymentError() == -99}]
|
||||
[{include file=$oView->d3GetMessageTemplateName()}]
|
||||
[{else}]
|
||||
[{$smarty.block.parent}]
|
||||
[{/if}]
|
||||
[{d3modcfgcheck modid="d3heidelpay"}]
|
||||
[{/d3modcfgcheck}]
|
||||
|
||||
[{if $mod_d3heidelpay && $d3heidelpayErrorCodes && $oHeidelpayViewConfig->getPaymentError() == -99}]
|
||||
[{include file=$oView->d3GetMessageTemplateName()}]
|
||||
[{else}]
|
||||
[{$smarty.block.parent}]
|
||||
[{/if}]
|
||||
|
@ -1,17 +1,17 @@
|
||||
[{$smarty.block.parent}]
|
||||
|
||||
[{d3modcfgcheck modid="d3heidelpay"}][{/d3modcfgcheck}]
|
||||
|
||||
[{if $mod_d3heidelpay }]
|
||||
[{assign var="oPrePaymentData" value=$order->getHeidelpayBankTransferData()}]
|
||||
[{assign var="easyCreditInformations" value=$order->getHeidelpayEasyCreditInformations()}]
|
||||
|
||||
[{if $oPrePaymentData}]
|
||||
[{include file=$oView->d3GetBankTransferDataTemplateName()}]
|
||||
[{/if}]
|
||||
|
||||
[{if isset($easyCreditInformations)}]
|
||||
[{assign var="currency" value=$oView->getActCurrency()}]
|
||||
[{include file=$oView->d3GetTemplateName('thankyou_easycreditcriterions') easyCreditInformations=$easyCreditInformations}]
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
[{$smarty.block.parent}]
|
||||
|
||||
[{d3modcfgcheck modid="d3heidelpay"}][{/d3modcfgcheck}]
|
||||
|
||||
[{if $mod_d3heidelpay }]
|
||||
[{assign var="oPrePaymentData" value=$order->getHeidelpayBankTransferData()}]
|
||||
[{assign var="easyCreditInformations" value=$order->getHeidelpayEasyCreditInformations()}]
|
||||
|
||||
[{if $oPrePaymentData}]
|
||||
[{include file=$oView->d3GetBankTransferDataTemplateName()}]
|
||||
[{/if}]
|
||||
|
||||
[{if isset($easyCreditInformations)}]
|
||||
[{assign var="currency" value=$oView->getActCurrency()}]
|
||||
[{include file=$oView->d3GetTemplateName('thankyou_easycreditcriterions') easyCreditInformations=$easyCreditInformations}]
|
||||
[{/if}]
|
||||
[{/if}]
|
||||
|
@ -1,7 +1,7 @@
|
||||
[{d3modcfgcheck modid="d3heidelpay"}][{/d3modcfgcheck}]
|
||||
|
||||
[{if $mod_d3heidelpay && $oView->d3IsHeidelpayPaymentMethode($paymentmethod)}]
|
||||
[{include file=$oView->d3GetPaymentFormTemplateName($paymentmethod)}]
|
||||
[{else}]
|
||||
[{$smarty.block.parent}]
|
||||
[{/if}]
|
||||
[{d3modcfgcheck modid="d3heidelpay"}][{/d3modcfgcheck}]
|
||||
|
||||
[{if $mod_d3heidelpay && $oView->d3IsHeidelpayPaymentMethode($paymentmethod)}]
|
||||
[{include file=$oView->d3GetPaymentFormTemplateName($paymentmethod)}]
|
||||
[{else}]
|
||||
[{$smarty.block.parent}]
|
||||
[{/if}]
|
||||
|
@ -1,7 +1,7 @@
|
||||
[{$smarty.block.parent}]
|
||||
[{d3modcfgcheck modid="d3heidelpay"}]
|
||||
[{/d3modcfgcheck}]
|
||||
|
||||
[{if $mod_d3heidelpay}]
|
||||
[{include file=$oView->d3GetTemplateName('shippingandpayment')}]
|
||||
[{/if}]
|
||||
[{$smarty.block.parent}]
|
||||
[{d3modcfgcheck modid="d3heidelpay"}]
|
||||
[{/d3modcfgcheck}]
|
||||
|
||||
[{if $mod_d3heidelpay}]
|
||||
[{include file=$oView->d3GetTemplateName('shippingandpayment')}]
|
||||
[{/if}]
|
||||
|
@ -1,12 +1,12 @@
|
||||
[{capture append="oxidBlock_content"}]
|
||||
[{* ordering steps *}]
|
||||
[{include file="page/checkout/inc/steps.tpl" active=4}]
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading text-center">[{oxmultilang ident="D3HEIDELPAY_CC_INPUT_TITLENR"}]</div>
|
||||
<div id="payment" class="panel-body">
|
||||
[{include file=$oView->d3GetAfterStepTemplate()}]
|
||||
</div>
|
||||
</div>
|
||||
[{insert name="oxid_tracker" title=$template_title}]
|
||||
[{/capture}]
|
||||
[{include file="layout/page.tpl"}]
|
||||
[{capture append="oxidBlock_content"}]
|
||||
[{* ordering steps *}]
|
||||
[{include file="page/checkout/inc/steps.tpl" active=4}]
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading text-center">[{oxmultilang ident="D3HEIDELPAY_CC_INPUT_TITLENR"}]</div>
|
||||
<div id="payment" class="panel-body">
|
||||
[{include file=$oView->d3GetAfterStepTemplate()}]
|
||||
</div>
|
||||
</div>
|
||||
[{insert name="oxid_tracker" title=$template_title}]
|
||||
[{/capture}]
|
||||
[{include file="layout/page.tpl"}]
|
||||
|
@ -1,10 +1,10 @@
|
||||
[{if $easyCreditInformations}]
|
||||
<tr>
|
||||
<th>[{oxmultilang ident="D3HEIDELPAY_ORDER_EASYCREDIT_ACCRUINGINTEREST"}]</th>
|
||||
<td>[{oxprice price=$easyCreditInformations.criterion_easycredit_accruinginterest currency=$currency}]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>[{oxmultilang ident="D3HEIDELPAY_ORDER_EASYCREDIT_TOTALAMOUNT"}]</th>
|
||||
<td>[{oxprice price=$easyCreditInformations.criterion_easycredit_totalamount currency=$currency}]</td>
|
||||
</tr>
|
||||
[{/if}]
|
||||
[{if $easyCreditInformations}]
|
||||
<tr>
|
||||
<th>[{oxmultilang ident="D3HEIDELPAY_ORDER_EASYCREDIT_ACCRUINGINTEREST"}]</th>
|
||||
<td>[{oxprice price=$easyCreditInformations.criterion_easycredit_accruinginterest currency=$currency}]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>[{oxmultilang ident="D3HEIDELPAY_ORDER_EASYCREDIT_TOTALAMOUNT"}]</th>
|
||||
<td>[{oxprice price=$easyCreditInformations.criterion_easycredit_totalamount currency=$currency}]</td>
|
||||
</tr>
|
||||
[{/if}]
|
||||
|
@ -1,55 +1,55 @@
|
||||
[{assign var="payment" value=$oView->getPayment()}]
|
||||
[{assign var='oHeidelPaySettings' value=$oHeidelpayViewConfig->getSettings()}]
|
||||
[{assign var='oHeidelPayment' value=$oHeidelPaySettings->getPayment($payment)}]
|
||||
[{assign var="sImageUrl" value=$oViewConf->getModuleUrl('d3heidelpay','out/img/')}]
|
||||
[{assign var="storeDatas" value=$oView->getUserHPStoreData($payment->getId())}]
|
||||
[{assign var="d3HeidelpayPostparameter" value=$oView->d3GetHeidelpayPostparameter()}]
|
||||
<form action="[{$oViewConf->getSslSelfLink()|oxaddparams:"&heidelpaytemplate=d3_heidelpay_views_flow_tpl_cc_input.tpl"}]"
|
||||
method="post">
|
||||
[{foreach from=$d3HeidelpayPostparameter key="inputName" item="inputValue"}]
|
||||
<input type="hidden" name="[{$inputName}]" value="[{$inputValue}]">
|
||||
[{/foreach}]
|
||||
[{$oViewConf->getHiddenSid()}]
|
||||
[{$oViewConf->getNavFormParams()}]
|
||||
<input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
|
||||
<input type="hidden" name="fnc" value="d3PayWithStoreData">
|
||||
<input type="hidden" name="challenge" value="[{$challenge}]">
|
||||
<input type="hidden" name="sDeliveryAddressMD5" value="[{$oView->getDeliveryAddressMD5()}]">
|
||||
<div class="list-group">
|
||||
[{foreach from=$storeDatas item="storeData" key="storeDataId" name="storedDataIds"}]
|
||||
<div class="radio list-group-item">
|
||||
<label style="width:100%">
|
||||
<input type="radio" name="usehpstore"
|
||||
value="[{$storeDataId}]"[{if $smarty.foreach.storedDataIds.first}] checked[{/if}]>
|
||||
[{assign var="sBrandIdent" value=$storeData->aDynValue.kktype}]
|
||||
[{include file="d3_heidelpay_views_tpl_payment_img.tpl" sImageUrl=$sImageUrl|cat:"logo_"|cat:$sBrandIdent|lower|cat:".jpg" sBrandIdent=$sBrandIdent}]
|
||||
[{$storeData->aDynValue.kknumber}]
|
||||
[{oxmultilang ident="D3HEIDELPAY_CC_INPUT_EXPIRES"}] [{$storeData->aDynValue.kkmonth}]
|
||||
/[{$storeData->aDynValue.kkyear}]
|
||||
[{oxmultilang ident="D3HEIDELPAY_CC_INPUT_OWNER"}] [{$storeData->aDynValue.kkname}]
|
||||
</label>
|
||||
</div>
|
||||
[{/foreach}]
|
||||
|
||||
<div class="radio list-group-item">
|
||||
<label style="width:100%">
|
||||
<input type="radio" name="usehpstore" value="0">
|
||||
[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_NEW_CARD"}]
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="alert alert-info">
|
||||
[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_SECURITYINFO"}]
|
||||
</div>
|
||||
|
||||
<div class="well well-sm">
|
||||
<a href="[{oxgetseourl ident=$oViewConf->getSelfLink()|cat:"cl=order"}]"
|
||||
class="btn btn-default pull-left prevStep submitButton largeButton">[{oxmultilang ident="D3HEIDELPAY_ORDER_PAGE_BACKSTEPT"}]</a>
|
||||
<button type="submit"
|
||||
name="userform"
|
||||
class="btn btn-primary pull-right submitButton nextStep largeButton"
|
||||
id="paymentNextStepBottom">[{oxmultilang ident="D3HEIDELPAY_ORDER_PAGE_NEXTSTEP"}] <i
|
||||
class="fa fa-caret-right"></i></button>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</form>
|
||||
[{assign var="payment" value=$oView->getPayment()}]
|
||||
[{assign var='oHeidelPaySettings' value=$oHeidelpayViewConfig->getSettings()}]
|
||||
[{assign var='oHeidelPayment' value=$oHeidelPaySettings->getPayment($payment)}]
|
||||
[{assign var="sImageUrl" value=$oViewConf->getModuleUrl('d3heidelpay','out/img/')}]
|
||||
[{assign var="storeDatas" value=$oView->getUserHPStoreData($payment->getId())}]
|
||||
[{assign var="d3HeidelpayPostparameter" value=$oView->d3GetHeidelpayPostparameter()}]
|
||||
<form action="[{$oViewConf->getSslSelfLink()|oxaddparams:"&heidelpaytemplate=d3_heidelpay_views_flow_tpl_cc_input.tpl"}]"
|
||||
method="post">
|
||||
[{foreach from=$d3HeidelpayPostparameter key="inputName" item="inputValue"}]
|
||||
<input type="hidden" name="[{$inputName}]" value="[{$inputValue}]">
|
||||
[{/foreach}]
|
||||
[{$oViewConf->getHiddenSid()}]
|
||||
[{$oViewConf->getNavFormParams()}]
|
||||
<input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
|
||||
<input type="hidden" name="fnc" value="d3PayWithStoreData">
|
||||
<input type="hidden" name="challenge" value="[{$challenge}]">
|
||||
<input type="hidden" name="sDeliveryAddressMD5" value="[{$oView->getDeliveryAddressMD5()}]">
|
||||
<div class="list-group">
|
||||
[{foreach from=$storeDatas item="storeData" key="storeDataId" name="storedDataIds"}]
|
||||
<div class="radio list-group-item">
|
||||
<label style="width:100%">
|
||||
<input type="radio" name="usehpstore"
|
||||
value="[{$storeDataId}]"[{if $smarty.foreach.storedDataIds.first}] checked[{/if}]>
|
||||
[{assign var="sBrandIdent" value=$storeData->aDynValue.kktype}]
|
||||
[{include file="d3_heidelpay_views_tpl_payment_img.tpl" sImageUrl=$sImageUrl|cat:"logo_"|cat:$sBrandIdent|lower|cat:".jpg" sBrandIdent=$sBrandIdent}]
|
||||
[{$storeData->aDynValue.kknumber}]
|
||||
[{oxmultilang ident="D3HEIDELPAY_CC_INPUT_EXPIRES"}] [{$storeData->aDynValue.kkmonth}]
|
||||
/[{$storeData->aDynValue.kkyear}]
|
||||
[{oxmultilang ident="D3HEIDELPAY_CC_INPUT_OWNER"}] [{$storeData->aDynValue.kkname}]
|
||||
</label>
|
||||
</div>
|
||||
[{/foreach}]
|
||||
|
||||
<div class="radio list-group-item">
|
||||
<label style="width:100%">
|
||||
<input type="radio" name="usehpstore" value="0">
|
||||
[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_NEW_CARD"}]
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="alert alert-info">
|
||||
[{oxmultilang ident="D3PAYMENT_EXT_STOREDUID_CC_SECURITYINFO"}]
|
||||
</div>
|
||||
|
||||
<div class="well well-sm">
|
||||
<a href="[{oxgetseourl ident=$oViewConf->getSelfLink()|cat:"cl=order"}]"
|
||||
class="btn btn-default pull-left prevStep submitButton largeButton">[{oxmultilang ident="D3HEIDELPAY_ORDER_PAGE_BACKSTEPT"}]</a>
|
||||
<button type="submit"
|
||||
name="userform"
|
||||
class="btn btn-primary pull-right submitButton nextStep largeButton"
|
||||
id="paymentNextStepBottom">[{oxmultilang ident="D3HEIDELPAY_ORDER_PAGE_NEXTSTEP"}] <i
|
||||
class="fa fa-caret-right"></i></button>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</form>
|
||||
|
@ -1,10 +1,10 @@
|
||||
[{assign var="shop" value=$oEmailView->getShop()}]
|
||||
[{assign var="oViewConf" value=$oEmailView->getViewConfig()}]
|
||||
[{assign var="oConf" value=$oViewConf->getConfig()}]
|
||||
[{assign var="currency" value=$oEmailView->getCurrency()}]
|
||||
[{assign var="user" value=$oEmailView->getUser()}]
|
||||
|
||||
[{oxcontent ident="d3_hp_vorkassemail_cust_subject" assign="title"}]
|
||||
[{include file="email/html/header.tpl" title=$title}]
|
||||
[{oxcontent ident="d3_hp_vorkassemail_cust_text"}]
|
||||
[{include file="email/html/footer.tpl"}]
|
||||
[{assign var="shop" value=$oEmailView->getShop()}]
|
||||
[{assign var="oViewConf" value=$oEmailView->getViewConfig()}]
|
||||
[{assign var="oConf" value=$oViewConf->getConfig()}]
|
||||
[{assign var="currency" value=$oEmailView->getCurrency()}]
|
||||
[{assign var="user" value=$oEmailView->getUser()}]
|
||||
|
||||
[{oxcontent ident="d3_hp_vorkassemail_cust_subject" assign="title"}]
|
||||
[{include file="email/html/header.tpl" title=$title}]
|
||||
[{oxcontent ident="d3_hp_vorkassemail_cust_text"}]
|
||||
[{include file="email/html/footer.tpl"}]
|
||||
|
@ -1,10 +1,10 @@
|
||||
[{assign var="shop" value=$oEmailView->getShop()}]
|
||||
[{assign var="oViewConf" value=$oEmailView->getViewConfig()}]
|
||||
[{assign var="oConf" value=$oViewConf->getConfig()}]
|
||||
[{assign var="currency" value=$oEmailView->getCurrency()}]
|
||||
[{assign var="user" value=$oEmailView->getUser()}]
|
||||
|
||||
[{oxcontent ident="d3_hp_vorkassemail_owner_subject" assign="title"}]
|
||||
[{include file="email/html/header.tpl" title=$title}]
|
||||
[{oxcontent ident="d3_hp_vorkassemail_owner_text"}]
|
||||
[{include file="email/html/footer.tpl"}]
|
||||
[{assign var="shop" value=$oEmailView->getShop()}]
|
||||
[{assign var="oViewConf" value=$oEmailView->getViewConfig()}]
|
||||
[{assign var="oConf" value=$oViewConf->getConfig()}]
|
||||
[{assign var="currency" value=$oEmailView->getCurrency()}]
|
||||
[{assign var="user" value=$oEmailView->getUser()}]
|
||||
|
||||
[{oxcontent ident="d3_hp_vorkassemail_owner_subject" assign="title"}]
|
||||
[{include file="email/html/header.tpl" title=$title}]
|
||||
[{oxcontent ident="d3_hp_vorkassemail_owner_text"}]
|
||||
[{include file="email/html/footer.tpl"}]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[{oxcontent ident="d3_hp_vorkassemail_cust_plain"}]
|
||||
|
||||
|
||||
[{oxcontent ident="oxemailfooterplain"}]
|
||||
[{oxcontent ident="d3_hp_vorkassemail_cust_plain"}]
|
||||
|
||||
|
||||
[{oxcontent ident="oxemailfooterplain"}]
|
||||
|
@ -1,4 +1,4 @@
|
||||
[{oxcontent ident="d3_hp_vorkassemail_owner_plain"}]
|
||||
|
||||
|
||||
[{oxcontent ident="oxemailfooterplain"}]
|
||||
[{oxcontent ident="d3_hp_vorkassemail_owner_plain"}]
|
||||
|
||||
|
||||
[{oxcontent ident="oxemailfooterplain"}]
|
||||
|
@ -1,18 +1,18 @@
|
||||
<!DOCTYPE HTML>
|
||||
[{assign var="sLanguage" value=$oView->getActiveLangAbbr()}]
|
||||
<html [{if $sLanguage}]lang="[{$sLanguage}]"[{/if}]>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=[{$oView->getCharSet()}]">
|
||||
</head>
|
||||
<body>
|
||||
<form action="[{$sRedirectURL}]" method="post" name="frm">
|
||||
[{foreach from=$aRedirectParameter item="sParameterValue" key="sParameterName"}]
|
||||
<input type="hidden" name="[{$sParameterName}]" value="[{$sParameterValue|htmlentities}]">
|
||||
[{/foreach}]
|
||||
|
||||
<noscript><input type="submit" value="[{oxmultilang ident="D3_Heidelpay_REDIRECT_NOSCRIPT"}]"/></noscript>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
document.frm.submit();
|
||||
</script>
|
||||
</body>
|
||||
<!DOCTYPE HTML>
|
||||
[{assign var="sLanguage" value=$oView->getActiveLangAbbr()}]
|
||||
<html [{if $sLanguage}]lang="[{$sLanguage}]"[{/if}]>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=[{$oView->getCharSet()}]">
|
||||
</head>
|
||||
<body>
|
||||
<form action="[{$sRedirectURL}]" method="post" name="frm">
|
||||
[{foreach from=$aRedirectParameter item="sParameterValue" key="sParameterName"}]
|
||||
<input type="hidden" name="[{$sParameterName}]" value="[{$sParameterValue|htmlentities}]">
|
||||
[{/foreach}]
|
||||
|
||||
<noscript><input type="submit" value="[{oxmultilang ident="D3_Heidelpay_REDIRECT_NOSCRIPT"}]"/></noscript>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
document.frm.submit();
|
||||
</script>
|
||||
</body>
|
||||
|
Loading…
Reference in New Issue
Block a user