update
This commit is contained in:
34
modules/santandercredit/views/templates/admin/index.php
Normal file
34
modules/santandercredit/views/templates/admin/index.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2021 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2021 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
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;
|
||||
34
modules/santandercredit/views/templates/front/index.php
Normal file
34
modules/santandercredit/views/templates/front/index.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2021 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2021 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
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;
|
||||
@@ -0,0 +1,25 @@
|
||||
{extends file='page.tpl'}
|
||||
|
||||
{block name="page_content"}
|
||||
<p>
|
||||
|
||||
<span style="font-size: 16px; font-weight: bold;">Wystąpiły błędy przy realizacji płatności.</span>
|
||||
|
||||
<br /><br /><br />
|
||||
|
||||
<span style="font-size: 16px;">Numer wniosku kredytowego: <b>{$wniosekId}</b></span>.
|
||||
|
||||
<br /><br />
|
||||
|
||||
<span style="font-size: 16px;">Numer zamówienia w sklepie: <b>{$orderId}</b></span>.
|
||||
<br/>
|
||||
<hr/>
|
||||
<p>
|
||||
{$errors}
|
||||
</p>
|
||||
<hr/>
|
||||
<br/>
|
||||
W razie jakichkolwiek pytań prosimy o kontakt z <a href="{$base_dir}contact-form.php">Działem Obsługi Klienta</a>.
|
||||
|
||||
</p>
|
||||
{/block}
|
||||
@@ -0,0 +1,45 @@
|
||||
{extends file='page.tpl'}
|
||||
|
||||
{block name="page_content"}
|
||||
{if $status == 'false'}
|
||||
|
||||
<p class="warning">
|
||||
|
||||
Zrezygnowałes z otrzymania kredytu ratalnego.
|
||||
|
||||
</p>
|
||||
|
||||
{else}
|
||||
|
||||
<p>
|
||||
|
||||
<span style="font-size: 16px; font-weight: bold;">Dziękujemy za złożenie wniosku w Santander Consumer Bank.</span>
|
||||
|
||||
<br /><br /><br />
|
||||
|
||||
<span style="font-size: 16px;">Numer wniosku kredytowego: <b>{$wniosekId}</b></span>.
|
||||
|
||||
<br /><br />
|
||||
|
||||
<span style="font-size: 16px;">Numer zamówienia w sklepie: <b>{$orderId}</b></span>.
|
||||
|
||||
<br /><br /><br />
|
||||
|
||||
<b>W przypadku pozytywnej wstępnej weryfikacji oczekuj na kontakt telefoniczny z konsultantem Santander.</b>
|
||||
|
||||
<br /><br />
|
||||
|
||||
Podczas rozmowy telefonicznej sporządzi razem z Toba umowę ratalna.
|
||||
|
||||
<br /><br />
|
||||
|
||||
<b>Przygotuj: dowód osobisty oraz drugi dokument tożsamosci.</b>
|
||||
|
||||
<br /><br />
|
||||
|
||||
Kiedy tylko otrzymamy informację o otrzymaniu płatności będziesz mógł śledzić stan swojego zamówienia w sekcji "Moje konto".
|
||||
|
||||
</p>
|
||||
|
||||
{/if}
|
||||
{/block}
|
||||
8
modules/santandercredit/views/templates/front/test.tpl
Normal file
8
modules/santandercredit/views/templates/front/test.tpl
Normal file
@@ -0,0 +1,8 @@
|
||||
{extends file='page.tpl'}
|
||||
|
||||
{block name="page_content"}
|
||||
<h1>test</h1>
|
||||
<p>
|
||||
{$test}
|
||||
</p>
|
||||
{/block}
|
||||
@@ -0,0 +1,92 @@
|
||||
<section id="ehp" class="box">
|
||||
<h2>Płatność w systemie eRaty - status wniosku kredytowego</h2>
|
||||
<div id="applicationNextTry" style="margin:auto;width:100%;text-align:center;">
|
||||
<p>{$ehpMessage}</p>
|
||||
<p><a href="{$userDoc}">Finansowanie zakupu kredytem ratalnym - instrukcja</a></p>
|
||||
</div>
|
||||
|
||||
<div class="row" style="margin-bottom:10px;">
|
||||
<div class="col-md-6 left-column" style="padding-bottom:2px;">
|
||||
<input type="text" name="refreshCommand" id="refreshCommand" style="display:none;" value="{$refreshCommand}">
|
||||
<input type="text" name="ehp_id_order" id="ehp_id_order" style="display:none;" value="{$id_order}">
|
||||
<button id="refreshBtn" class="btn btn-primary" onclick="ehpStateRefresh();">Odśwież informację z Banku</button>
|
||||
<img src="{$module_dir|escape:'html':'UTF-8'}views/img/busy.gif" id="busy" style="visibility:hidden;"/>
|
||||
</div>
|
||||
<div class="col-md-6 right-column" style="text-align:right;padding-bottom:2px;">
|
||||
<form name="ehpCreditForm" id="ehpCreditForm" action="{$applicationURL}" method="post">
|
||||
|
||||
{assign var='nr' value='0'}
|
||||
{foreach from=$products item=product}
|
||||
{$nr = $nr + 1}
|
||||
<input name="idTowaru{$nr}" readonly="readonly" type="hidden" value="{$product['product_id']}" />
|
||||
<input name="nazwaTowaru{$nr}" readonly="readonly" type="hidden" value="{$product['product_name']}" />
|
||||
<input name="wartoscTowaru{$nr}" readonly="readonly" type="hidden" value="{round($product['unit_price_tax_incl'], 2)}" />
|
||||
<input name="liczbaSztukTowaru{$nr}" readonly="readonly" type="hidden" value="{$product['product_quantity']}" />
|
||||
<input name="jednostkaTowaru{$nr}" readonly="readonly" type="hidden" value="szt" />
|
||||
{/foreach}
|
||||
|
||||
{if $shipping gt 0}
|
||||
{$nr = $nr + 1}
|
||||
<input type="hidden" name="idTowaru{$nr}" readonly="readonly" value="KosztPrzesylki" />
|
||||
<input type="hidden" name="nazwaTowaru{$nr}" readonly="readonly" value="Koszt przesyłki" />
|
||||
<input type="hidden" name="wartoscTowaru{$nr}" readonly="readonly" value="{$shipping}" />
|
||||
<input type="hidden" name="liczbaSztukTowaru{$nr}" readonly="readonly" value="1" />
|
||||
<input type="hidden" name="jednostkaTowaru{$nr}" readonly="readonly" value="szt" />'
|
||||
{/if}
|
||||
|
||||
<input type="hidden" name="liczbaSztukTowarow" value="{$nr}" />
|
||||
|
||||
<input type="hidden" name="typProduktu" value="0" />
|
||||
<input type="hidden" name="wariantSklepu" value="1" />
|
||||
<input type="hidden" name="nrZamowieniaSklep" value="{$orderId}" id="orderId"/>
|
||||
<input type="hidden" name="wartoscTowarow" value="{$totalOrder}" />
|
||||
<input type="hidden" name="pesel" value="" />
|
||||
<input type="hidden" name="imie" value="{$imie}" />
|
||||
<input type="hidden" name="nazwisko" value="{$nazwisko}" />
|
||||
<input type="hidden" name="email" value="{$email}" />
|
||||
<input type="hidden" name="telKontakt" value="{$telKontakt}" />
|
||||
<input type="hidden" name="ulica" value="{$ulica}" />
|
||||
<input type="hidden" name="nrDomu" value="{$ulica2}" />
|
||||
<input type="hidden" name="nrMieszkania" value="" />
|
||||
<input type="hidden" name="miasto" value="{$miasto}" />
|
||||
<input type="hidden" name="kodPocz" value="{$kodPocz}" />
|
||||
<input type="hidden" name="char" value="UTF" />
|
||||
<input type="hidden" name="numerSklepu" value="{$shopId}" />
|
||||
<input type="hidden" name="shopName" value="{$shopName}" />
|
||||
<input type="hidden" name="shopHttp" value="{$shopHttp}" />
|
||||
<input type="hidden" name="wniosekZapisany" value="{$returnTrue}" />
|
||||
<input type="hidden" name="wniosekAnulowany" value="{$returnFalse}" />
|
||||
<input type="hidden" name="shopMailAdress" value="{$shopMailAdress}" />
|
||||
<input type="hidden" name="shopPhone" value="{$shopPhone}" />
|
||||
|
||||
<button type="submit" class="btn btn-primary" {$sendApplicationDisabled}>{$backToApp_sendApp}</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-4 left-column">
|
||||
<p class="mb-1"><strong>POSApplicationNumber:</strong></p>
|
||||
<p class="mb-1">{$application->ShopApplicationNumber}</p>
|
||||
<p class="mb-1"><strong>Numer wniosku:</strong></p>
|
||||
<p class="mb-1">{$application->ApplicationNumber}</p>
|
||||
<p class="mb-1"><strong>Status wniosku:</strong></p>
|
||||
<p class="mb-1">{$application->CreditState}</p>
|
||||
<p class="mb-1"><strong>Data statusu:</strong></p>
|
||||
<p class="mb-1">{$application->ChangeDate}</p>
|
||||
</div>
|
||||
<div class="col-md-4 right-column">
|
||||
<p class="mb-1"><strong>Numer umowy:</strong></p>
|
||||
<p class="mb-1">{$application->AgreementNumber}</p>
|
||||
<p class="mb-1"><strong>Data umowy:</strong></p>
|
||||
<p class="mb-1">{$application->AgreementDate}</p>
|
||||
</div>
|
||||
<div class="col-md-4 right-column">
|
||||
<p class="mb-1"><strong>Wplata własna:</strong></p>
|
||||
<p class="mb-1">{$application->Downpayment}</p>
|
||||
<p class="mb-1"><strong>Cena całokwita:</strong></p>
|
||||
<p class="mb-1">{$application->TotalPrice}</p>
|
||||
<p class="mb-1"><strong>Numer Sklepu:</strong></p>
|
||||
<p class="mb-1">{$application->ShopNumber}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,17 @@
|
||||
<div class="mt-2">
|
||||
<!-- Nav tabs -->
|
||||
<ul class="nav nav nav-tabs d-print-none " role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active show" href="#details" role="tab" data-toggle="tab">eHP - status wniosku kredytowego</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link show" href="#ehplog" role="tab" data-toggle="tab">eHP log</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- Tab panes -->
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="details">{include file='./ehpDisplayDetails.tpl'}</div>
|
||||
<div class="tab-pane" id="ehplog">{include file='./ehpDisplayLog.tpl'}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,42 @@
|
||||
<div class="panel card" style="padding-left:10px;padding-right:10px;">
|
||||
<div class="row">
|
||||
<div class="col-xxl-4 text-xxl-left">
|
||||
<input type="text" name="refreshCommand" id="refreshCommand" style="display:none;" value="{$refreshCommand}">
|
||||
<input type="text" name="id_order" id="id_order" style="display:none;" value="{$id_order}">
|
||||
<div style="padding-top:10px;padding-bottom:10px;"><button class="btn btn-primary" id="refreshBtn">Pobierz informacje z Banku</button></div>
|
||||
<img src="{$module_dir|escape:'html':'UTF-8'}views/img/busy.gif" id="busy" style="visibility:hidden;"/>
|
||||
</div>
|
||||
<div class="col-xxl-4 text-xxl-left"> </div>
|
||||
<div class="col-xxl-4 text-xxl-left">
|
||||
<div style="padding-top:10px;padding-bottom:10px;"><a href="{$instrukcja}">Instrukcja obsługi eHP</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-4 left-column">
|
||||
<p class="mb-1"><strong>POSApplicationNumber:</strong></p>
|
||||
<p class="mb-1">{$fullAppInfo->ShopApplicationNumber}</p>
|
||||
<p class="mb-1"><strong>Numer wniosku:</strong></p>
|
||||
<p class="mb-1">{$fullAppInfo->ApplicationNumber}</p>
|
||||
<p class="mb-1"><strong>Status wniosku:</strong></p>
|
||||
<p class="mb-1">{$fullAppInfo->CreditState}</p>
|
||||
<p class="mb-1"><strong>Data statusu:</strong></p>
|
||||
<p class="mb-1">{$fullAppInfo->ChangeDate}</p>
|
||||
</div>
|
||||
<div class="col-md-4 right-column">
|
||||
<p class="mb-1"><strong>Numer umowy:</strong></p>
|
||||
<p class="mb-1">{$fullAppInfo->AgreementNumber}</p>
|
||||
<p class="mb-1"><strong>Data umowy:</strong></p>
|
||||
<p class="mb-1">{$fullAppInfo->AgreementDate}</p>
|
||||
</div>
|
||||
<div class="col-md-4 right-column">
|
||||
<p class="mb-1"><strong>Wplata własna:</strong></p>
|
||||
<p class="mb-1" id="downpaymentEhp">{$fullAppInfo->Downpayment}</p>
|
||||
<p class="mb-1"><strong>Cena całkowita:</strong></p>
|
||||
<p class="mb-1">{$fullAppInfo->TotalPrice}</p>
|
||||
<p class="mb-1"><strong>Numer Sklepu:</strong></p>
|
||||
<p class="mb-1">{$fullAppInfo->ShopNumber}</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,51 @@
|
||||
<div class="panel">
|
||||
<div class="row">
|
||||
<div class="col-md-12 d-print-block left-column">
|
||||
<div class="panel card mt-2" style="text-align:left;">
|
||||
<div class="card-header">
|
||||
<h3 class="card-header-title">Log komunikacji z systemem bankowym:</h3>
|
||||
</div>
|
||||
<div class="card-body" style="text-align:right;overflow: scroll; padding-right:6px;">
|
||||
<table class="table" style="margin-right:6px; matgin-left:auto;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="table-head-date">request_date</th>
|
||||
<th>success</th>
|
||||
<th>shop_number</th>
|
||||
<th>id_order</th>
|
||||
<th>pos_app_number</th>
|
||||
<th>application_number</th>
|
||||
<th>application_status</th>
|
||||
<th>app_status_chg_date</th>
|
||||
<th>agreement_number</th>
|
||||
<th>agreement_date</th>
|
||||
<th>message</th>
|
||||
<th>downpayment</th>
|
||||
<th>total_price</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$log item=row}
|
||||
<tr>
|
||||
<td>{$row['request_date']}</td>
|
||||
<td>{$row['success']}</td>
|
||||
<td>{$row['shop_number']}</td>
|
||||
<td>{$row['id_order']}</td>
|
||||
<td>{$row['pos_app_number']}</td>
|
||||
<td>{$row['application_number']}</td>
|
||||
<td>{$row['application_status']}</td>
|
||||
<td>{$row['app_status_chg_date']}</td>
|
||||
<td>{$row['agreement_number']}</td>
|
||||
<td>{$row['agreement_date']}</td>
|
||||
<td><textarea cols="20" rows="3">{$row['message']}</textarea>
|
||||
<td>{$row['downpayment']}</td>
|
||||
<td>{$row['total_price']}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
34
modules/santandercredit/views/templates/hook/index.php
Normal file
34
modules/santandercredit/views/templates/hook/index.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2021 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2021 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
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;
|
||||
106
modules/santandercredit/views/templates/hook/infos.tpl
Normal file
106
modules/santandercredit/views/templates/hook/infos.tpl
Normal file
@@ -0,0 +1,106 @@
|
||||
{*
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div class="panel">
|
||||
<div class="row">
|
||||
<div class="col-md-4 left-column"><img src="../modules/santandercredit/views/img/logo_254x83.png" style="float:left; margin-right:15px;"></div>
|
||||
<div class="col-md-8 right-column" style="text-align:right;">
|
||||
|
||||
<a id="docDnldBtn" href="{$scbEhpDocUrl}">
|
||||
<button class="btn ">Dokumentacja dla Klienta</button>
|
||||
</a>
|
||||
<a id="docDnldBtn" href="{$scbEhpSlsDocUrl}">
|
||||
<button class="btn ">Dokumentacja dla Sprzedawcy</button>
|
||||
</a>
|
||||
<a id="docDnldBtn" href="{$scbEhpAdmDocUrl}">
|
||||
<button class="btn ">Dokumentacja dla Administratora</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<form>
|
||||
<input type="hidden" name="EHP_DEF_URL_SYMULATOR" id="EHP_DEF_URL_SYMULATOR" value="{$EHP_DEF_URL_SYMULATOR}" />
|
||||
<input type="hidden" name="EHP_DEF_URL_WNIOSEK" id="EHP_DEF_URL_WNIOSEK" value="{$EHP_DEF_URL_WNIOSEK}" />
|
||||
<input type="hidden" name="EHP_DEF_SVC_LOCATION" id="EHP_DEF_SVC_LOCATION" value="{$EHP_DEF_SVC_LOCATION}" />
|
||||
<input type="hidden" name="EHP_DEF_QTY_QUERY" id="EHP_DEF_QTY_QUERY" value="{$EHP_DEF_QTY_QUERY}" />
|
||||
<input type="hidden" name="EHP_DEF_PRICE_QUERY" id="EHP_DEF_PRICE_QUERY" value="{$EHP_DEF_PRICE_QUERY}" />
|
||||
|
||||
|
||||
<input type="hidden" name="EHP_CURRENT_URL_SYMULATOR" id="EHP_CURRENT_URL_SYMULATOR" value="{$EHP_CURRENT_URL_SYMULATOR}" />
|
||||
<input type="hidden" name="EHP_CURRENT_URL_WNIOSEK" id="EHP_CURRENT_URL_WNIOSEK" value="{$EHP_CURRENT_URL_WNIOSEK}" />
|
||||
<input type="hidden" name="EHP_CURRENT_SVC_LOCATION" id="EHP_CURRENT_SVC_LOCATION" value="{$EHP_CURRENT_SVC_LOCATION}" />
|
||||
<input type="hidden" name="EHP_CURRENT_QTY_QUERY" id="EHP_CURRENT_QTY_QUERY" value="{$EHP_CURRENT_QTY_QUERY}" />
|
||||
<input type="hidden" name="EHP_CURRENT_PRICE_QUERY" id="EHP_CURRENT_PRICE_QUERY" value="{$EHP_CURRENT_PRICE_QUERY}" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- The Modal -->
|
||||
<div id="pshPassModal" class="ehp-modal">
|
||||
|
||||
<!-- Modal content -->
|
||||
<div class="ehp-modal-content">
|
||||
<header style="vertical-align: top">
|
||||
<div style="padding-bottom: 10px" class="ehp-close" onclick="document.getElementById('pshPassModal').style.display = 'none';">×</div>
|
||||
<div style="padding-bottom:10px">Zmiana hasła do usługi ProposalServiceHybrid</div>
|
||||
</header>
|
||||
<div>
|
||||
<div style="display:inline-block">
|
||||
<div>Hasło</div>
|
||||
<div><input type="password" value="" id="pshPass1"></div>
|
||||
</div>
|
||||
<div style="display:inline-block">
|
||||
<div>Powtórz Hasło</div>
|
||||
<div><input type="password" value="" id="pshPass2"></div>
|
||||
</div>
|
||||
<div style="display:inline-block">
|
||||
<input type="button" class="btn" value="Anuluj" onclick="document.getElementById('pshPassModal').style.display = 'none';">
|
||||
</div>
|
||||
<div style="display:inline-block">
|
||||
<input type="button" class="btn" value="Zapisz" id='pshPassSaveBtn'>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- The Modal for PSH test-->
|
||||
<div id="pshTestModal" class="ehp-modal">
|
||||
|
||||
<!-- Modal content -->
|
||||
<div class="ehp-modal-content">
|
||||
<header style="vertical-align: top">
|
||||
<div style="padding-bottom: 10px" class="ehp-close" onclick="document.getElementById('pshTestModal').style.display = 'none';">×</div>
|
||||
<div style="padding-bottom:10px">Test połączenia z usługą ProposalServiceHybrid</div>
|
||||
</header>
|
||||
<div>
|
||||
<p id="pshTestResult">Trwa weryfikacja połączenia...</p>
|
||||
<div style="display:inline-block">
|
||||
<input type="button" class="btn" value="Zamknij" onclick="document.getElementById('pshTestModal').style.display = 'none';">
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="pshLoginChckCommand" value="{$pshLoginChckCommand}" />
|
||||
<input type="hidden" id="pshIsActiveCommand" value="{$pshIsActiveCommand}" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
115
modules/santandercredit/views/templates/hook/infos2.tpl
Normal file
115
modules/santandercredit/views/templates/hook/infos2.tpl
Normal file
@@ -0,0 +1,115 @@
|
||||
{*
|
||||
* 2007-2015 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2015 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*}
|
||||
|
||||
<div class="panel">
|
||||
<div class="panel-heading">
|
||||
<i class="icon-cogs"></i>
|
||||
Uwaga:
|
||||
</div>
|
||||
<p id="qvalid_msg">
|
||||
<span style="color:red; font-weight: bold;">Wykryto problem w parametrach QTY_QUERY i/lub PRICE_QUERY!
|
||||
Zapoznaj się z dokumentacją i <a href="#" style="color:red;font-size:large">obejrzyj film instruktażowy</a></SPAN>
|
||||
<br/>
|
||||
<span style="color:red;">
|
||||
Do czasu rozwiązania problemu zalecamy przywrócenie wartości domyślnych. Można też ustawić "Potwierdzaj dane do symulacji" na TAK.
|
||||
</span>
|
||||
</p>
|
||||
<p style="text-align: center;">Konfigurację osadzania widgetu wywołującego symulator rat na stronie sklepu należy wykonywać bardzo ostrożnie. W szczególności chodzi o parametry QTY_QUERY oraz
|
||||
PRICE_QUERY. W założeniu są to funkcje jQuery pozwalające na odczyt aktualnej wartości ceny jednostkowej oraz ilości towaru z aktualnie wyświetlanej strony
|
||||
produktu. Jeśli są skonfigurowane poprawnie - mamy gwarancję że do symulatora wysłana zostanie kwota uwzględnijąca aktualnie ustawioną przez klienta ilość towaru.
|
||||
Jeśli moduł stwierdzi że nie jest w stanie odnaleźć ceny i ilości na stronie - wyśle do symulatora kwotę wynikającą z ceny jednostkowej i minimalnej
|
||||
ilości towaru określonej dla danego produktu w parametrach sklepu. Domyślnie, parametry QTY_QUERY i PRICE_QUERY są zgodne z defaultowym templatem PrestaShop.
|
||||
Jeśli Twój template zachowuje zgodnosć z defaultowym - nie trzeba nic zmieniać. Wskazane jest by zmian tych parametrów dokonywała osoba znająca bibliotekę jQuery.
|
||||
Jeśli nie jesteś w stanie poprawnie skonfigurować QTY_QUERY i PRICE_QUERY, możesz
|
||||
użyć opcji "Potwierdzaj dane do symulacji". Zostanie wtedy wyświetlony dodatkowy dialog który pozwoli Klientowi ustawić właściwą ilość towaru.
|
||||
Parametry te należy weryfikować po każdej zmianie szablonu wykorzystywanego w Sklepie. Jest to zadanie Webmastera/Administratora instancji PrestaShop.
|
||||
Zanim zaczniesz modyfikować QTY_QUERY i PRICE_QUERY zapoznaj się z <a id="docDnldBtn" href="{$scbEhpAdmDocUrl}">dokumentacją.</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
{$quantityFn nofilter}
|
||||
|
||||
{$priceFn nofilter}
|
||||
|
||||
function testQueries(quantity, price) {
|
||||
let pmessage = document.getElementById('qvalid_msg');
|
||||
let qq = $('#EHP_CURRENT_QTY_QUERY').val();
|
||||
let qp = $('#EHP_CURRENT_PRICE_QUERY').val();
|
||||
let isOk = 1;
|
||||
//start z dolara
|
||||
if(!(qq.charAt(0) == '$')) {
|
||||
isOk = isOk - 1;
|
||||
};
|
||||
if(!(qp.charAt(0) == '$')) {
|
||||
isOk = isOk - 1;
|
||||
};
|
||||
|
||||
//liczba nawiasow lewych == liczba nawiasow prawych
|
||||
if(!(qq.split('(').length == qq.split(')').length)) {
|
||||
isOk = isOk - 1;
|
||||
};
|
||||
if(!(qp.split('(').length == qp.split(')').length)) {
|
||||
isOk = isOk - 1;
|
||||
};
|
||||
|
||||
//parzysta ilość apostrofów
|
||||
if((qq.split("'").length % 2) == 0) {
|
||||
isOk = isOk - 1;
|
||||
};
|
||||
if((qp.split("'").length % 2) == 0) {
|
||||
isOk = isOk - 1;
|
||||
};
|
||||
|
||||
//parzysta ilość cudzysłowów
|
||||
if((qq.split('"').length % 2) == 0) {
|
||||
isOk = isOk - 1;
|
||||
};
|
||||
if((qp.split('"').length % 2) == 0) {
|
||||
isOk = isOk - 1;
|
||||
};
|
||||
|
||||
// max liczba średników = 1 i średnik na ostatnim miejscu
|
||||
if(qq.indexOf(';') >= 0) {
|
||||
if(!(qq.indexOf(';') == qq.lastIndexOf(';'))) {
|
||||
isOk = isOk -1;
|
||||
};
|
||||
}
|
||||
if(qp.indexOf(';') >= 0) {
|
||||
if(!(qp.indexOf(';') == qp.lastIndexOf(';'))) {
|
||||
isOk = isOk -1;
|
||||
};
|
||||
}
|
||||
|
||||
if(isOk == 1) {
|
||||
pmessage.style.display = "none";
|
||||
}
|
||||
}
|
||||
|
||||
testQueries(ehpGetPquantity(), ehpGetPprice());
|
||||
|
||||
</script>
|
||||
@@ -0,0 +1,20 @@
|
||||
<section>
|
||||
<h3>{l s='Zakupy na raty z systemem eRaty Santander Consumer Bank' mod='santandercredit'}</h3>
|
||||
<p>
|
||||
Całkowita wartość Twojego zamówienia wynosi <span style="color: #ff0000;" class="bold">{$totalOrderC}</span>
|
||||
</p>
|
||||
<p>
|
||||
Przed złożeniem wniosku możesz zapoznać się z procedurą udzielenia kredytu ratalnego oraz obliczyć raty.
|
||||
</p>
|
||||
<p>
|
||||
<a href="https://www.santanderconsumer.pl/raty-jak-kupic" target="_blank">
|
||||
<img src="{$imgDir}/jakKupicSmall.png" style="cursor: pointer; float: left;" title="Zapoznaj się z procedurą" alt="Zapoznaj się z procedurą" border="0" />
|
||||
</a>
|
||||
<!--default part href="https://wniosek.eraty.pl/symulator/oblicz/" (with backslash at the end)-->
|
||||
<a href="{$symulatorURL}numerSklepu/{$shopId}/wariantSklepu/1/typProduktu/0/wartoscTowarow/{$totalOrder}/" target="_blank">
|
||||
<img src="{$imgDir}/obliczRate.png" style="cursor: pointer; float: right;" title="Oblicz ratę" alt="Oblicz ratę" border="0" />
|
||||
</a>
|
||||
</p>
|
||||
<div style="clear: both"></div>
|
||||
</section>
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
<h2 style="margin-left: auto; margin-right: auto; color:red; text-align: center;">{l s='Zakupy na raty z systemem eRaty Santander Consumer Bank' mod='santandercredit'}</h2>
|
||||
<div style="margin-left: auto; margin-right: auto; margin-bottom: 3em; color:red; text-align: center;">Złóż wniosek o kredyt ratalny aby sfinalizowac płatność.</div>
|
||||
|
||||
<!--default action="https://wniosek.eraty.pl/formularz/" (with backslash at the end)-->
|
||||
<form name="santanderCreditForm" id="santanderCreditForm" action="{$applicationURL}" method="post">
|
||||
|
||||
{assign var='nr' value='0'}
|
||||
{foreach from=$products item=product}
|
||||
{$nr = $nr + 1}
|
||||
<input name="idTowaru{$nr}" readonly="readonly" type="hidden" value="{$product['id_product']}" />
|
||||
<input name="nazwaTowaru{$nr}" readonly="readonly" type="hidden" value="{$product['name']}" />
|
||||
<input name="wartoscTowaru{$nr}" readonly="readonly" type="hidden" value="{round($product['price_wt'], 2)}" />
|
||||
<input name="liczbaSztukTowaru{$nr}" readonly="readonly" type="hidden" value="{$product['quantity']}" />
|
||||
<input name="jednostkaTowaru{$nr}" readonly="readonly" type="hidden" value="szt" />
|
||||
{/foreach}
|
||||
|
||||
{if $shipping gt 0}
|
||||
{$nr = $nr + 1}
|
||||
<input type="hidden" name="idTowaru{$nr}" readonly="readonly" value="KosztPrzesylki" />
|
||||
<input type="hidden" name="nazwaTowaru{$nr}" readonly="readonly" value="Koszt przesyłki" />
|
||||
<input type="hidden" name="wartoscTowaru{$nr}" readonly="readonly" value="{$shipping}" />
|
||||
<input type="hidden" name="liczbaSztukTowaru{$nr}" readonly="readonly" value="1" />
|
||||
<input type="hidden" name="jednostkaTowaru{$nr}" readonly="readonly" value="szt" />'
|
||||
{/if}
|
||||
|
||||
<input type="hidden" name="liczbaSztukTowarow" value="{$nr}" />
|
||||
|
||||
<input type="hidden" name="typProduktu" value="0" />
|
||||
<input type="hidden" name="wariantSklepu" value="1" />
|
||||
<input type="hidden" name="nrZamowieniaSklep" value="{$orderId}" id="orderId"/>
|
||||
<input type="hidden" name="wartoscTowarow" value="{$totalOrder}" />
|
||||
<input type="hidden" name="action" value="getklientdet_si" />
|
||||
<input type="hidden" name="pesel" value="" />
|
||||
<input type="hidden" name="imie" value="{$imie}" />
|
||||
<input type="hidden" name="nazwisko" value="{$nazwisko}" />
|
||||
<input type="hidden" name="email" value="{$email}" />
|
||||
<input type="hidden" name="telKontakt" value="{$telKontakt}" />
|
||||
<input type="hidden" name="ulica" value="{$ulica}" />
|
||||
<input type="hidden" name="nrDomu" value="{$ulica2}" />
|
||||
<input type="hidden" name="nrMieszkania" value="" />
|
||||
<input type="hidden" name="miasto" value="{$miasto}" />
|
||||
<input type="hidden" name="kodPocz" value="{$kodPocz}" />
|
||||
<input type="hidden" name="char" value="UTF" />
|
||||
<input type="hidden" name="numerSklepu" value="{$shopId}" />
|
||||
<input type="hidden" name="shopName" value="{$shopName}" />
|
||||
<input type="hidden" name="shopHttp" value="{$shopHttp}" />
|
||||
<input type="hidden" name="wniosekZapisany" value="{$returnTrue}" />
|
||||
<input type="hidden" name="wniosekAnulowany" value="{$returnFalse}" />
|
||||
<input type="hidden" name="shopMailAdress" value="{$shopMailAdress}" />
|
||||
<input type="hidden" name="shopPhone" value="{$shopPhone}" />
|
||||
|
||||
<p style="text-align:center;">
|
||||
<input type="submit" id="scbSubmitBtn" name="submit" value="{l s='Opłać zamówienie - złóż wniosek' mod='santandercredit'}" class="btn btn-primary center-block"/>
|
||||
</p>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
<script type="text/javascript">
|
||||
|
||||
{$quantityFn nofilter}
|
||||
|
||||
{$priceFn nofilter}
|
||||
|
||||
</script>
|
||||
|
||||
<!-- The Modal -->
|
||||
<div id="simInputModal" class="ehp-modal">
|
||||
|
||||
<!-- Modal content -->
|
||||
<div class="ehp-modal-content">
|
||||
<header style="vertical-align: top">
|
||||
<div style="padding-bottom: 10px" class="ehp-close" onclick="document.getElementById('simInputModal').style.display = 'none';">×</div>
|
||||
<div style="padding-bottom:10px">Dane wejściowe dla symulatora rat</div>
|
||||
</header>
|
||||
<div>
|
||||
<div style="display:inline-block">
|
||||
<div>cena jednostkowa</div>
|
||||
<div><input type="number" value="1234" id="ehpModalPrice"></div>
|
||||
</div>
|
||||
<div style="display:inline-block">
|
||||
<div>ilość jednostek</div>
|
||||
<div><input type="number" value="1234" id="ehpModalQuantity"></div>
|
||||
</div>
|
||||
<div style="display:inline-block">
|
||||
<input type="button" value="Oblicz ratę" onclick="ehpSimRequest('{$shopId}', '{$symulatorURL}', ehpCalcOrderPrice($('#ehpModalPrice').val(), $('#ehpModalQuantity').val()))">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!--<div style="text-align:right;"> -->
|
||||
<p id="eraty" class="buttons_bottom_block" >
|
||||
<a onClick="simulationEhp({$displaySimInputModal},'{$shopId}', '{$symulatorURL}', ehpGetPquantity(), ehpGetPprice());" title="Kupuj na eRaty Santander Consumer Banku!" align="right" style="cursor: pointer;">
|
||||
<img src="{$module_dir}views/img/obliczRate.png" alt="Oblicz ratę!"/>
|
||||
</a>
|
||||
<div style="position:absolute;visibility:hidden" id="scb_quantity">{$scb_quantity}</div>
|
||||
<div style="position:absolute;visibility:hidden" id="scb_price">{$santanderCreditProductPrice}</div>
|
||||
</p>
|
||||
<!--</div>-->
|
||||
34
modules/santandercredit/views/templates/index.php
Normal file
34
modules/santandercredit/views/templates/index.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2021 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2021 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
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