Initial commit

This commit is contained in:
2019-11-20 07:44:43 +01:00
commit 5bf49c4a81
41188 changed files with 5459177 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?php
/*
* 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
*/
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;

View File

@@ -0,0 +1,11 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}

View File

@@ -0,0 +1,52 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
{if $acompte_chose == 0}
<div class="box">
<p>{l s='you want to pay a deposit or the total?' mod='installmentpayment'}</p>
<div class="form-group">
<label>{l s='Type payment :' mod='installmentpayment'}</label>
<select name="installmentpayment" id="installmentpayment_select">
<option value="0" {if $installmentpayment_type == 0}selected{/if}>{l s='Total' mod='installmentpayment'}</option>
<option value="1" {if $installmentpayment_type == 1}selected{/if}>{l s='A deposit' mod='installmentpayment'}</option>
</select>
</div>
</div>
{/if}
{if $acompte_chose == 0}
{literal}
<script>
$(document).ready(function() {
if(($("#installmentpayment_select").val()) == 0)
$('#box_installment').hide();
});
$('#installmentpayment_select').on('change', function(el)
{
$.ajax({
url: '{/literal}{$_path|escape:'htmlall':'UTF-8'}{literal}ajax.php',
data: 'installmentpayment_type=' + $(el.target).val(),
success: function(data) {
if(parseInt($(el.target).val()) === 0)
$('#box_installment').hide();
else
$('#box_installment').show();
$('#HOOK_PAYMENT').html(data);
}
});
setTimeout(function(){
window.location.reload();
},2000);
});
</script>
{/literal}
{/if}

View File

@@ -0,0 +1,128 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
{if $acompte_chose == 0}
<div class="box">
<p>{l s='you want to pay a deposit or the total?' mod='installmentpayment'}</p>
<div class="form-group">
<label>{l s='Type payment :' mod='installmentpayment'}</label>
<select name="installmentpayment" id="installmentpayment_select">
<option value="0" {if $installmentpayment_type == 0}selected{/if}>{l s='Total' mod='installmentpayment'}</option>
<option value="1" {if $installmentpayment_type == 1}selected{/if}>{l s='A deposit' mod='installmentpayment'}</option>
</select>
</div>
</div>
{/if}
<div class='box' id='box_installment'>
{l s='Please select below your means of payment to pay %s deposit.' sprintf=[$depositPrice] mod='installmentpayment'}</div>
{if $acompte_chose == 0}
{literal}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
var depositPrice = "{/literal}{$depositPrice|escape:'htmlall':'UTF-8'}{literal}";
var TotalPrice = "{/literal}{$TotalPrice|escape:'htmlall':'UTF-8'}{literal}";
if(($("#installmentpayment_select").val()) == 0){
$('#box_installment').hide();
$('.payment-options .js-additional-information').each(function() {
var text = $(this).html();
var depositPrice = "{/literal}{$depositPrice|escape:'htmlall':'UTF-8'}{literal}";
var TotalPrice = "{/literal}{$TotalPrice|escape:'htmlall':'UTF-8'}{literal}";
text = text.replace(',', '.');
text = text.replace(depositPrice, TotalPrice);
text = text.replace('.', ',');
$(this).html(text);
});
}
else
{
$('.payment-options .js-additional-information').each(function() {
var text = $(this).html();
var depositPrice = "{/literal}{$depositPrice|escape:'htmlall':'UTF-8'}{literal}";
var TotalPrice = "{/literal}{$TotalPrice|escape:'htmlall':'UTF-8'}{literal}";
text = text.replace(',', '.');
text = text.replace(TotalPrice, depositPrice);
text = text.replace('.', ',');
$(this).html(text);
});
}
});
$('#installmentpayment_select').on('change', function(el) {
$.ajax({
url: "{/literal}{$_path|escape:'htmlall':'UTF-8'}{literal}ajax.php",
data: 'installmentpayment_type=' + $(el.target).val(),
success: function(data) {
if(parseInt($(el.target).val()) === 0){
$('#box_installment').hide();
$('.payment-options .js-additional-information').each(function() {
var text = $(this).html();
var depositPrice = "{/literal}{$depositPrice|escape:'htmlall':'UTF-8'}{literal}";
var a = localStorage.setItem('favoriteflavor',{/literal}{$depositPrice|escape:'htmlall':'UTF-8'}{literal});
// console.log(a);
var TotalPrice = "{/literal}{$TotalPrice|escape:'htmlall':'UTF-8'}{literal}";
text = text.replace(',', '.');
text = text.replace(depositPrice, TotalPrice);
text = text.replace('.', ',');
if(TotalPrice > 0){
var abc = parseFloat(TotalPrice);
abc = abc.toFixed(abc.toFixed(2))*100;
// $('input[name="AMOUNT"]').val(abc);
}
$(this).html(text);
});
}
else{
$('.payment-options .js-additional-information').each(function() {
var text = $(this).html();
var depositPrice = "{/literal}{$depositPrice|escape:'htmlall':'UTF-8'}{literal}";
var TotalPrice = "{/literal}{$TotalPrice|escape:'htmlall':'UTF-8'}{literal}";
text = text.replace(',', '.');
text = text.replace(TotalPrice, depositPrice);
text = text.replace('.', ',');
if(depositPrice > 0){
var abc = parseFloat(depositPrice);
abc = abc.toFixed(abc.toFixed(2))*100;
// $('input[name="AMOUNT"]').val(abc);
}
$(this).html(text);
});
$('#box_installment').show();
$('#HOOK_PAYMENT').html(data);
}
}
});
setTimeout(function(){
window.location.reload();
},2000);
});
</script>
{/literal}
{/if}

View File

@@ -0,0 +1,35 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
{if $acompte_chose == 0}
{literal}
<script>
$(document).ready(function() {
if(($("#installmentpayment_select").val()) == 0)
$('#box_installment').hide();
$("#installmentpayment_select").change(function(el) {
$.ajax({
url: '{/literal}{$_path|escape:'htmlall':'UTF-8'}{literal}ajax.php',
data: 'installmentpayment_type=' + $(el.target).val(),
success: function(data) {
location.reload();
if(parseInt($(el.target).val()) === 0)
$('#box_installment').hide();
else
$('#box_installment').show();
//$('.payment-options').html(data);
}
});
});
});
</script>
{/literal}
{/if}

View File

@@ -0,0 +1,38 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
</td></tr></tbody></table></td></tr>
<tr class="conf_body">
<td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0">
<table class="table" style="width:100%;border-collapse:collapse">
<tr>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
<td align="right" style="color:#333;padding:0">
<font size="2" face="Open-sans, sans-serif" color="#555454">
<strong>{$title}</strong>
</font>
</td>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
</tr>
</table>
</td>
<td bgcolor="#f8f8f8" colspan="4" style="border:1px solid #D6D4D4;color:#333;padding:7px 0">
<table class="table" style="width:100%;border-collapse:collapse">
<tr>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
<td align="right" style="color:#333;padding:0">
<font size="4" face="Open-sans, sans-serif" color="#555454"> {$totalpay}
</font>
</td>
<td width="10" style="color:#333;padding:0">&nbsp;</td>
</tr>
</table>
</td>
</tr>

View File

@@ -0,0 +1,232 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
<table id="total-tab" width="100%">
<tr>
<td class="grey" width="70%">
{l s='Total Products' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$footer.products_before_discounts_tax_excl}
</td>
</tr>
{if !$order->isVirtual()}
<tr>
<td class="grey" width="70%">
{l s='Shipping Cost' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{if $footer.shipping_tax_excl > 0}
{displayPrice currency=$order->id_currency price=$footer.shipping_tax_excl}
{else}
{l s='Free Shipping' mod='installmentpayment'}
{/if}
</td>
</tr>
{/if}
{if $footer.product_discounts_tax_excl > 0}
<tr>
<td class="grey" width="70%">
{l s='Total Discounts' mod='installmentpayment'}
</td>
<td class="white" width="30%">
- {displayPrice currency=$order->id_currency price=$footer.product_discounts_tax_excl}
</td>
</tr>
{/if}
{if !$order->isVirtual()}
<tr>
<td class="grey" width="70%">
{l s='Shipping Cost' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{if $footer.shipping_tax_excl > 0}
{displayPrice currency=$order->id_currency price=$footer.shipping_tax_excl}
{else}
{l s='Free Shipping' mod='installmentpayment'}
{/if}
</td>
</tr>
{/if}
{if $footer.wrapping_tax_excl > 0}
<tr>
<td class="grey">
{l s='Wrapping Cost' mod='installmentpayment'}
</td>
<td class="white">{displayPrice currency=$order->id_currency price=$footer.wrapping_tax_excl}</td>
</tr>
{/if}
<tr class="bold">
<td class="grey">
{l s='Total (Tax excl.)' mod='installmentpayment'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_excl}
</td>
</tr>
{if $footer.total_taxes > 0}
<tr class="bold">
<td class="grey">
{l s='Total Tax' mod='installmentpayment'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$footer.total_taxes}
</td>
</tr>
{/if}
<tr class="bold big">
<td class="grey">
{l s='Total' mod='installmentpayment'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_incl}
</td>
</tr>
{if isset($rest) && $rest>0}
<tr>
<td class="grey" width="70%">
{l s='Total Paid' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$paid}
</td>
</tr>
<tr>
<td class="grey" width="70%">
{l s='Remains to pay' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$rest}
</td>
</tr>
{/if}
</table>

View File

@@ -0,0 +1,224 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
<table id="total-tab" width="100%">
<tr>
<td class="grey" width="70%">
{l s='Total Products' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$footer.products_before_discounts_tax_excl}
</td>
</tr>
{if !$order->isVirtual()}
<tr>
<td class="grey" width="70%">
{l s='Shipping Cost' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{if $footer.shipping_tax_excl > 0}
{displayPrice currency=$order->id_currency price=$footer.shipping_tax_excl}
{else}
{l s='Free Shipping' pdf=true mod='installmentpayment'}
{/if}
</td>
</tr>
{/if}
{if $footer.product_discounts_tax_excl > 0}
<!--<tr>
<td class="grey" width="70%">
{l s='Total Discounts' mod='installmentpayment'}
</td>
<td class="white" width="30%">
- {displayPrice currency=$order->id_currency price=$footer.product_discounts_tax_excl}
</td>
</tr>-->
{/if}
{if !$order->isVirtual()}
{if !isset($rest) || $rest == 0}
<tr class="bold">
<td class="grey" width="70%">
{l s='Total (Tax excl.)' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_excl}
</td>
</tr>
{/if}
{/if}
{if $footer.wrapping_tax_excl > 0}
<tr>
<td class="grey">
{l s='Wrapping Cost' mod='installmentpayment'}
</td>
<td class="white">{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_incl}</td>
</tr>
{/if}
{if $order->total_paid_tax_incl-$order->total_paid_tax_excl > 0}
<tr class="bold">
<td class="grey">
{l s='Total Tax' mod='installmentpayment'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$order->total_paid_tax_incl-$order->total_paid_tax_excl}
</td>
</tr>
{/if}
<tr class="bold big">
<td class="grey">
{l s='Total TTC' mod='installmentpayment'}
</td>
<td class="white">
{if isset($rest) && $rest>0}
{displayPrice currency=$order->id_currency price=$rest + $paid}
{else}
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_incl}
{/if}
</td>
</tr>
{if isset($rest) && $rest>0}
<tr>
<td class="grey" width="70%">
{l s='Total déjà payé' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$paid}
</td>
</tr>
<tr>
<td class="grey" width="70%">
{l s='Reste à payer' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$rest}
</td>
</tr>
{/if}
</table>

View File

@@ -0,0 +1,224 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
<table id="total-tab" width="100%">
<tr>
<td class="grey" width="70%">
{l s='Total Products' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$footer.products_before_discounts_tax_excl}
</td>
</tr>
{if !$order->isVirtual()}
<tr>
<td class="grey" width="70%">
{l s='Shipping Cost' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{if $footer.shipping_tax_excl > 0}
{displayPrice currency=$order->id_currency price=$footer.shipping_tax_excl}
{else}
{l s='Free Shipping' pdf=true mod='installmentpayment'}
{/if}
</td>
</tr>
{/if}
{if $footer.product_discounts_tax_excl > 0}
<!--<tr>
<td class="grey" width="70%">
{l s='Total Discounts' mod='installmentpayment'}
</td>
<td class="white" width="30%">
- {displayPrice currency=$order->id_currency price=$footer.product_discounts_tax_excl}
</td>
</tr>-->
{/if}
{if !$order->isVirtual()}
{if !isset($rest) || $rest == 0}
<tr class="bold">
<td class="grey" width="70%">
{l s='Total (Tax excl.)' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_excl}
</td>
</tr>
{/if}
{/if}
{if $footer.wrapping_tax_excl > 0}
<tr>
<td class="grey">
{l s='Wrapping Cost' mod='installmentpayment'}
</td>
<td class="white">{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_incl}</td>
</tr>
{/if}
{if $order->total_products_wt-$order->total_products > 0}
<tr class="bold">
<td class="grey">
{l s='Total Tax' mod='installmentpayment'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$order->total_products_wt-$order->total_products}
</td>
</tr>
{/if}
<tr class="bold big">
<td class="grey">
{l s='Total TTC' mod='installmentpayment'}
</td>
<td class="white">
{if isset($rest) && $rest>0}
{displayPrice currency=$order->id_currency price=$rest + $paid}
{else}
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_incl}
{/if}
</td>
</tr>
{if isset($rest) && $rest>0}
<tr>
<td class="grey" width="70%">
{l s='Total déjà payé' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$paid}
</td>
</tr>
<tr>
<td class="grey" width="70%">
{l s='Reste à payer' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$rest}
</td>
</tr>
{/if}
</table>

View File

@@ -0,0 +1,21 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
<table style="width: 100%">
<tr style="line-height:5px;">
<td style="width: 85%; text-align: right; font-weight: bold">{l s='Already payed' mod='installmentpayment'}</td>
<td style="width: 15%; text-align: right;">{$payer|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr style="line-height:5px;">
<td style="width: 85%; text-align: right; font-weight: bold">{l s='Left to pay' mod='installmentpayment'}</td>
<td style="width: 15%; text-align: right;">{$rest|escape:'htmlall':'UTF-8'}</td>
</tr>
</table>

View File

@@ -0,0 +1,29 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
{if isset($installment.state)}
<h3 class="page-heading">{l s='Installment payment' mod='installmentpayment'}</h3>
<div class="table_block table-responsive">
<table class="table table-bordered">
<tr>
<th>{l s='Paid' mod='installmentpayment'}</th>
<th>{l s='Rest' mod='installmentpayment'}</th>
<th>{l s='Total' mod='installmentpayment'}</th>
</tr>
<tr>
<td> {$installment.payer|escape:'htmlall':'UTF-8'}</td>
<td> {$installment.rest|escape:'htmlall':'UTF-8'}</td>
<td> {$installment.total|escape:'htmlall':'UTF-8'}</td>
</td>
</tr>
</table>
</div>
{/if}

View File

@@ -0,0 +1,69 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
{if isset($installment.total)}
<div class="col-lg-6">
<!-- Customer informations -->
<div class="panel">
<div class="panel-heading">
<i class="icon-dollar"></i>
{l s='Installment payment' mod='installmentpayment'}
</div>
{if $installment.state==0}
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>{l s='Paid' mod='installmentpayment'}</th>
<th>{l s='rest' mod='installmentpayment'}</th>
<th>{l s='Total' mod='installmentpayment'}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{number_format($installment.payer,2)|escape:'htmlall':'UTF-8'}</td>
<td>{number_format($installment.rest,2)|escape:'htmlall':'UTF-8'}</td>
<td>{number_format($installment.total,2)|escape:'htmlall':'UTF-8'}</td>
</tr>
</tbody>
</table>
</div>
{if $message}
<div class="alert alert-success"><strong>{l s='Email sent successfully' mod='installmentpayment'}</strong>
</div>
{/if}
{if $installment.rest >0}
<br>
<div class="row">
<div class="col-xs-8">
<form action="" method="post" class="form-horizontal">
<input type="hidden" value="{$installment.rest|escape:'htmlall':'UTF-8'}" name="installmentpayment"/>
<button type="submit" class="btn btn-default pull-right col-lg-8" name="installmentclaim">
<i class="icon-money"></i> {l s='Claim' mod='installmentpayment'}
</button>
<br style="clear: both;">
</form>
</div>
</div>
{/if}
{/if}
</div>
</div>
{/if}

View File

@@ -0,0 +1,12 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
{$HOOK_PAYMENT2|escape:'htmlall':'UTF-8'}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2012 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-2012 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;

View File

@@ -0,0 +1,21 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
<table id="tax-tab"> <tbody>
<tr><td>{l s='Installment on order no.' mod='installmentpayment'} {$order->id} : {assign var = "priceht" value = ($paid/((20/100)+1))} {displayPrice currency=$order->id_currency price=$priceht}</td></tr></tbody></table>

View File

@@ -0,0 +1,20 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}

View File

@@ -0,0 +1,55 @@
{**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 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:
* https://opensource.org/licenses/OSL-3.0
* 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-2018 PrestaShop SA
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<table id="summary-tab" width="100%">
<tr>
<th class="header small" valign="middle">{l s='Invoice Number' d='Shop.Pdf' pdf='true'}</th>
{if $dateforpayment}
<th class="header small" valign="middle">{l s='Date of balanced payment' d='Shop.Pdf' pdf='true'}</th>
{else}
<th class="header small" valign="middle">{l s='Invoice Date' d='Shop.Pdf' pdf='true'}</th>
{/if}
<th class="header small" valign="middle">{l s='Order Reference' d='Shop.Pdf' pdf='true'}</th>
<th class="header small" valign="middle">{l s='Order date' d='Shop.Pdf' pdf='true'}</th>
{if $addresses.invoice->vat_number}
<th class="header small" valign="middle">{l s='VAT Number' d='Shop.Pdf' pdf='true'}</th>
{/if}
</tr>
<tr>
<td class="center small white">{$title|escape:'html':'UTF-8'}</td>
{if $dateforpayment}
<td class="center small white">{$dateforpayment}</td>
{else}
<td class="center small white">{dateFormat date=$order->invoice_date full=0}</td>
{/if}
<td class="center small white">{$order->getUniqReference()}</td>
<td class="center small white">{dateFormat date=$order->date_add full=0}</td>
{if $addresses.invoice->vat_number}
<td class="center small white">
{$addresses.invoice->vat_number}
</td>
{/if}
</tr>
</table>

View File

@@ -0,0 +1,81 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
<table id="tax-tab" width="100%">
<thead>
<tr>
<th class="header small">{l s='Tax Detail' mod='installmentpayment'}</th>
<th class="header small">{l s='Tax Rate' mod='installmentpayment'}</th>
{if $display_tax_bases_in_breakdowns}
<th class="header small">{l s='Base price' mod='installmentpayment'}</th>
{/if}
<th class="header-right small">{l s='Total Tax' mod='installmentpayment'}</th>
</tr>
</thead>
<tbody>
<tr>
<td class="white">
{l s='Installment' mod='installmentpayment'}
</td>
<td class="center white">
20 %
</td>
{if $display_tax_bases_in_breakdowns}
<td class="right white">
{assign var = "priceht" value = ($paid/((20/100)+1))}
{displayPrice currency=$order->id_currency price=$priceht}
</td>
{/if}
<td class="right white">
{displayPrice currency=$order->id_currency price=$paid-($paid/((20/100)+1))}
</td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,83 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
<table id="tax-tab" width="100%">
<thead>
<tr>
<th class="header small">{l s='Tax Detail' mod='installmentpayment'}</th>
<th class="header small">{l s='Tax Rate' mod='installmentpayment'}</th>
{if $display_tax_bases_in_breakdowns}
<th class="header small">{l s='Base price' mod='installmentpayment'}</th>
{/if}
<th class="header-right small">{l s='Total Tax' mod='installmentpayment'}</th>
</tr>
</thead>
<tbody>
<tr>
<td class="white">
{l s='Installment' mod='installmentpayment'}
</td>
<td class="center white">
20 %
</td>
{if $display_tax_bases_in_breakdowns}
<td class="right white">
{assign var = "priceht" value = ($paid/((20/100)+1))}
{displayPrice currency=$order->id_currency price=$priceht}
</td>
{/if}
<td class="right white">
{displayPrice currency=$order->id_currency price=$paid-($paid/((20/100)+1))}
</td>
</tr>
</tbody>
</table>

View File

@@ -0,0 +1,178 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
<table id="total-tab" width="100%">
{*<tr>
<td class="grey" width="70%">
{l s='Total Products' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$footer.products_before_discounts_tax_excl}
</td>
</tr>*}
{if $footer.product_discounts_tax_excl > 0}
<tr>
<td class="grey" width="70%">
{l s='Total Discounts' mod='installmentpayment'}
</td>
<td class="white" width="30%">
- {displayPrice currency=$order->id_currency price=$footer.product_discounts_tax_excl}
</td>
</tr>
{/if}
{if $footer.wrapping_tax_excl > 0}
<tr>
<td class="grey">
{l s='Wrapping Cost' mod='installmentpayment'}
</td>
<td class="white">{displayPrice currency=$order->id_currency price=$footer.wrapping_tax_excl}</td>
</tr>
{/if}
{*<tr class="bold">
<td class="grey" width="70%">
{l s='Total (Tax excl.)' mod='installmentpayment'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_excl}
</td>
</tr>*}
{if $footer.total_taxes > 0}
<tr class="bold">
<td class="grey" width="70%">
{l s='Total Tax' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$footer.total_taxes}
</td>
</tr>
{/if}
<tr class="bold big">
<td class="grey">
{l s='Total' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_incl}
</td>
</tr>
{if isset($rest) && $rest>0}
<tr>
<td class="grey" width="70%">
{l s='Total Paid' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$paid}
</td>
</tr>
<tr>
<td class="grey" width="70%">
{l s='Remains to pay' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$rest}
</td>
</tr>
{/if}
</table>

View File

@@ -0,0 +1,178 @@
{*
* Allows you to set a percentage payment for orders
*
* @category modules
*
* @author Magavenue <contact@magavenue.com>
* @copyright Magavenue
* @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0
* @note If you want to customize the module, contact us at contact@magavenue.com
*}
<table id="total-tab" width="100%">
{*<tr>
<td class="grey" width="70%">
{l s='Total Products' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$footer.products_before_discounts_tax_excl}
</td>
</tr>*}
{if $footer.product_discounts_tax_excl > 0}
<tr>
<td class="grey" width="70%">
{l s='Total Discounts' mod='installmentpayment'}
</td>
<td class="white" width="30%">
- {displayPrice currency=$order->id_currency price=$footer.product_discounts_tax_excl}
</td>
</tr>
{/if}
{if $footer.wrapping_tax_excl > 0}
<tr>
<td class="grey">
{l s='Wrapping Cost' mod='installmentpayment'}
</td>
<td class="white">{displayPrice currency=$order->id_currency price=$footer.wrapping_tax_excl}</td>
</tr>
{/if}
{*<tr class="bold">
<td class="grey">
{l s='Total (Tax excl.)' mod='installmentpayment'}
</td>
<td class="white">
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_excl}
</td>
</tr>*}
{if $footer.total_taxes > 0}
<tr class="bold">
<td class="grey" width="70%">
{l s='Total Tax' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$footer.total_taxes}
</td>
</tr>
{/if}
<tr class="bold big">
<td class="grey" width="70%">
{l s='Total' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_incl}
</td>
</tr>
{if isset($rest) && $rest>0}
<tr>
<td class="grey" width="70%">
{l s='Total Paid' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$paid}
</td>
</tr>
<tr>
<td class="grey" width="70%">
{l s='Remains to pay' mod='installmentpayment'}
</td>
<td class="white" width="30%">
{displayPrice currency=$order->id_currency price=$rest}
</td>
</tr>
{/if}
</table>