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,172 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<!doctype html>
<html lang="{$language.iso_code|escape:'htmlall':'UTF-8'}">
<head>
{block name='head'}
{include file='_partials/head.tpl'}
{/block}
</head>
<body id="checkout" class="{$page.body_classes|classnames}">
{hook h='displayAfterBodyOpeningTag'}
<header id="header">
{block name='header'}
{include file='checkout/_partials/header.tpl'}
{/block}
</header>
{block name='notifications'}
{include file='_partials/notifications.tpl'}
{/block}
<section id="wrapper" style="min-height:500px;">
<div class="container">
{block name='content'}
<section id="content">
<div class="row">
<div class="payment-options col-md-8">
<p>{l s='Select below, your mean of payment for payed the balance of your order ' mod='installmentpayment'}{$reference|escape:'htmlall':'UTF-8'}</p>
{foreach from=$payment_options item="module_options"}
{foreach from=$module_options item="option"}
<div style="margin-bottom:20px;">
<div id="{$option.id|escape:'htmlall':'UTF-8'}-container" class="payment-option clearfix">
{* This is the way an option should be selected when Javascript is enabled *}
<span class="custom-radio pull-xs-left">
<input
class="ps-shown-by-js {if $option.binary} binary {/if}"
id="{$option.id|escape:'htmlall':'UTF-8'}"
data-module-name="{$option.module_name|escape:'htmlall':'UTF-8'}"
name="payment-option"
type="radio"
required
{if $selected_payment_option == $option.id} checked {/if}
>
<span></span>
</span>
{* This is the way an option should be selected when Javascript is disabled *}
<form method="GET" class="ps-hidden-by-js">
{if $option.id === $selected_payment_option}
{l s='Selected' d='Shop.Theme.Checkout' mod='installmentpayment'}
{else}
<button class="ps-hidden-by-js" type="submit" name="select_payment_option" value="{$option.id|escape:'htmlall':'UTF-8'}">
{l s='Choose' d='Shop.Theme.Actions' mod='installmentpayment'}
</button>
{/if}
</form>
<label for="{$option.id|escape:'htmlall':'UTF-8'}">
<span>{$option.call_to_action_text|escape:'htmlall':'UTF-8'}</span>
{if $option.logo}
<img src="{$option.logo|escape:'htmlall':'UTF-8'}">
{/if}
</label>
</div>
</div>
{if $option.additionalInformation}
<div
id="{$option.id|escape:'htmlall':'UTF-8'}-additional-information"
class="js-additional-information definition-list additional-information{if $option.id != $selected_payment_option} ps-hidden {/if}"
>
{$option.additionalInformation nofilter}{* HTML comment, no escape necessary *}
</div>
{/if}
<div
id="pay-with-{$option.id|escape:'htmlall':'UTF-8'}-form"
class="js-payment-option-form {if $option.id != $selected_payment_option} ps-hidden {/if}"
>
{if $option.form}
{$option.form|escape:'htmlall':'UTF-8'}
{else}
<form id="payment-form" method="POST" action="{$option.action|escape:'htmlall':'UTF-8'}">
{foreach from=$option.inputs item=input}
<input type="{$input.type|escape:'htmlall':'UTF-8'}" name="{$input.name|escape:'htmlall':'UTF-8'}" value="{$input.value|escape:'htmlall':'UTF-8'}">
{/foreach}
<button style="display:none" id="pay-with-{$option.id|escape:'htmlall':'UTF-8'}" type="submit"></button>
</form>
{/if}
</div>
{/foreach}
{foreachelse}
<p class="alert alert-danger">{l s='Unfortunately, there are no payment method available.' d='Shop.Theme.Checkout' mod='installmentpayment'}</p>
{/foreach}
</div>
<div class="col-md-4">
{include file='checkout/_partials/cart-summary.tpl' cart = $cart}
{hook h='displayReassurance'}
</div>
<div class="ps-shown-by-js col-md-12">
{literal}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(function(){
$('.ps-shown-by-js').on('change', function(){
$('.main-button').attr('id', $(this).attr('id'));
});
$('.main-button').on('click', function(){
var buttonpay = $(this).attr('id');
$('#pay-with-'+buttonpay).click();
});
});
</script>
{/literal}
<button type="submit" {if !$selected_payment_option} disabled {/if} class="btn btn-primary center-block main-button">
{l s='Order with an obligation to pay' d='Shop.Theme.Checkout' mod='installmentpayment'}
</button>
</div>
</div>
</div>
</section>
{/block}
</div>
</section>
<footer id="footer">
{block name='footer'}
{include file='checkout/_partials/footer.tpl'}
{/block}
</footer>
{block name='javascript_bottom'}
{include file="_partials/javascript.tpl" javascript=$javascript.bottom}
{/block}
{hook h='displayBeforeBodyClosingTag'}
</body>
</html>

View File

@@ -0,0 +1,61 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='customer/_partials/address-form.tpl'}
{block name='form_field'}
{if $field.name eq "alias"}
{* we don't ask for alias here *}
{else}
{$smarty.block.parent|escape:'htmlall':'UTF-8'}
{/if}
{/block}
{block name='form_fields' append}
<input type="hidden" name="saveAddress" value="{$type|escape:'htmlall':'UTF-8'}">
{if $type === "delivery"}
<div class="form-group row">
<div class="col-md-9 col-md-offset-3">
<input name = "use_same_address" type = "checkbox" value = "1" {if $use_same_address} checked {/if}>
<label>{l s='Use this address for invoice too' d='Shop.Theme.Checkout' mod='installmentpayment'}</label>
</div>
</div>
{/if}
{/block}
{block name='form_buttons'}
{if !$form_has_continue_button}
<button type="submit" class="btn btn-primary pull-xs-right">{l s='Save' d='Shop.Theme.Actions' mod='installmentpayment'}</button>
<a class="js-cancel-address cancel-address pull-xs-right" href="?cancelAddress={$type|escape:'htmlall':'UTF-8'}">{l s='Cancel' d='Shop.Theme.Actions' mod='installmentpayment'}</a>
{else}
<form>
<button type="submit" class="continue btn btn-primary pull-xs-right" name="confirm-addresses" value="1">
{l s='Continue' d='Shop.Theme.Actions' mod='installmentpayment'}
</button>
{if $customer.addresses|count > 0}
<a class="js-cancel-address cancel-address pull-xs-right" href="?cancelAddress={$type|escape:'htmlall':'UTF-8'}">{l s='Cancel' d='Shop.Theme.Actions' mod='installmentpayment'}</a>
{/if}
</form>
{/if}
{/block}

View File

@@ -0,0 +1,70 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{foreach $addresses as $address}
<article
class="address-item{if $address.id == $selected} selected{/if}"
id="{$name|classname}-address-{$address.id|escape:'htmlall':'UTF-8'}"
>
<header class="h4">
<label class="radio-block">
<span class="custom-radio">
<input
type="radio"
name="{$name|escape:'htmlall':'UTF-8'}"
value="{$address.id|escape:'htmlall':'UTF-8'}"
{if $address.id == $selected}checked{/if}
>
<span></span>
</span>
<span class="address-alias h4">{$address.alias|escape:'htmlall':'UTF-8'}</span>
<div class="address">{$address.formatted nofilter|escape:'htmlall':'UTF-8'}</div>
</label>
</header>
<hr>
<footer class="address-footer">
{if $interactive}
<a
class="edit-address text-muted"
data-link-action="edit-address"
href="{url entity='order' params=['id_address' => $address.id, 'editAddress' => $type, 'token' => $token]}"
>
<i class="material-icons edit">&#xE254;</i>{l s='Edit' d='Shop.Theme.Actions' mod='installmentpayment'}
</a>
<a
class="delete-address text-muted"
data-link-action="delete-address"
href="{url entity='order' params=['id_address' => $address.id, 'deleteAddress' => true, 'token' => $token]}"
>
<i class="material-icons delete">&#xE872;</i>{l s='Delete' d='Shop.Theme.Actions' mod='installmentpayment'}
</a>
{/if}
</footer>
</article>
{/foreach}
{if $interactive}
<p>
<button class="ps-hidden-by-js form-control-submit center-block" type="submit">{l s='Save' d='Shop.Theme.Actions' mod='installmentpayment'}</button>
</p>
{/if}

View File

@@ -0,0 +1,39 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="checkout cart-detailed-actions card-block">
{if $cart.minimalPurchaseRequired}
<div class="alert alert-warning" role="alert">
{$cart.minimalPurchaseRequired|escape:'htmlall':'UTF-8'}
</div>
<div class="text-xs-center">
<button type="button" class="btn btn-primary disabled" disabled>{l s='Checkout' d='Shop.Theme.Actions' mod='installmentpayment'}</button>
</div>
{else}
<div class="text-xs-center">
<a href="{$urls.pages.order|escape:'htmlall':'UTF-8'}" class="btn btn-primary">{l s='Checkout' d='Shop.Theme.Actions' mod='installmentpayment'}</a>
{hook h='displayExpressCheckout'}
</div>
{/if}
</div>

View File

@@ -0,0 +1,153 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="product-line-grid">
<!-- product left content: image-->
<div class="product-line-grid-left col-md-3 col-xs-4">
<span class="product-image media-middle">
<img src="{$product.cover.bySize.cart_default.url|escape:'htmlall':'UTF-8'}" alt="{$product.name|escape:'quotes'}">
</span>
</div>
<!-- product left body: description -->
<div class="product-line-grid-body col-md-4 col-xs-8">
<div class="product-line-info">
<a class="label" href="{$product.url|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'}</a>
</div>
<div class="product-line-info">
<span class="value">{$product.price|escape:'htmlall':'UTF-8'}</span>
{if $product.unit_price_full}
<div class="unit-price-cart">{$product.unit_price_full|escape:'htmlall':'UTF-8'}</div>
{/if}
</div>
<br/>
{foreach from=$product.attributes key="attribute" item="value"}
<div class="product-line-info">
<span class="label">{$attribute|escape:'htmlall':'UTF-8'}:</span>
<span class="value">{$value|escape:'htmlall':'UTF-8'}</span>
</div>
{/foreach}
{if $product.customizations|count}
<br/>
{foreach from=$product.customizations item="customization"}
<a href="#" data-toggle="modal" data-target="#product-customizations-modal-{$customization.id_customization|escape:'htmlall':'UTF-8'}">{l s='Product customization' d='Shop.Theme.Catalog' mod='installmentpayment'}</a>
<div class="modal fade customization-modal" id="product-customizations-modal-{$customization.id_customization|escape:'htmlall':'UTF-8'}" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title">{l s='Product customization' d='Shop.Theme.Catalog' mod='installmentpayment'}</h4>
</div>
<div class="modal-body">
{foreach from=$customization.fields item="field"}
<div class="product-customization-line row">
<div class="col-sm-3 col-xs-4 label">
{$field.label|escape:'htmlall':'UTF-8'}
</div>
<div class="col-sm-9 col-xs-8 value">
{if $field.type == 'text'}
{if (int)$field.id_module}
{$field.text nofilter|escape:'htmlall':'UTF-8'}
{else}
{$field.text|escape:'htmlall':'UTF-8'}
{/if}
{elseif $field.type == 'image'}
<img src="{$field.image.small.url|escape:'htmlall':'UTF-8'}">
{/if}
</div>
</div>
{/foreach}
</div>
</div>
</div>
</div>
{/foreach}
{/if}
</div>
<!-- product left body: description -->
<div class="product-line-grid-right product-line-actions col-md-5 col-xs-12">
<div class="row">
<div class="col-xs-4 hidden-md-up"></div>
<div class="col-md-10 col-xs-6">
<div class="row">
<div class="col-md-6 col-xs-6 qty">
{if isset($product.is_gift) && $product.is_gift}
<span class="gift-quantity">{$product.quantity|escape:'htmlall':'UTF-8'}</span>
{else}
<input
class="js-cart-line-product-quantity"
data-down-url="{$product.down_quantity_url|escape:'htmlall':'UTF-8'}"
data-up-url="{$product.up_quantity_url|escape:'htmlall':'UTF-8'}"
data-update-url="{$product.update_quantity_url|escape:'htmlall':'UTF-8'}"
data-product-id="{$product.id_product|escape:'htmlall':'UTF-8'}"
type="text"
value="{$product.quantity|escape:'htmlall':'UTF-8'}"
name="product-quantity-spin"
min="{$product.minimal_quantity|escape:'htmlall':'UTF-8'}"
/>
{/if}
</div>
<div class="col-md-6 col-xs-2 price">
<span class="product-price">
<strong>
{if isset($product.is_gift) && $product.is_gift}
<span class="gift">{l s='Gift' d='Shop.Theme.Checkout' mod='installmentpayment'}</span>
{else}
{$product.total|escape:'htmlall':'UTF-8'}
{/if}
</strong>
</span>
</div>
</div>
</div>
<div class="col-md-2 col-xs-2 text-xs-right">
<div class="cart-line-product-actions ">
<a
class = "remove-from-cart"
rel = "nofollow"
href = "{$product.remove_from_cart_url|escape:'htmlall':'UTF-8'}"
data-link-action = "delete-from-cart"
data-id-product = "{$product.id_product|escape:'javascript'}"
data-id-product-attribute = "{$product.id_product_attribute|escape:'javascript'}"
data-id-customization = "{$product.id_customization|escape:'javascript'}"
>
{if !isset($product.is_gift) || !$product.is_gift}
<i class="material-icons pull-xs-left">delete</i>
{/if}
</a>
{hook h='displayCartExtraProductActions' product=$product}
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>

View File

@@ -0,0 +1,66 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="cart-detailed-totals">
<div class="card-block">
{foreach from=$cart.subtotals item="subtotal"}
{if $subtotal.value && $subtotal.type !== 'tax'}
<div class="cart-summary-line" id="cart-subtotal-{$subtotal.type|escape:'htmlall':'UTF-8'}">
<span class="label{if 'products' === $subtotal.type} js-subtotal{/if}">
{if 'products' == $subtotal.type}
{$cart.summary_string|escape:'htmlall':'UTF-8'}
{else}
{$subtotal.label|escape:'htmlall':'UTF-8'}
{/if}
</span>
<span class="value">{$subtotal.value|escape:'htmlall':'UTF-8'}</span>
{if $subtotal.type === 'shipping'}
<div><small class="value">{hook h='displayCheckoutSubtotalDetails' subtotal=$subtotal}</small></div>
{/if}
</div>
{/if}
{/foreach}
</div>
{block name='cart_voucher'}
{include file='checkout/_partials/cart-voucher.tpl'}
{/block}
<hr>
<div class="card-block">
<div class="cart-summary-line cart-total">
<span class="label">{$cart.totals.total.label|escape:'htmlall':'UTF-8'} {$cart.labels.tax_short|escape:'htmlall':'UTF-8'}</span>
<span class="value">{$cart.totals.total.value|escape:'htmlall':'UTF-8'}</span>
</div>
<div class="cart-summary-line">
<small class="label">{$cart.subtotals.tax.label|escape:'htmlall':'UTF-8'}</small>
<small class="value">{$cart.subtotals.tax.value|escape:'htmlall':'UTF-8'}</small>
</div>
</div>
<hr>
</div>

View File

@@ -0,0 +1,38 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="cart-overview js-cart" data-refresh-url="{url entity='cart' params=['ajax' => true, 'action' => 'refresh']}">
{if $cart.products}
<ul class="cart-items">
{foreach from=$cart.products item=product}
<li class="cart-item">{include file='checkout/_partials/cart-detailed-product-line.tpl' product=$product}</li>
{if $product.customizations|count >1}
<hr>
{/if}
{/foreach}
</ul>
{else}
<span class="no-items">{l s='There are no more items in your cart' d='Shop.Theme.Checkout' mod='installmentpayment'}</span>
{/if}
</div>

View File

@@ -0,0 +1,28 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="card-block cart-summary-line cart-summary-items-subtotal clearfix" id="items-subtotal">
<span class="label">{$cart.summary_string|escape:'htmlall':'UTF-8'}</span>
<span class="value">{$cart.subtotals.products.amount|escape:'htmlall':'UTF-8'}</span>
</div>

View File

@@ -0,0 +1,35 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="media-left">
<a href="{$product.url|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">
<img class="media-object" src="{$product.cover.small.url|escape:'htmlall':'UTF-8'}" alt="{$product.name|escape:'htmlall':'UTF-8'}">
</a>
</div>
<div class="media-body">
<span class="product-name">{$product.name|escape:'htmlall':'UTF-8'}</span>
<span class="product-quantity">x{$product.quantity|escape:'htmlall':'UTF-8'}</span>
<span class="product-price pull-xs-right">{$product.price|escape:'htmlall':'UTF-8'}</span>
{hook h='displayProductPriceBlock' product=$product type="unit_price"}
</div>

View File

@@ -0,0 +1,41 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="card-block cart-summary-totals">
{block name='cart_summary_total'}
<div class="cart-summary-line cart-total">
<span class="label">{$cart.totals.total.label|escape:'htmlall':'UTF-8'} {$cart.labels.tax_short|escape:'htmlall':'UTF-8'}</span>
<span class="value">{$cart.totals.total.value|escape:'htmlall':'UTF-8'}</span>
</div>
{/block}
{block name='cart_summary_tax'}
<div class="cart-summary-line">
<span class="label sub">{$cart.subtotals.tax.label|escape:'htmlall':'UTF-8'}</span>
<span class="value sub">{$cart.subtotals.tax.value|escape:'htmlall':'UTF-8'}</span>
</div>
{/block}
</div>

View File

@@ -0,0 +1,74 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<section id="js-checkout-summary" class="card js-cart" data-refresh-url="{$urls.pages.cart|escape:'htmlall':'UTF-8'}?ajax=1">
<div class="card-block">
{hook h='displayCheckoutSummaryTop'}
{block name='cart_summary_products'}
<div class="cart-summary-products">
<p>{$cart.summary_string|escape:'htmlall':'UTF-8'}</p>
<p>
<a href="#" data-toggle="collapse" data-target="#cart-summary-product-list">
{l s='show details' d='Shop.Theme.Actions' mod='installmentpayment'}
</a>
</p>
{block name='cart_summary_product_list'}
<div class="collapse" id="cart-summary-product-list">
<ul class="media-list">
{foreach from=$cart.products item=product}
<li class="media">{include file='checkout/_partials/cart-summary-product-line.tpl' product=$product}</li>
{/foreach}
</ul>
</div>
{/block}
</div>
{/block}
{block name='cart_summary_subtotals'}
{foreach from=$cart.subtotals item="subtotal"}
{if $subtotal && $subtotal.type !== 'tax'}
<div class="cart-summary-line cart-summary-subtotals" id="cart-subtotal-{$subtotal.type|escape:'htmlall':'UTF-8'}">
<span class="label">{$subtotal.label|escape:'htmlall':'UTF-8'}</span>
<span class="value">{$subtotal.value|escape:'htmlall':'UTF-8'}</span>
</div>
{/if}
{/foreach}
{/block}
</div>
{block name='cart_summary_voucher'}
{include file='checkout/_partials/cart-voucher.tpl'}
{/block}
<hr>
{block name='cart_summary_totals'}
{include file='checkout/_partials/cart-summary-totals.tpl' cart=$cart}
{/block}
</section>

View File

@@ -0,0 +1,71 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $cart.vouchers.allowed}
<div class="block-promo">
<div class="cart-voucher">
{if $cart.vouchers.added}
<ul class="promo-name card-block">
{foreach from=$cart.vouchers.added item=voucher}
<li class="cart-summary-line">
<span class="label">{$voucher.name|escape:'htmlall':'UTF-8'}</span>
<a href="{$voucher.delete_url|escape:'htmlall':'UTF-8'}" data-link-action="remove-voucher"><i class="material-icons">&#xE872;</i></a>
<div class="pull-xs-right">
{$voucher.reduction_formatted|escape:'htmlall':'UTF-8'}
</div>
</li>
{/foreach}
</ul>
{/if}
<p>
<a class="collapse-button promo-code-button" data-toggle="collapse" href="#promo-code" aria-expanded="false" aria-controls="promo-code">
{l s='Have a promo code?' d='Shop.Theme.Checkout' mod='installmentpayment'}
</a>
</p>
<div class="promo-code collapse{if $cart.discounts|count > 0} in{/if}" id="promo-code">
<form action="{$urls.pages.cart|escape:'htmlall':'UTF-8'}" data-link-action="add-voucher" method="post">
<input type="hidden" name="token" value="{$static_token|escape:'htmlall':'UTF-8'}">
<input type="hidden" name="addDiscount" value="1">
<input class="promo-input" type="text" name="discount_name" placeholder="{l s='Promo code' d='Shop.Theme.Checkout' mod='installmentpayment'}">
<button type="submit" class="btn btn-primary"><span>{l s='Add' d='Shop.Theme.Actions' mod='installmentpayment'}</span></button>
</form>
<div class="alert alert-danger js-error" role="alert">
<i class="material-icons">&#xE001;</i><span class="m-l-1 js-error-text"></span>
</div>
</div>
{if $cart.discounts|count > 0}
<p class="block-promo promo-highlighted">
{l s='Take advantage of our exclusive offers:' d='Shop.Theme.Actions' mod='installmentpayment'}
</p>
<ul class="js-discount card-block promo-discounts">
{foreach from=$cart.discounts item=discount}
<li class="cart-summary-line">
<span class="label"><span class="code">{$discount.code|escape:'htmlall':'UTF-8'}</span> - {$discount.name|escape:'htmlall':'UTF-8'}</span>
</li>
{/foreach}
</ul>
{/if}
</div>
</div>
{/if}

View File

@@ -0,0 +1,50 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends "customer/_partials/customer-form.tpl"}
{block "form_field"}
{if $field.name === 'password' and $guest_allowed}
<p>
<span class="font-weight-bold">{l s='Create an account' d='Shop.Theme.Checkout' mod='installmentpayment'}</span> <span class="font-italic">{l s='(optional)' d='Shop.Theme.Checkout' mod='installmentpayment'}</span>
<br>
<span class="text-muted">{l s='And save time on your next order!' d='Shop.Theme.Checkout' mod='installmentpayment'}</span>
</p>
{$smarty.block.parent|escape:'htmlall':'UTF-8'}
{else}
{$smarty.block.parent|escape:'htmlall':'UTF-8'}
{/if}
{/block}
{block "form_buttons"}
<button
class="continue btn btn-primary pull-xs-right"
name="continue"
data-link-action="register-new-customer"
type="submit"
value="1"
>
{l s='Continue' d='Shop.Theme.Actions' mod='installmentpayment'}
</button>
{/block}

View File

@@ -0,0 +1,25 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="text-xs-center"><i class="material-icons">&#xE90C;</i> 2016 - <strong>CLASSIC</strong> - {l s='Ecommerce software by' d='Shop.Theme' mod='installmentpayment'} <strong>PrestaShop<sup>TM</sup></strong></div>

View File

@@ -0,0 +1,73 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{block name='header_nav'}
<nav class="header-nav">
<div class="container">
<div class="row">
<div class="col-md-6 hidden-sm-down" id="_desktop_logo">
<a href="{$urls.base_url|escape:'htmlall':'UTF-8'}">
<img class="logo img-responsive" src="{$shop.logo|escape:'htmlall':'UTF-8'}" alt="{$shop.name|escape:'htmlall':'UTF-8'} {l s='logo' d='Shop.Theme' mod='installmentpayment'}">
</a>
</div>
<div class="col-md-6 text-xs-right hidden-sm-down">
{hook h='displayNav1'}
</div>
<div class="hidden-md-up text-xs-center mobile">
{hook h='displayNav2'}
<div class="pull-xs-left" id="menu-icon">
<i class="material-icons">&#xE5D2;</i>
</div>
<div class="pull-xs-right" id="_mobile_cart"></div>
<div class="pull-xs-right" id="_mobile_user_info"></div>
<div class="top-logo" id="_mobile_logo"></div>
<div class="clearfix"></div>
</div>
</div>
</div>
</nav>
{/block}
{block name='header_top'}
<div class="header-top hidden-md-up">
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="row">
{hook h='displayTop'}
<div class="clearfix"></div>
</div>
</div>
</div>
<div id="mobile_top_menu_wrapper" class="row hidden-md-up" style="display:none;">
<div class="js-top-menu mobile" id="_mobile_top_menu"></div>
<div class="js-top-menu-bottom">
<div id="_mobile_currency_selector"></div>
<div id="_mobile_language_selector"></div>
<div id="_mobile_contact_link"></div>
</div>
</div>
</div>
</div>
{/block}

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,37 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='customer/_partials/login-form.tpl'}
{block name='form_buttons'}
<button
class="continue btn btn-primary pull-xs-right"
name="continue"
data-link-action="sign-in"
type="submit"
value="1"
>
{l s='Continue' d='Shop.Theme.Actions' mod='installmentpayment'}
</button>
{/block}

View File

@@ -0,0 +1,114 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{block name='order-items-table-head'}
<div id="order-items" class="col-md-8">
<h3 class="card-title h3">{l s='Order items' d='Shop.Theme.Checkout' mod='installmentpayment'}</h3>
{/block}
<div class="order-confirmation-table">
<table class="table">
{foreach from=$products item=product}
<div class="order-line row">
<div class="col-sm-2 col-xs-3">
<span class="image">
<img src="{$product.cover.medium.url|escape:'htmlall':'UTF-8'}" />
</span>
</div>
<div class="col-sm-4 col-xs-9 details">
{if $add_product_link}<a href="{$product.url|escape:'htmlall':'UTF-8'}" target="_blank">{/if}
<span>{$product.name|escape:'htmlall':'UTF-8'}</span>
{if $add_product_link}</a>{/if}
{if $product.customizations|count}
{foreach from=$product.customizations item="customization"}
<div class="customizations">
<a href="#" data-toggle="modal" data-target="#product-customizations-modal-{$customization.id_customization|escape:'htmlall':'UTF-8'}">{l s='Product customization' d='Shop.Theme.Catalog' mod='installmentpayment'}</a>
</div>
<div class="modal fade customization-modal" id="product-customizations-modal-{$customization.id_customization|escape:'htmlall':'UTF-8'}" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title">{l s='Product customization' d='Shop.Theme.Catalog' mod='installmentpayment'}</h4>
</div>
<div class="modal-body">
{foreach from=$customization.fields item="field"}
<div class="product-customization-line row">
<div class="col-sm-3 col-xs-4 label">
{$field.label|escape:'htmlall':'UTF-8'}
</div>
<div class="col-sm-9 col-xs-8 value">
{if $field.type == 'text'}
{if (int)$field.id_module}
{$field.text nofilter|escape:'htmlall':'UTF-8'}
{else}
{$field.text|escape:'htmlall':'UTF-8'}
{/if}
{elseif $field.type == 'image'}
<img src="{$field.image.small.url|escape:'htmlall':'UTF-8'}">
{/if}
</div>
</div>
{/foreach}
</div>
</div>
</div>
</div>
{/foreach}
{/if}
{hook h='displayProductPriceBlock' product=$product type="unit_price"}
</div>
<div class="col-sm-6 col-xs-12 qty">
<div class="row">
<div class="col-xs-5 text-sm-right text-xs-left">{$product.price|escape:'htmlall':'UTF-8'}</div>
<div class="col-xs-2">{$product.quantity|escape:'htmlall':'UTF-8'}</div>
<div class="col-xs-5 text-xs-right bold">{$product.total|escape:'htmlall':'UTF-8'}</div>
</div>
</div>
</div>
{/foreach}
<hr />
<table>
{foreach $subtotals as $subtotal}
{if $subtotal.type !== 'tax'}
<tr>
<td>{$subtotal.label|escape:'htmlall':'UTF-8'}</td>
<td>{$subtotal.value|escape:'htmlall':'UTF-8'}</td>
</tr>
{/if}
{/foreach}
{if $subtotals.tax.label !== null}
<tr class="sub">
<td>{$subtotals.tax.label|escape:'htmlall':'UTF-8'}</td>
<td>{$subtotals.tax.value|escape:'htmlall':'UTF-8'}</td>
</tr>
{/if}
<tr class="font-weight-bold">
<td><span class="text-uppercase">{$totals.total.label|escape:'htmlall':'UTF-8'}</span> {$labels.tax_short|escape:'htmlall':'UTF-8'}</td>
<td>{$totals.total.value|escape:'htmlall':'UTF-8'}</td>
</tr>
</table>
</div>
</div>

View File

@@ -0,0 +1,37 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='checkout/_partials/order-confirmation-table.tpl'}
{block name='order-items-table-head'}
<div id="order-items" class="col-md-12">
<h3 class="card-title h3">
{if $products_count == 1}
{l s='%product_count% item in your cart' sprintf=['%product_count%' => $products_count] d='Shop.Theme.Checkout' mod='installmentpayment'}
{else}
{l s='%products_count% items in your cart' sprintf=['%products_count%' => $products_count] d='Shop.Theme.Checkout' mod='installmentpayment'}
{/if}
<a href="{url entity=cart params=['action' => 'show']}"><span class="step-edit"><i class="material-icons edit">mode_edit</i> edit</span></a>
</h3>
{/block}

View File

@@ -0,0 +1,103 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<section id="order-summary-content" class="page-content page-order-confirmation">
<div class="row">
<div class="col-md-12">
<h4 class="h4 black">{l s='Please check your order before payment' d='Shop.Theme.Checkout' mod='installmentpayment'}</h4>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h4 class="h4">
{l s='Addresses' d='Shop.Theme.Checkout' mod='installmentpayment'}
<span class="step-edit step-to-addresses js-edit-addresses"><i class="material-icons edit">mode_edit</i> edit</span>
</h4>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="card noshadow">
<div class="card-block">
<h4 class="h5 black addresshead">{l s='Your Delivery Address' d='Shop.Theme.Checkout' mod='installmentpayment'}</h4>
{$customer.addresses[$cart.id_address_delivery]['formatted'] nofilter|escape:'htmlall':'UTF-8'}
</div>
</div>
</div>
<div class="col-md-6">
<div class="card noshadow">
<div class="card-block">
<h4 class="h5 black addresshead">{l s='Your Invoice Address' d='Shop.Theme.Checkout' mod='installmentpayment'}</h4>
{$customer.addresses[$cart.id_address_invoice]['formatted'] nofilter|escape:'htmlall':'UTF-8'}
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h4 class="h4">
{l s='Shipping Method' d='Shop.Theme.Checkout' mod='installmentpayment'}
<span class="step-edit step-to-delivery js-edit-delivery"><i class="material-icons edit">mode_edit</i> edit</span>
</h4>
<div class="col-md-12 summary-selected-carrier">
<div class="row">
<div class="col-md-2">
<div class="logo-container">
{if $selected_delivery_option.logo}
<img src="{$selected_delivery_option.logo|escape:'htmlall':'UTF-8'}" alt="{$selected_delivery_option.name|escape:'htmlall':'UTF-8'}">
{else}
&nbsp;
{/if}
</div>
</div>
<div class="col-md-4">
<span class="carrier-name">{$selected_delivery_option.name|escape:'htmlall':'UTF-8'}</span>
</div>
<div class="col-md-4">
<span class="carrier-delay">{$selected_delivery_option.delay|escape:'htmlall':'UTF-8'}</span>
</div>
<div class="col-md-2">
<span class="carrier-price">{$selected_delivery_option.price|escape:'htmlall':'UTF-8'}</span>
</div>
</div>
</div>
</div>
</div>
<div class="row">
{block name='order_confirmation_table'}
{include file='checkout/_partials/order-final-summary-table.tpl'
products=$cart.products
products_count=$cart.products_count
subtotals=$cart.subtotals
totals=$cart.totals
labels=$cart.labels
add_product_link=true
}
{/block}
</div>
</section>

View File

@@ -0,0 +1,124 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='checkout/_partials/steps/checkout-step.tpl'}
{block name='step_content'}
<div class="js-address-form">
<form
method="POST"
action="{$urls.pages.order|escape:'htmlall':'UTF-8'}"
data-refresh-url="{url entity='order' params=['ajax' => 1, 'action' => 'addressForm']}"
>
{if !$use_same_address}
<h2 class="h4">{l s='Shipping Address' d='Shop.Theme.Checkout' mod='installmentpayment'}</h2>
{/if}
{if $use_same_address && !$cart.is_virtual}
<p>
{l s='The selected address will be used both as your personal address (for invoice) and as your delivery address.' d='Shop.Theme.Checkout' mod='installmentpayment'}
</p>
{elseif $use_same_address && $cart.is_virtual}
<p>
{l s='The selected address will be used as your personal address (for invoice).' d='Shop.Theme.Checkout' mod='installmentpayment'}
</p>
{/if}
{if $show_delivery_address_form}
<div id="delivery-address">
{render file = 'checkout/_partials/address-form.tpl'
ui = $address_form
use_same_address = $use_same_address
type = "delivery"
form_has_continue_button = $form_has_continue_button
}
</div>
{elseif $customer.addresses|count > 0}
<div id="delivery-addresses" class="address-selector js-address-selector">
{include file = 'checkout/_partials/address-selector-block.tpl'
addresses = $customer.addresses
name = "id_address_delivery"
selected = $id_address_delivery
type = "delivery"
interactive = !$show_delivery_address_form and !$show_invoice_address_form
}
</div>
<p class="add-address">
<a href="{$new_address_delivery_url|escape:'htmlall':'UTF-8'}"><i class="material-icons">&#xE145;</i>{l s='add new address' d='Shop.Theme.Actions' mod='installmentpayment'}</a>
</p>
{if $use_same_address && !$cart.is_virtual}
<p>
<a data-link-action="different-invoice-address" href="{$use_different_address_url|escape:'htmlall':'UTF-8'}">
{l s='Billing address differs from shipping address' d='Shop.Theme.Checkout' mod='installmentpayment'}
</a>
</p>
{/if}
{/if}
{if !$use_same_address}
<h2 class="h4">{l s='Your Invoice Address' d='Shop.Theme.Checkout' mod='installmentpayment'}</h2>
{if $show_invoice_address_form}
<div id="invoice-address">
{render file = 'checkout/_partials/address-form.tpl'
ui = $address_form
use_same_address = $use_same_address
type = "invoice"
form_has_continue_button = $form_has_continue_button
}
</div>
{else}
<div id="invoice-addresses" class="address-selector js-address-selector">
{include file = 'checkout/_partials/address-selector-block.tpl'
addresses = $customer.addresses
name = "id_address_invoice"
selected = $id_address_invoice
type = "invoice"
interactive = !$show_delivery_address_form and !$show_invoice_address_form
}
</div>
<p class="add-address">
<a href="{$new_address_invoice_url|escape:'htmlall':'UTF-8'}"><i class="material-icons">&#xE145;</i>{l s='add new address' d='Shop.Theme.Actions' mod='installmentpayment'}</a>
</p>
{/if}
{/if}
{if !$form_has_continue_button}
<div class="clearfix">
<button type="submit" class="btn btn-primary continue pull-xs-right" name="confirm-addresses" value="1">
{l s='Continue' d='Shop.Theme.Actions' mod='installmentpayment'}
</button>
</div>
{/if}
</form>
</div>
{/block}

View File

@@ -0,0 +1,44 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<section id = "{$identifier|escape:'htmlall':'UTF-8'}"
class = "{[
'checkout-step' => true,
'-current' => $step_is_current,
'-reachable' => $step_is_reachable,
'-complete' => $step_is_complete,
'js-current-step' => $step_is_current
]|classnames}"
>
<h1 class="step-title h3">
<i class="material-icons done">&#xE876;</i>
<span class="step-number">{$position|escape:'htmlall':'UTF-8'}</span>
{$title|escape:'htmlall':'UTF-8'}
<span class="step-edit text-muted"><i class="material-icons edit">mode_edit</i> edit</span>
</h1>
<div class="content">
{block name='step_content'}DUMMY STEP CONTENT{/block}
</div>
</section>

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,175 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='checkout/_partials/steps/checkout-step.tpl'}
{block name='step_content'}
{hook h='displayPaymentTop'}
<div class="payment-options">
{foreach from=$payment_options item="module_options"}
{foreach from=$module_options item="option"}
<div>
<div id="{$option.id|escape:'htmlall':'UTF-8'}-container" class="payment-option clearfix">
{* This is the way an option should be selected when Javascript is enabled *}
<span class="custom-radio pull-xs-left">
<input
class="ps-shown-by-js {if $option.binary} binary {/if}"
id="{$option.id|escape:'htmlall':'UTF-8'}"
data-module-name="{$option.module_name|escape:'htmlall':'UTF-8'}"
name="payment-option"
type="radio"
required
{if $selected_payment_option == $option.id} checked {/if}
>
<span></span>
</span>
{* This is the way an option should be selected when Javascript is disabled *}
<form method="GET" class="ps-hidden-by-js">
{if $option.id === $selected_payment_option}
{l s='Selected' d='Shop.Theme.Checkout' mod='installmentpayment'}
{else}
<button class="ps-hidden-by-js" type="submit" name="select_payment_option" value="{$option.id|escape:'htmlall':'UTF-8'}">
{l s='Choose' d='Shop.Theme.Actions' mod='installmentpayment'}
</button>
{/if}
</form>
<label for="{$option.id|escape:'htmlall':'UTF-8'}">
<span>{$option.call_to_action_text|escape:'htmlall':'UTF-8'}</span>
{if $option.logo}
<img src="{$option.logo|escape:'htmlall':'UTF-8'}">
{/if}
</label>
</div>
</div>
{if $option.additionalInformation}
<div
id="{$option.id|escape:'htmlall':'UTF-8'}-additional-information"
class="js-additional-information definition-list additional-information{if $option.id != $selected_payment_option} ps-hidden {/if}"
>
{$option.additionalInformation nofilter|escape:'htmlall':'UTF-8'}
</div>
{/if}
<div
id="pay-with-{$option.id|escape:'htmlall':'UTF-8'}-form"
class="js-payment-option-form {if $option.id != $selected_payment_option} ps-hidden {/if}"
>
{if $option.form}
{$option.form nofilter|escape:'htmlall':'UTF-8'}
{else}
<form id="payment-form" method="POST" action="{$option.action nofilter|escape:'htmlall':'UTF-8'}">
{foreach from=$option.inputs item=input}
<input type="{$input.type|escape:'htmlall':'UTF-8'}" name="{$input.name|escape:'htmlall':'UTF-8'}" value="{$input.value|escape:'htmlall':'UTF-8'}">
{/foreach}
<button style="display:none" id="pay-with-{$option.id|escape:'htmlall':'UTF-8'}" type="submit"></button>
</form>
{/if}
</div>
{/foreach}
{foreachelse}
<p class="alert alert-danger">{l s='Unfortunately, there are no payment method available.' d='Shop.Theme.Checkout' mod='installmentpayment'}</p>
{/foreach}
</div>
{if $conditions_to_approve|count}
<p class="ps-hidden-by-js">
{* At the moment, we're not showing the checkboxes when JS is disabled
because it makes ensuring they were checked very tricky and overcomplicates
the template. Might change later.
*}
{l s='By confirming the order, you certify that you have read and agree with all of the conditions below:' d='Shop.Theme.Checkout' mod='installmentpayment'}
</p>
<form id="conditions-to-approve" method="GET">
<ul>
{foreach from=$conditions_to_approve item="condition" key="condition_name"}
<li>
<div class="pull-xs-left">
<span class="custom-checkbox">
<input id = "conditions_to_approve[{$condition_name|escape:'htmlall':'UTF-8'}]"
name = "conditions_to_approve[{$condition_name|escape:'htmlall':'UTF-8'}]"
required
type = "checkbox"
value = "1"
class = "ps-shown-by-js"
>
<span><i class="material-icons checkbox-checked">&#xE5CA;</i></span>
</span>
</div>
<div class="condition-label">
<label class="js-terms" for="conditions_to_approve[{$condition_name|escape:'htmlall':'UTF-8'}]">
{$condition nofilter|escape:'htmlall':'UTF-8'}
</label>
</div>
</li>
{/foreach}
</ul>
</form>
{/if}
{if $show_final_summary}
{include file='checkout/_partials/order-final-summary.tpl'}
{/if}
<div id="payment-confirmation">
<div class="ps-shown-by-js">
<button type="submit" {if !$selected_payment_option} disabled {/if} class="btn btn-primary center-block">
{l s='Order with an obligation to pay' d='Shop.Theme.Checkout' mod='installmentpayment'}
</button>
{if $show_final_summary}
<article class="alert alert-danger m-t-2 js-alert-payment-conditions" role="alert" data-alert="danger">
{l
s='Please make sure you\'ve chosen a [1]payment method[/1] and accepted the [2]terms and conditions[/2].'
sprintf=[
'[1]' => '<a href="#checkout-payment-step">',
'[/1]' => '</a>',
'[2]' => '<a href="#conditions-to-approve">',
'[/2]' => '</a>'
]
d='Shop.Theme.Checkout'
}
</article>
{/if}
</div>
<div class="ps-hidden-by-js">
{if $selected_payment_option and $all_conditions_approved}
<label for="pay-with-{$selected_payment_option|escape:'htmlall':'UTF-8'}">{l s='Order with an obligation to pay' d='Shop.Theme.Checkout' mod='installmentpayment'}</label>
{/if}
</div>
</div>
{hook h='displayPaymentByBinaries'}
<div class="modal fade" id="modal">
<div class="modal-dialog" role="document">
<div class="modal-content">
</div>
</div>
</div>
{/block}

View File

@@ -0,0 +1,96 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='checkout/_partials/steps/checkout-step.tpl'}
{block name='step_content'}
{if $customer.is_logged && !$customer.is_guest}
<p class="identity">
{* [1][/1] is for a HTML tag. *}
{l s='Connected as [1]%firstname% %lastname%[/1].'
d='Shop.Theme.CustomerAccount'
sprintf=[
'[1]' => "<a href="{$urls.pages.identity|escape:'htmlall':'UTF-8'}">",
'[/1]' => "</a>",
'%firstname%' => $customer.firstname,
'%lastname%' => $customer.lastname
]
}
</p>
<p>
{* [1][/1] is for a HTML tag. *}
{l
s='Not you? [1]Log out[/1]'
d='Shop.Theme.CustomerAccount'
sprintf=[
'[1]' => "<a href="{$urls.actions.logout|escape:'htmlall':'UTF-8'}">",
'[/1]' => "</a>"
]
}
</p>
<p><small>{l s='If you sign out now, your cart will be emptied.' d='Shop.Theme.Checkout' mod='installmentpayment'}</small></p>
{else}
<ul class="nav nav-inline m-y-2">
<li class="nav-item">
<a class="nav-link {if !$show_login_form}active{/if}" data-toggle="tab" href="#checkout-guest-form" role="tab">
{if $guest_allowed}
{l s='Order as a guest' d='Shop.Theme.Checkout' mod='installmentpayment'}
{else}
{l s='Create an account' d='Shop.Theme.CustomerAccount' mod='installmentpayment'}
{/if}
</a>
</li>
<li class="nav-item">
<span href="nav-separator"> | </span>
</li>
<li class="nav-item">
<a
class="nav-link {if $show_login_form}active{/if}"
data-link-action="show-login-form"
data-toggle="tab"
href="#checkout-login-form"
role="tab"
>
{l s='Sign in' d='Shop.Theme.Actions' mod='installmentpayment'}
</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane {if !$show_login_form}active{/if}" id="checkout-guest-form" role="tabpanel">
{render file='checkout/_partials/customer-form.tpl' ui=$register_form guest_allowed=$guest_allowed}
</div>
<div class="tab-pane {if $show_login_form}active{/if}" id="checkout-login-form" role="tabpanel">
{render file='checkout/_partials/login-form.tpl' ui=$login_form}
</div>
</div>
{/if}
{/block}

View File

@@ -0,0 +1,123 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='checkout/_partials/steps/checkout-step.tpl'}
{block name='step_content'}
<div id="hook-display-before-carrier">
{$hookDisplayBeforeCarrier nofilter|escape:'htmlall':'UTF-8'}
</div>
<div class="delivery-options-list">
{if $delivery_options|count}
<form
class="clearfix"
id="js-delivery"
data-url-update="{url entity='order' params=['ajax' => 1, 'action' => 'selectDeliveryOption']}"
method="post"
>
<div class="form-fields">
{block name='delivery_options'}
<div class="delivery-options">
{foreach from=$delivery_options item=carrier key=carrier_id}
<div class="delivery-option">
<div class="col-sm-1">
<span class="custom-radio pull-xs-left">
<input type="radio" name="delivery_option[{$id_address|escape:'htmlall':'UTF-8'}]" id="delivery_option_{$carrier.id|escape:'htmlall':'UTF-8'}" value="{$carrier_id|escape:'htmlall':'UTF-8'}"{if $delivery_option == $carrier_id} checked{/if}>
<span></span>
</span>
</div>
<label for="delivery_option_{$carrier.id|escape:'htmlall':'UTF-8'}" class="col-sm-11 delivery-option-2">
<div class="row">
<div class="col-sm-5 col-xs-12">
<div class="row">
{if $carrier.logo}
<div class="col-xs-3">
<img src="{$carrier.logo|escape:'htmlall':'UTF-8'}" alt="{$carrier.name|escape:'htmlall':'UTF-8'}" />
</div>
{/if}
<div class="{if $carrier.logo}col-xs-9{else}col-xs-12{/if}">
<span class="h6 carrier-name">{$carrier.name|escape:'htmlall':'UTF-8'}</span>
</div>
</div>
</div>
<div class="col-sm-4 col-xs-12">
<span class="carrier-delay">{$carrier.delay|escape:'htmlall':'UTF-8'}</span>
</div>
<div class="col-sm-3 col-xs-12">
<span class="carrier-price">{$carrier.price|escape:'htmlall':'UTF-8'}</span>
</div>
</div>
</label>
<div class="col-md-12 carrier-extra-content"{if $delivery_option != $carrier_id} style="display:none;"{/if}>
{$carrier.extraContent nofilter|escape:'htmlall':'UTF-8'}
</div>
<div class="clearfix"></div>
</div>
{/foreach}
</div>
{/block}
<div class="order-options">
{if $recyclablePackAllowed}
<label>
<input type="checkbox" name="recyclable" value="1" {if $recyclable} checked {/if}>
<span>{l s='I would like to receive my order in recycled packaging.' d='Shop.Theme.Checkout' mod='installmentpayment'}</span>
</label>
{/if}
{if $gift.allowed}
<span class="custom-checkbox">
<input
class="js-gift-checkbox"
name="gift"
type="checkbox"
value="1"
{if $gift.isGift}checked="checked"{/if}
>
<span><i class="material-icons checkbox-checked">&#xE5CA;</i></span>
<label>{$gift.label|escape:'htmlall':'UTF-8'}</label >
</span>
<div id="gift" class="collapse{if $gift.isGift} in{/if}">
<label for="gift_message">{l s='If you\'d like, you can add a note to the gift:' d='Shop.Theme.Checkout' mod='installmentpayment'}</label>
<textarea rows="2" cols="120" id="gift_message" name="gift_message">{$gift.message|escape:'htmlall':'UTF-8'}</textarea>
</div>
{/if}
</div>
</div>
<button type="submit" class="continue btn btn-primary pull-xs-right" name="confirmDeliveryOption" value="1">
{l s='Continue' d='Shop.Theme.Actions' mod='installmentpayment'}
</button>
</form>
{else}
<p class="alert alert-danger">{l s='Unfortunately, there are no carriers available for your delivery address.' d='Shop.Theme.Checkout' mod='installmentpayment'}</p>
{/if}
</div>
<div id="hook-display-after-carrier">
{$hookDisplayAfterCarrier nofilter|escape:'htmlall':'UTF-8'}
</div>
<div id="extra_carrier"></div>
{/block}

View File

@@ -0,0 +1,29 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<section class="checkout-step -unreachable" id="{$identifier|escape:'htmlall':'UTF-8'}">
<h1 class="step-title h3">
<span class="step-number">{$position|escape:'htmlall':'UTF-8'}</span> {$title|escape:'htmlall':'UTF-8'}
</h1>
</section>

View File

@@ -0,0 +1,45 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='checkout/cart.tpl'}
{block name='content' append}
{hook h='displayCrossSellingShoppingCart'}
{/block}
{block name='continue_shopping' append}
<a class="label" href="{$urls.pages.index|escape:'htmlall':'UTF-8'}">
<i class="material-icons">chevron_left</i>{l s='Continue shopping' d='Shop.Theme.Actions' mod='installmentpayment'}
</a>
{/block}
{block name='cart_actions'}
<div class="checkout text-xs-center card-block">
<button type="button" class="btn btn-primary disabled" disabled>{l s='Checkout' d='Shop.Theme.Actions' mod='installmentpayment'}</button>
</div>
{/block}
{block name='continue_shopping'}{/block}
{block name='cart_voucher'}{/block}
{block name='display_reassurance'}{/block}

View File

@@ -0,0 +1,85 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file=$layout}
{block name='content'}
<section id="main">
<div class="cart-grid row">
<!-- Left Block: cart product informations & shpping -->
<div class="cart-grid-body col-xs-12 col-lg-8">
<!-- cart products detailed -->
<div class="card cart-container">
<div class="card-block">
<h1 class="h1">{l s='Shopping Cart' d='Shop.Theme.Checkout' mod='installmentpayment'}</h1>
</div>
<hr>
{block name='cart_overview'}
{include file='checkout/_partials/cart-detailed.tpl' cart=$cart}
{/block}
</div>
{block name='continue_shopping'}
<a class="label" href="{$urls.pages.index|escape:'htmlall':'UTF-8'}">
<i class="material-icons">chevron_left</i>{l s='Continue shopping' d='Shop.Theme.Actions' mod='installmentpayment'}
</a>
{/block}
<!-- shipping informations -->
<div>
{hook h='displayShoppingCartFooter'}
</div>
</div>
<!-- Right Block: cart subtotal & cart total -->
<div class="cart-grid-right col-xs-12 col-lg-4">
{block name='cart_summary'}
<div class="card cart-summary">
{hook h='displayShoppingCart'}
{block name='cart_totals'}
{include file='checkout/_partials/cart-detailed-totals.tpl' cart=$cart}
{/block}
{block name='cart_actions'}
{include file='checkout/_partials/cart-detailed-actions.tpl' cart=$cart}
{/block}
</div>
{/block}
{block name='display_reassurance'}
{hook h='displayReassurance'}
{/block}
</div>
</div>
</section>
{/block}

View File

@@ -0,0 +1,30 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{foreach from=$steps item="step" key="index"}
{render identifier = $step.identifier
position = ($index + 1)
ui = $step.ui
}
{/foreach}

View File

@@ -0,0 +1,83 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<!doctype html>
<html lang="{$language.iso_code|escape:'htmlall':'UTF-8'}">
<head>
{block name='head'}
{include file='_partials/head.tpl'}
{/block}
</head>
<body id="{$page.page_name|escape:'htmlall':'UTF-8'}" class="{$page.body_classes|classnames}">
{hook h='displayAfterBodyOpeningTag'}
<header id="header">
{block name='header'}
{include file='checkout/_partials/header.tpl'}
{/block}
</header>
{block name='notifications'}
{include file='_partials/notifications.tpl'}
{/block}
<section id="wrapper">
<div class="container">
{block name='content'}
<section id="content">
<div class="row">
<div class="col-md-8">
{render file='checkout/checkout-process.tpl' ui=$checkout_process}
</div>
<div class="col-md-4">
{include file='checkout/_partials/cart-summary.tpl' cart = $cart}
{hook h='displayReassurance'}
</div>
</div>
</section>
{/block}
</div>
</section>
<footer id="footer">
{block name='footer'}
{include file='checkout/_partials/footer.tpl'}
{/block}
</footer>
{block name='javascript_bottom'}
{include file="_partials/javascript.tpl" javascript=$javascript.bottom}
{/block}
{hook h='displayBeforeBodyClosingTag'}
</body>
</html>

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,116 @@
{**
* 2007-2016 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:
* http://opensource.org/licenses/osl-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-2018 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='page.tpl'}
{block name='page_content_container' prepend}
<section id="content-hook_order_confirmation" class="card">
<div class="card-block">
<div class="row">
<div class="col-md-12">
<h3 class="h1 card-title">
<i class="material-icons done">&#xE876;</i>{l s='Your order is confirmed' d='Shop.Theme.Checkout' mod='installmentpayment'}
</h3>
<p>
{l s='An email has been sent to your mail address %email%.' d='Shop.Theme.Checkout' mod='installmentpayment' sprintf=['%email%' => $customer.email]}
{if $order.details.invoice_url}
{* [1][/1] is for a HTML tag. *}
{l
s='You can also [1]download your invoice[/1]'
d='Shop.Theme.Checkout'
sprintf=[
'[1]' => "<a href="{$order.details.invoice_url|escape:'htmlall':'UTF-8'}">",
'[/1]' => "</a>"
]
}
{/if}
</p>
{$HOOK_ORDER_CONFIRMATION nofilter|escape:'htmlall':'UTF-8'}
</div>
</div>
</div>
</section>
{/block}
{block name='page_content_container'}
<section id="content" class="page-content page-order-confirmation card">
<div class="card-block">
<div class="row">
{block name='order_confirmation_table'}
{include
file='checkout/_partials/order-confirmation-table.tpl'
products=$order.products
subtotals=$order.subtotals
totals=$order.totals
labels=$order.labels
add_product_link=false
}
{/block}
<div id="order-details" class="col-md-4">
<h3 class="h3 card-title">{l s='Order details' d='Shop.Theme.Checkout' mod='installmentpayment'}:</h3>
<ul>
<li>{l s='Order reference: %reference%' d='Shop.Theme.Checkout' mod='installmentpayment' sprintf=['%reference%' => $order.details.reference]}</li>
<li>{l s='Payment method: %method%' d='Shop.Theme.Checkout' mod='installmentpayment' sprintf=['%method%' => $order.details.payment]}</li>
{if !$order.details.is_virtual}
<li>
{l s='Shipping method: %method%' d='Shop.Theme.Checkout' mod='installmentpayment' sprintf=['%method%' => $order.carrier.name]}<br>
<em>{$order.carrier.delay|escape:'htmlall':'UTF-8'}</em>
</li>
{/if}
</ul>
</div>
</div>
</div>
</section>
{if ! empty($HOOK_PAYMENT_RETURN)}
<section id="content-hook_payment_return" class="card definition-list">
<div class="card-block">
<div class="row">
<div class="col-md-12">
{$HOOK_PAYMENT_RETURN nofilter|escape:'htmlall':'UTF-8'}
</div>
</div>
</div>
</section>
{/if}
{if $customer.is_guest}
<div id="registration-form" class="card">
<div class="card-block">
<h4 class="h4">{l s='Save time on your next order, sign up now' d='Shop.Theme.Checkout' mod='installmentpayment'}</h4>
{render file='customer/_partials/customer-form.tpl' ui=$register_form}
</div>
</div>
{/if}
{hook h='displayOrderConfirmation1'}
<section id="content-hook-order-confirmation-footer">
{hook h='displayOrderConfirmation2'}
</section>
{/block}

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,30 @@
{*
* 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
*}
<style type="text/css">
.payment_module.acompte {
display: none;
}
</style>
<div class="paiement_block">
<div class="box">{l s='Please select below your means of payment to pay the remaining amount' mod='installmentpayment'} {convertPrice price=$total|floatval} {l s='your order ' mod='installmentpayment'} #{$reference}</div>
{if $HOOK_PAYMENT}
<div id="HOOK_PAYMENT">
{$HOOK_PAYMENT|escape:'quotes':'UTF-8'|replace:"\'":"'"}
</div>
{else}
<p class="alert alert-warning">{l s='No payment modules have been installed.' mod='installmentpayment'}</p>
{/if}
</div> <!-- end HOOK_TOP_PAYMENT -->

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>

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;