Save
This commit is contained in:
11
modules/raty/views/templates/front/index.php
Normal file
11
modules/raty/views/templates/front/index.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
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;
|
||||
39
modules/raty/views/templates/front/payment_execution.tpl
Normal file
39
modules/raty/views/templates/front/payment_execution.tpl
Normal file
@@ -0,0 +1,39 @@
|
||||
{capture name=path}
|
||||
<a href="{$link->getPageLink('order', true, NULL, "step=3")|escape:'html':'UTF-8'}" title="{l s='Go back to the Checkout' mod='raty'}">{l s='Checkout' mod='raty'}</a><span class="navigation-pipe">{$navigationPipe}</span>{l s='Raty Alior Bank' mod='raty'}
|
||||
{/capture}
|
||||
|
||||
{include file="$tpl_dir./breadcrumb.tpl"}
|
||||
|
||||
<h2>{l s='Podsumowanie zamówienia' mod='raty'}</h2>
|
||||
|
||||
{assign var='current_step' value='payment'}
|
||||
{include file="$tpl_dir./order-steps.tpl"}
|
||||
|
||||
{if $nbProducts <= 0}
|
||||
<p class="warning">{l s='Twój koszyk jest pusty.' mod='raty'}</p>
|
||||
{else}
|
||||
|
||||
<h3>{l s='Raty Alior Bank' mod='raty'}</h3>
|
||||
<form action="{$link->getModuleLink('raty', 'validation', [], true)|escape:'html'}" method="post">
|
||||
<p>
|
||||
<img src="{$this_path_bw}logo.png" alt="{l s='Raty Alior Bank' mod='raty'}" width="86" height="49" style="float:left; margin: 0px 10px 5px 0px;" />
|
||||
{l s='Wybrałeś płatność poprzez raty Alior Banku.' mod='raty'}
|
||||
<br/><br />
|
||||
{l s='To jest Twoje skrócona informacja o zamówieniu:' mod='raty'}
|
||||
</p>
|
||||
<p style="margin-top:20px;">
|
||||
- {l s='Całkowita kwota do zapłaty' mod='raty'}
|
||||
<span id="amount" class="price">{displayPrice price=$total}</span>
|
||||
{if $use_taxes == 1}
|
||||
{l s='(zawiera VAT.)' mod='raty'}
|
||||
{/if}
|
||||
</p>
|
||||
<p>
|
||||
<b>{l s='Proszę potwierdź zamówienie klikając na "Potwierdzam zamówienie".' mod='raty'}</b>
|
||||
</p>
|
||||
<p class="cart_navigation" id="cart_navigation">
|
||||
<input type="submit" value="{l s='Potwierdzam zamówienie' mod='raty'}" class="exclusive_large" />
|
||||
<a href="{$link->getPageLink('order', true, NULL, "step=3")|escape:'html'}" class="button_large">{l s='Inne metody płatności' mod='raty'}</a>
|
||||
</p>
|
||||
</form>
|
||||
{/if}
|
||||
1
modules/raty/views/templates/front/payment_infos.tpl
Normal file
1
modules/raty/views/templates/front/payment_infos.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<p>{$raty_description}</p>
|
||||
11
modules/raty/views/templates/hook/index.php
Normal file
11
modules/raty/views/templates/hook/index.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
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;
|
||||
7
modules/raty/views/templates/hook/payment.tpl
Normal file
7
modules/raty/views/templates/hook/payment.tpl
Normal file
@@ -0,0 +1,7 @@
|
||||
<p class="payment_module" style="position:relative;">
|
||||
<a class="cheque" href="{$link->getModuleLink('raty', 'payment')|escape:'html'}" title="{l s='Zapłać poprzez Raty Alior Bank' mod='raty'}">
|
||||
<img src="{$this_path_raty}logo.png" alt="{l s='Zapłać poprzez raty Alior Bank' mod='raty'}" width="86" height="49"/>
|
||||
{l s='Zapłać poprzez raty Alior Bank' mod='raty'} <span>{l s='' mod='raty'}</span>
|
||||
</a>
|
||||
<a href="{$this_kalkulator}{$this_cena}" target="_blank" style="border:none;background:none;right:20px;top:0px;z-index: 100;"><img src="{$this_path_raty}alior-kalkulator-guzik.gif" alt="{l s='Oblicz ratę' mod='raty'}" width="86" height="49"/></a>
|
||||
</p>
|
||||
26
modules/raty/views/templates/hook/payment_return.tpl
Normal file
26
modules/raty/views/templates/hook/payment_return.tpl
Normal file
@@ -0,0 +1,26 @@
|
||||
{if $status == 'ok'}
|
||||
<form name='fr' action='{$url}' method='POST'>
|
||||
<input type='hidden' name='firstName' value='{$firstName}'/>
|
||||
<input type='hidden' name='lastName' value='{$lastName}'/>
|
||||
<input type='hidden' name='partnerId' value='{$partnerId}'/>
|
||||
<input type='hidden' name='subPartnerId' value='{$subpartnerId}'/>
|
||||
<input type='hidden' name='mcc' value='{$mcc}'>
|
||||
<input type='hidden' name='limit' value='{$limit}'/>
|
||||
<input type='hidden' name='promotion' value='{$promotion}'/>
|
||||
<input type='hidden' name='calculatedIncome' value='{$calculatedIncome}'/>
|
||||
<input type='hidden' name='verificationCode' value='{$verificationCode}'/>
|
||||
<input type='hidden' name='transactionCode' value='{$transactionCode}'/>
|
||||
<input type='hidden' name='dateAndTime' value='{$dateAndTime}'/>
|
||||
<input type='hidden' name='amount' value='{$amount}'/>
|
||||
<input type='hidden' name='articlesList' value='{$articlesList}'/>
|
||||
</form>
|
||||
|
||||
<script type='text/javascript'>
|
||||
document.fr.submit();
|
||||
</script>
|
||||
{else}
|
||||
<p class="warning">
|
||||
{l s='We noticed a problem with your order. If you think this is an error, feel free to contact our' mod='bankwire'}
|
||||
<a href="{$link->getPageLink('contact', true)|escape:'html'}">{l s='expert customer support team' mod='bankwire'}</a>.
|
||||
</p>
|
||||
{/if}
|
||||
17
modules/raty/views/templates/hook/productraty.tpl
Normal file
17
modules/raty/views/templates/hook/productraty.tpl
Normal file
@@ -0,0 +1,17 @@
|
||||
<script>
|
||||
function getPrice() {
|
||||
let price = '{$this_cena}';
|
||||
let priceObj = document.querySelectorAll('.product-prices .current-price');
|
||||
if (priceObj.length > 0) {
|
||||
price = priceObj[priceObj.length - 1].textContent;
|
||||
}
|
||||
return parseFloat(price.replace(',', '.').replace(/[^\d.]/g, ""));
|
||||
}
|
||||
</script>
|
||||
<br/>
|
||||
<div id="oblicz-rate">
|
||||
<a onclick="window.open('{$this_kalkulator}' + getPrice())" target="_blank">
|
||||
<img src="{$this_path_raty}/alior-kalkulator-guzik.gif"/>
|
||||
</a>
|
||||
</div>
|
||||
<br/>
|
||||
16
modules/raty/views/templates/hook/raty_cart.tpl
Normal file
16
modules/raty/views/templates/hook/raty_cart.tpl
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
<script>
|
||||
function getPrice() {
|
||||
let price = '{$this_cena}';
|
||||
let priceObj = document.querySelectorAll('.cart-total .value');
|
||||
if (priceObj.length > 0) {
|
||||
price = priceObj[priceObj.length - 1].textContent;
|
||||
}
|
||||
return parseFloat(price.replace(',', '.').replace(/[^\d.]/g, ""));
|
||||
}
|
||||
</script>
|
||||
<div id="oblicz-rate" style="text-align:center;bottom:-4px;right: 400px">
|
||||
<a onclick="window.open('{$this_kalkulator}' + getPrice())" target="_blank">
|
||||
<img src="{$this_path_raty}/alior-kalkulator-guzik.gif"/>
|
||||
</a>
|
||||
</div>
|
||||
26
modules/raty/views/templates/hook/updatecategory.tpl
Normal file
26
modules/raty/views/templates/hook/updatecategory.tpl
Normal file
@@ -0,0 +1,26 @@
|
||||
<script>
|
||||
function check(event) {
|
||||
let checkbox = document.getElementById('alior_category_promotion');
|
||||
value = event.target.checked ? 1 : 0;
|
||||
checkbox.value = value;
|
||||
}
|
||||
</script>
|
||||
<div class="form-group row">
|
||||
<label class="form-control-label">
|
||||
Raty Alior
|
||||
</label>
|
||||
<div class="col-sm pt-2">
|
||||
<label>
|
||||
<input type="checkbox" id="alior_category_promotion" name="alior_category_promotion" onclick="check(event)"/>
|
||||
Włącz ofertę specjalną dla tej kategorii
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
let checkbox = document.getElementById('alior_category_promotion');
|
||||
checkbox.value = {$alior_category_promotion}
|
||||
checkbox.checked = false;
|
||||
if(checkbox.value === '1') {
|
||||
checkbox.checked = true;
|
||||
}
|
||||
</script>
|
||||
27
modules/raty/views/templates/hook/updateproduct.tpl
Normal file
27
modules/raty/views/templates/hook/updateproduct.tpl
Normal file
@@ -0,0 +1,27 @@
|
||||
<script>
|
||||
function check(event) {
|
||||
let checkbox = document.getElementById('alior_product_promotion');
|
||||
value = event.target.checked ? 1 : 0;
|
||||
checkbox.value = value;
|
||||
}
|
||||
</script>
|
||||
<div id="caraty-product-promotion">
|
||||
<h2>Raty Alior</h2>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<label>
|
||||
<input type="checkbox" id="alior_product_promotion" name="alior_product_promotion" onclick="check(event)"/>
|
||||
Włącz ofertę specjalną dla tego produktu
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
let checkbox = document.getElementById('alior_product_promotion');
|
||||
checkbox.value = {$alior_product_promotion}
|
||||
checkbox.checked = false;
|
||||
if(checkbox.value === '1') {
|
||||
checkbox.checked = true;
|
||||
}
|
||||
</script>
|
||||
11
modules/raty/views/templates/index.php
Normal file
11
modules/raty/views/templates/index.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
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;
|
||||
Reference in New Issue
Block a user