first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
{*
* 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="alert alert-info">
<img src="../modules/santandercredit/images/logo_254x83.png" style="float:left; margin-right:15px;">
<p><strong>{l s="Ten moduł pozwala na zakupy w systemie ratalnym eRaty Santander Consumer Bank." d='Modules.Santandercredit.Admin'}</strong></p>
<p>{l s="Jeśli Klient wybierze ten sposób płatności, status zmieni się na 'Płatność eRaty status decyzji Banku dostępny w Panel Sklep.'" d='Modules.Santandercredit.Admin'}</p>
<p>{l s="Oznacza to że należy ręcznie zmodyfikować status zakupu na opłacony, po weryfikacji wniosku kredytowego na stronie Banku." d='Modules.Santandercredit.Admin'}</p>
</div>

View File

@@ -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>

View File

@@ -0,0 +1,63 @@
<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;">Zarejestruj 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>
<input type="checkbox" id="santanderAgreement" onclick="santanderCreditValidateForm();"/>
Zapoznałem się <a onclick="return jakKupic();" style="cursor: pointer;"><b><u>z procedurą udzielenia kredytu konsumenckiego na zakup towarów i usług eRaty Santander Consumer Bank</u></b></a>
</p>
<p>
<input type="submit" id="scbSubmitBtn" name="submit" disabled="disabled" value="{l s='Kupuję na raty z Santander Consumer Bank' mod='santandercredit'}" class="btn btn-primary center-block"/>
</p>
</form>

View File

@@ -0,0 +1,6 @@
<div class="single_raty">
<script type="text/javascript" src="{$module_dir}js/santanderCredit.js"></script>
<a onClick="obliczRate('{$shopId}', '{$symulatorURL}', '{$jq_qtySelector}', '{$jq_priceSelector}');" title="Kupuj na eRaty Santander Consumer Banku!" align="right" style="cursor: pointer;">
<img src="{$module_dir}images/obliczRate.png" alt="Oblicz ratę!" />
</a>
</div>