first commit
This commit is contained in:
28
modules/payu/views/templates/hook/cart-detailed-totals.tpl
Normal file
28
modules/payu/views/templates/hook/cart-detailed-totals.tpl
Normal file
@@ -0,0 +1,28 @@
|
||||
{*
|
||||
* PayU
|
||||
*
|
||||
* @author PayU
|
||||
* @copyright Copyright (c) 2018 PayU
|
||||
* @license http://opensource.org/licenses/LGPL-3.0 Open Software License (LGPL 3.0)
|
||||
*
|
||||
* http://www.payu.com
|
||||
*}
|
||||
<span style="display: block; margin-top: 10px;">
|
||||
<span id="payu-installment-cart-summary"></span>
|
||||
</span>
|
||||
<script type="text/javascript" class="payu-script-tag">
|
||||
document.addEventListener("DOMContentLoaded", function (event) {
|
||||
openpayu.options.creditAmount ={$cart_total_amount|floatval};
|
||||
openpayu.options.showLongDescription = true;
|
||||
openpayu.options.lang = 'pl';
|
||||
OpenPayU.Installments.miniInstallment('#payu-installment-cart-summary');
|
||||
});
|
||||
if (document.getElementById("payu-installment-cart-summary").childNodes.length == 0 &&
|
||||
typeof openpayu !== 'undefined' &&
|
||||
openpayu != null) {
|
||||
openpayu.options.creditAmount ={$cart_total_amount|floatval};
|
||||
openpayu.options.showLongDescription = true;
|
||||
openpayu.options.lang = 'pl';
|
||||
OpenPayU.Installments.miniInstallment('#payu-installment-cart-summary');
|
||||
}
|
||||
</script>
|
||||
23
modules/payu/views/templates/hook/cart-summary.tpl
Normal file
23
modules/payu/views/templates/hook/cart-summary.tpl
Normal file
@@ -0,0 +1,23 @@
|
||||
{*
|
||||
* PayU
|
||||
*
|
||||
* @author PayU
|
||||
* @copyright Copyright (c) 2018 PayU
|
||||
* @license http://opensource.org/licenses/LGPL-3.0 Open Software License (LGPL 3.0)
|
||||
*
|
||||
* http://www.payu.com
|
||||
*}
|
||||
<div class="payu-installment-panel">
|
||||
<span id="payu-installment-cart-total"></span>
|
||||
<script type="text/javascript" class="payu-script-tag">
|
||||
document.addEventListener("DOMContentLoaded", function (event) {
|
||||
openpayu.options.creditAmount ={$cart_total_amount|floatval};
|
||||
openpayu.options.showLongDescription = true;
|
||||
openpayu.options.lang = 'pl';
|
||||
OpenPayU.Installments.miniInstallment('#payu-installment-cart-total');
|
||||
});
|
||||
|
||||
</script>
|
||||
</div>
|
||||
<hr class="separator payu-separator-reset">
|
||||
<p></p>
|
||||
22
modules/payu/views/templates/hook/checkout_installment.tpl
Normal file
22
modules/payu/views/templates/hook/checkout_installment.tpl
Normal file
@@ -0,0 +1,22 @@
|
||||
<div class="payu-marker-class payu-method-description payu-checkout-installment">
|
||||
<img style="width: 121px; margin-top:-20px;" src="{$payu_installment_img}" />
|
||||
<p>
|
||||
<span id='payu-installments-mini-cart'></span>
|
||||
<script type='text/javascript' class="payu-script-tag" >
|
||||
document.addEventListener("DOMContentLoaded", function(event) {
|
||||
openpayu.options.creditAmount ={$total_price};
|
||||
openpayu.options.showLongDescription = true;
|
||||
openpayu.options.lang = 'pl';
|
||||
OpenPayU.Installments.miniInstallment('#payu-installments-mini-cart');
|
||||
});
|
||||
</script>
|
||||
</p>
|
||||
<p>
|
||||
{l s='Order will be done after positive decision' mod='payu'}
|
||||
</p>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
(function () {
|
||||
window.payuPaymentLoaded = true;
|
||||
})();
|
||||
</script>
|
||||
22
modules/payu/views/templates/hook/index.php
Normal file
22
modules/payu/views/templates/hook/index.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* PayU
|
||||
*
|
||||
* @author PayU
|
||||
* @copyright Copyright (c) 2014 PayU
|
||||
* @license http://opensource.org/licenses/LGPL-3.0 Open Software License (LGPL 3.0)
|
||||
*
|
||||
* http://www.payu.com
|
||||
* http://openpayu.com
|
||||
* http://twitter.com/openpayu
|
||||
*/
|
||||
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../../../');
|
||||
exit;
|
||||
80
modules/payu/views/templates/hook/payment16.tpl
Normal file
80
modules/payu/views/templates/hook/payment16.tpl
Normal file
@@ -0,0 +1,80 @@
|
||||
{*
|
||||
* PayU
|
||||
*
|
||||
* @author PayU
|
||||
* @copyright Copyright (c) 2016 PayU
|
||||
* @license http://opensource.org/licenses/LGPL-3.0 Open Software License (LGPL 3.0)
|
||||
*
|
||||
* http://www.payu.com
|
||||
*}
|
||||
<fieldset class="payu-payment-fieldset-1-6">
|
||||
<legend class="payu-payment-legend-1-6">
|
||||
<span class='logo' />
|
||||
</legend>
|
||||
{if $showCardPayment == true}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<p class="payment_module">
|
||||
<a class="payu payu_card" href="{$cardActionUrl|escape:'htmlall':'UTF-8'}"
|
||||
title="{l s='Pay by card' mod='payu'}">
|
||||
{l s='Pay by card' mod='payu'}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if $payu_later_twisto_available == true}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="payu-payment-credit-later-twisto-tile" onclick="location.href='{$creditPayLaterTwistoActionUrl|escape:'htmlall':'UTF-8'}'"
|
||||
title="{l s='Pay later with Twisto' mod='payu'}">
|
||||
{l s='Pay later with Twisto' mod='payu'}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<p class="payment_module payment_payu">
|
||||
{if $showCardPayment == true}
|
||||
<a class="payu" href="{$actionUrl|escape:'htmlall':'UTF-8'}"
|
||||
title="{l s='Pay by online transfer' mod='payu'}">
|
||||
{l s='Pay by online transfer' mod='payu'}
|
||||
</a>
|
||||
{else}
|
||||
<a class="payu" href="{$actionUrl|escape:'htmlall':'UTF-8'}"
|
||||
title="{l s='Pay by online transfer or card' mod='payu'}">
|
||||
{l s='Pay by online transfer or card' mod='payu'}
|
||||
</a>
|
||||
{/if}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{if $credit_available == true}
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<div class="payu-payment-credit-installment-tile" onclick="location.href='{$creditActionUrl|escape:'htmlall':'UTF-8'}'"
|
||||
title="{l s='Pay online in installments' mod='payu'}">
|
||||
{l s='Pay online in installments' mod='payu'}
|
||||
<span id="payu-installment-cart-summary" class="payu-installment-cart-summary"></span>
|
||||
<script type="text/javascript" class="payu-script-tag" >
|
||||
document.addEventListener("DOMContentLoaded", function (event) {
|
||||
openpayu.options.creditAmount ={$cart_total_amount|floatval};
|
||||
openpayu.options.showLongDescription = true;
|
||||
openpayu.options.lang = 'pl';
|
||||
OpenPayU.Installments.miniInstallment('#payu-installment-cart-summary');
|
||||
});
|
||||
if (document.getElementById("payu-installment-cart-summary").childNodes.length == 0 &&
|
||||
typeof openpayu !== 'undefined' &&
|
||||
openpayu != null) {
|
||||
openpayu.options.creditAmount ={$cart_total_amount|floatval};
|
||||
openpayu.options.showLongDescription = true;
|
||||
openpayu.options.lang = 'pl';
|
||||
OpenPayU.Installments.miniInstallment('#payu-installment-cart-summary');
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</fieldset>
|
||||
30
modules/payu/views/templates/hook/product.tpl
Normal file
30
modules/payu/views/templates/hook/product.tpl
Normal file
@@ -0,0 +1,30 @@
|
||||
{*
|
||||
* PayU
|
||||
*
|
||||
* @author PayU
|
||||
* @copyright Copyright (c) 2018 PayU
|
||||
* @license http://opensource.org/licenses/LGPL-3.0 Open Software License (LGPL 3.0)
|
||||
*
|
||||
* http://www.payu.com
|
||||
*}
|
||||
<span class="payu-installment-price-listing">
|
||||
<span style="display: block;" class="payu-installment-mini-{$product_id|md5}"></span>
|
||||
</span>
|
||||
<script type="text/javascript" class="payu-script-tag">
|
||||
document.addEventListener("DOMContentLoaded", function (event) {
|
||||
$(".products").find(".payu-installment-price-listing").parent().css("margin-top", "-7px");
|
||||
$(".products").find(".payu-installment-price-listing").parent().prev().css("margin-top", "7px");
|
||||
$(".products").find(".payu-installment-price-listing > span").css("margin-top", "-2px");
|
||||
|
||||
openpayu.options.creditAmount ={$product_price|floatval};
|
||||
openpayu.options.showLongDescription = true;
|
||||
openpayu.options.lang = 'pl';
|
||||
OpenPayU.Installments.miniInstallment('.payu-installment-mini-{$product_id|md5}');
|
||||
});
|
||||
if (typeof openpayu !== 'undefined') {
|
||||
openpayu.options.creditAmount ={$product_price|floatval};
|
||||
openpayu.options.showLongDescription = true;
|
||||
openpayu.options.lang = 'pl';
|
||||
OpenPayU.Installments.miniInstallment('.payu-installment-mini-{$product_id|md5}');
|
||||
}
|
||||
</script>
|
||||
25
modules/payu/views/templates/hook/retryPayment.tpl
Normal file
25
modules/payu/views/templates/hook/retryPayment.tpl
Normal file
@@ -0,0 +1,25 @@
|
||||
{*
|
||||
* PayU
|
||||
*
|
||||
* @author PayU
|
||||
* @copyright Copyright (c) 2016 PayU
|
||||
* @license http://opensource.org/licenses/LGPL-3.0 Open Software License (LGPL 3.0)
|
||||
*
|
||||
* http://www.payu.com
|
||||
*}
|
||||
<div class="row" id="payuRetryPayment">
|
||||
<div class="col-xs-12">
|
||||
<p class="payment_module">
|
||||
<a class="payu" href="{$payuActionUrl|escape:'htmlall':'UTF-8'}" title="{l s='Retry pay with PayU' mod='payu'}">
|
||||
<img src="{$payuImage|escape:'htmlall':'UTF-8'}" alt="{l s='Retry pay with PayU' mod='payu'}" />
|
||||
{l s='Retry pay with PayU' mod='payu'}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#payuRetryPayment').insertAfter($('.info-order').first());
|
||||
});
|
||||
</script>
|
||||
|
||||
18
modules/payu/views/templates/hook/retryPayment17.tpl
Normal file
18
modules/payu/views/templates/hook/retryPayment17.tpl
Normal file
@@ -0,0 +1,18 @@
|
||||
{*
|
||||
* PayU
|
||||
*
|
||||
* @author PayU
|
||||
* @copyright Copyright (c) 2016 PayU
|
||||
* @license http://opensource.org/licenses/LGPL-3.0 Open Software License (LGPL 3.0)
|
||||
*
|
||||
* http://www.payu.com
|
||||
*}
|
||||
<div class="box" id="payuRetryPayment17">
|
||||
<p class="payment_module_17">
|
||||
<a class="payu" href="{$payuActionUrl|escape:'htmlall':'UTF-8'}" title="{l s='Retry pay with PayU' mod='payu'}">
|
||||
<img src="{$payuImage|escape:'htmlall':'UTF-8'}" alt="{l s='Retry pay with PayU' mod='payu'}" />
|
||||
{l s='Retry pay with PayU' mod='payu'}
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user