133 lines
5.6 KiB
Smarty
133 lines
5.6 KiB
Smarty
{*
|
|
* 2007-2014 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-2014 PrestaShop SA
|
|
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
|
* International Registered Trademark & Property of PrestaShop SA
|
|
*}
|
|
|
|
|
|
<div class="payment_module payment_paypal">
|
|
<div class="inner">
|
|
<div class="input_radio">
|
|
<div class="hidden">
|
|
<form data-module-name="paypal" id="paypal_payment_form" action="{$base_dir_ssl}modules/paypal/express_checkout/payment.php" data-ajax="false" title="{l s='Pay with PayPal' mod='paypal'}" method="post">
|
|
<input type="hidden" name="save_billing" id="save_billing_paypal" value="0"/>
|
|
<input type="hidden" name="express_checkout" value="{$PayPal_payment_type|escape:'htmlall':'UTF-8'}"/>
|
|
<input type="hidden" name="current_shop_url" value="{$PayPal_current_page|escape:'htmlall':'UTF-8'}" />
|
|
<input type="hidden" name="bn" value="{$PayPal_tracking_code|escape:'htmlall':'UTF-8'}" />
|
|
<input type="hidden" name="custom" value="{$custom|escape:'htmlall':'UTF-8'}" />
|
|
</form>
|
|
</div>
|
|
<input type="radio" value="" name="paiement-method">
|
|
</div>
|
|
<div class="img_payment">
|
|
{if isset($use_mobile) && $use_mobile}
|
|
<img src="{$base_dir_ssl}modules/paypal/img/logos/express_checkout_mobile/CO_{$PayPal_lang_code}_orange_295x43.png" />
|
|
{else}
|
|
{if isset($logos.LocalPayPalHorizontalSolutionPP) && $PayPal_payment_method == $PayPal_integral}
|
|
<img src="{$logos.LocalPayPalHorizontalSolutionPP}" alt="{$PayPal_content.payment_choice|escape:'htmlall':'UTF-8'}" height="48px" />
|
|
{else}
|
|
<img src="{$logos.LocalPayPalLogoMedium}" alt="{$PayPal_content.payment_choice|escape:'htmlall':'UTF-8'}" />
|
|
{/if}
|
|
{/if}
|
|
</div>
|
|
<div class="label">
|
|
<span class="title_payment">
|
|
{$PayPal_content.payment_choice}
|
|
</span>
|
|
<span class="save_info">
|
|
<input type="checkbox" id="save_info_paypal" data-change="save_billing_paypal">
|
|
<label for="save_info_paypal">{l s='Save my paypal account information for future payments' mod='paypal'} </label>
|
|
<span class="paiement_info_lightbox paypal_info">?</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
{if $accounts}
|
|
<div class="account_payment">
|
|
<p class="title">{l s='You have registered accounts, you can use them to pay' mod='paypal'}</p>
|
|
{foreach from=$accounts item=account}
|
|
<div class="box_account">
|
|
<div class="hidden">
|
|
<form id="paypal_payment_form" action="{$base_dir_ssl}modules/paypal/express_checkout/payment.php" data-ajax="false" title="{l s='Pay with PayPal' mod='paypal'}" method="post">
|
|
<input type="hidden" name="id_billing" value="{$account.id_paypal_agreement}"/>
|
|
<input type="hidden" name="express_checkout" value="{$PayPal_payment_type|escape:'htmlall':'UTF-8'}"/>
|
|
<input type="hidden" name="current_shop_url" value="{$PayPal_current_page|escape:'htmlall':'UTF-8'}" />
|
|
<input type="hidden" name="bn" value="{$PayPal_tracking_code|escape:'htmlall':'UTF-8'}" />
|
|
<input type="hidden" name="custom" value="{$custom|escape:'htmlall':'UTF-8'}" />
|
|
</form>
|
|
</div>
|
|
<input data-module-name="paypal" type="radio" value="" name="paiement-method" id="paypal_{$account.id_paypal_agreement}">
|
|
<label for="paypal_{$account.id_paypal_agreement}">{$account.email} - {$account.name}</label>
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
{/if}
|
|
|
|
|
|
<div class="overlay_bbb info_paypal"></div>
|
|
<div class="box_add_to_cart paiment_info_paypal">
|
|
<div class="content">
|
|
<h3>{l s='Mémorisation de vos données Paypal' mod='paypal'}</h3>
|
|
<div id="close_add_to_cart" class="close">
|
|
<img alt="{l s='Fermer la fenètre'}" src="{$img_dir}close.jpg">
|
|
</div>
|
|
<div class="content_box">
|
|
<p>
|
|
{l s='Lors du passage d\'une commande, vous pouvez choisir de mémoriser vos coordonnées Paypal. Ces dernières seront alors enregistrées sur les serveurs sécurisés de Paypal. Votre compte enregistré vous sera proposé pour vos prochaines commandes sans que vous n\'ayez besoin de saisir de nouveau vos données.' mod='paypal'}
|
|
</p>
|
|
<p>
|
|
{l s='Quelle que soit l\'option choisie, seul Paypal a accès à vos informations, et en aucun cas Bébé Boutik.' mod='paypal'}
|
|
</p>
|
|
<p>
|
|
{l s='Vous pouvez à tout moment voir et supprimer vos comptes Paypal enregistrés sur la page « Gérer mes moyens de paiement » dans le menu « Mon compte ».' mod='paypal'}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
{literal}
|
|
<script>
|
|
$(document).ready(function() {
|
|
if ($('#save_info_paypal').is(':checked')) {
|
|
$('#save_billing_paypal').val('1');
|
|
} else {
|
|
$('#save_billing_paypal').val('0');
|
|
}
|
|
|
|
$('.paypal_info').live('click', function(){
|
|
$('.info_paypal').fadeIn();
|
|
$('.paiment_info_paypal').fadeIn();
|
|
});
|
|
|
|
$('#save_info_paypal').change(function(){
|
|
if ($(this).is(':checked')) {
|
|
$('#save_billing_paypal').val('1');
|
|
} else {
|
|
$('#save_billing_paypal').val('0');
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
{/literal} |