File: /home4/cca63905/www/nueva/themes/probusiness/templates/checkout/_partials/steps/payment.tpl
{*
* 2007-2022 ETS-Soft
*
* NOTICE OF LICENSE
*
* This file is not open source! Each license that you purchased is only available for 1 wesite only.
* If you want to use this file on more websites (or projects), you need to purchase additional licenses.
* You are not allowed to redistribute, resell, lease, license, sub-license or offer our resources to any third party.
*
* 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 contact us for extra customization service at an affordable price
*
* @author ETS-Soft <etssoft.jsc@gmail.com>
* @copyright 2007-2022 ETS-Soft
* @license Valid for 1 website (or project) for each purchase of license
* International Registered Trademark & Property of ETS-Soft
*}
{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:'html':'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:'html':'UTF-8'}"
data-module-name="{$option.module_name|escape:'html':'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'}
{else}
<button class="ps-hidden-by-js" type="submit" name="select_payment_option" value="{$option.id|escape:'html':'UTF-8'}">
{l s='Choose' d='Shop.Theme.Actions'}
</button>
{/if}
</form>
<label for="{$option.id|escape:'html':'UTF-8'}">
<span>{$option.call_to_action_text|escape:'html':'UTF-8'}</span>
{if $option.logo}
<img src="{$option.logo|escape:'html':'UTF-8'}">
{/if}
</label>
</div>
</div>
{if $option.additionalInformation}
<div
id="{$option.id|escape:'html':'UTF-8'}-additional-information"
class="js-additional-information definition-list additional-information{if $option.id != $selected_payment_option} ps-hidden {/if}"
>
{$option.additionalInformation nofilter}
</div>
{/if}
<div
id="pay-with-{$option.id|escape:'html':'UTF-8'}-form"
class="js-payment-option-form {if $option.id != $selected_payment_option} ps-hidden {/if}"
>
{if $option.form}
{$option.form nofilter}
{else}
<form id="payment-form" method="POST" action="{$option.action nofilter}">
{foreach from=$option.inputs item=input}
<input type="{$input.type|escape:'html':'UTF-8'}" name="{$input.name|escape:'html':'UTF-8'}" value="{$input.value|escape:'html':'UTF-8'}">
{/foreach}
<button style="display:none" id="pay-with-{$option.id|escape:'html':'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'}</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'}
</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:'html':'UTF-8'}]"
name = "conditions_to_approve[{$condition_name|escape:'html':'UTF-8'}]"
required
type = "checkbox"
value = "1"
class = "ps-shown-by-js"
>
<span><i class="material-icons checkbox-checked"></i></span>
</span>
</div>
<div class="condition-label">
<label class="js-terms" for="conditions_to_approve[{$condition_name|escape:'html':'UTF-8'}]">
{$condition nofilter}
</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" class="btn btn-primary center-block{if !$selected_payment_option} disabled {/if}">
{l s='Order with an obligation to pay' d='Shop.Theme.Checkout'}
</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:'html':'UTF-8'}">{l s='Order with an obligation to pay' d='Shop.Theme.Checkout'}</label>
{/if}
</div>
</div>
{hook h='displayPaymentByBinaries'}
<div class="modal fade" id="modal">
<div class="modal-dialog" role="document">
<div class="modal-content">
<button type="button" class="close" data-dismiss="modal" aria-label="{l s='Close' d='Shop.Theme.Actions'}">
<span aria-hidden="true">×</span>
</button>
<div class="js-modal-content"></div>
</div>
</div>
</div>
{/block}