149 lines
7.6 KiB
Smarty
149 lines
7.6 KiB
Smarty
{*
|
|
* We offer the best and most useful modules PrestaShop and modifications for your online store.
|
|
*
|
|
* We are experts and professionals in PrestaShop
|
|
*
|
|
* @author PresTeamShop.com <support@presteamshop.com>
|
|
* @copyright 2011-2017 PresTeamShop
|
|
* @license see file: LICENSE.txt
|
|
* @category PrestaShop
|
|
* @category Module
|
|
*}
|
|
|
|
{assign var='addresses_tab' value=(isset($OPC_FIELDS[$OPC_GLOBALS->object->delivery]) && isset($OPC_FIELDS[$OPC_GLOBALS->object->invoice]) && $CONFIGS.OPC_ENABLE_INVOICE_ADDRESS && !$is_virtual_cart && sizeof($OPC_FIELDS[$OPC_GLOBALS->object->delivery]) > 1) || $CONFIGS.OPC_ENABLE_INVOICE_ADDRESS && $is_virtual_cart && $CONFIGS.OPC_SHOW_DELIVERY_VIRTUAL}
|
|
|
|
{if isset($OPC_FIELDS[$OPC_GLOBALS->object->customer])}
|
|
<h5 class="onepagecheckoutps_p_step onepagecheckoutps_p_step_one">
|
|
<i class="fa-pts fa-pts-user fa-pts-2x"></i>
|
|
{l s='Your data' mod='onepagecheckoutps'}
|
|
{if !$customer.is_logged}
|
|
<button type="button" id="opc_show_login" class="btn btn-info btn-sm pull-right" >
|
|
{l s='Already registered?' mod='onepagecheckoutps'}
|
|
</button>
|
|
{/if}
|
|
</h5>
|
|
|
|
{if !$customer.is_logged && isset($opc_social_networks) && ($opc_social_networks->facebook->client_id neq '' || $opc_social_networks->google->client_id neq '' || $opc_social_networks->paypal->client_id neq '')}
|
|
<section id="opc_social_networks">
|
|
<h5>{l s='Login using your social networks' mod='onepagecheckoutps'}</h5>
|
|
{foreach from=$opc_social_networks key='name' item='network'}
|
|
{if $network->client_id neq ''}
|
|
<button type="button" class="btn btn-sm btn-{$name}" onclick="Fronted.openWindow('{$link->getModuleLink('onepagecheckoutps', 'login', ['sv' => $network->name_network])}', true)">
|
|
<i class="fa-pts fa-pts-1x fa-pts-{$network->class_icon}"></i>
|
|
{$network->name_network}
|
|
</button>
|
|
{/if}
|
|
{/foreach}
|
|
</section>
|
|
{/if}
|
|
|
|
{$hook_create_account_top nofilter}
|
|
|
|
<section id="customer_container">
|
|
{foreach from=$OPC_FIELDS[$OPC_GLOBALS->object->customer] item='fields' name='f_row_fields'}
|
|
<div class="row">
|
|
{foreach from=$fields item='field' name='f_fields'}
|
|
{include file="./controls.tpl" field=$field cant_fields=$smarty.foreach.f_fields.total}
|
|
{/foreach}
|
|
</div>
|
|
{/foreach}
|
|
|
|
{if $CONFIGS.OPC_ENABLE_PRIVACY_POLICY && !$customer.is_logged && !$customer.is_guest}
|
|
<div class="row">
|
|
<div class="form-group col-xs-12 col-12 clear clearfix" id="div_privacy_policy">
|
|
<p id="p_privacy_policy">
|
|
<label for="privacy_policy">
|
|
<input type="checkbox" class="not_unifrom not_uniform" name="privacy_policy" id="privacy_policy" value="1" />
|
|
{l s='I have read and accept the Privacy Policy.' mod='onepagecheckoutps'}
|
|
<span class="read">{l s='(read)' mod='onepagecheckoutps'}</span>
|
|
</label>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
</section>
|
|
{/if}
|
|
|
|
{$hook_create_account_form nofilter}
|
|
|
|
{* {if $addresses_tab} *}
|
|
<br/>
|
|
<h5 class="onepagecheckoutps_p_step onepagecheckoutps_p_step_one">{l s='Delivery address' mod='onepagecheckoutps'}</h5>
|
|
{* <ul class="nav nav-tabs">
|
|
<li id="li_delivery_address" class="nav-item">
|
|
<a class="nav-link active" href="#delivery_address_container" data-toggle="tab" aria-expanded="true">{l s='Delivery address' mod='onepagecheckoutps'}</a>
|
|
</li>
|
|
<li id="li_invoice_address" class="nav-item">
|
|
<a class="nav-link" href="#invoice_address_container" data-toggle="tab" aria-expanded="false">{l s='Invoice address' mod='onepagecheckoutps'}</a>
|
|
</li>
|
|
</ul> *}
|
|
{* {/if} *}
|
|
|
|
<div class="{if $addresses_tab}tab-content{/if}">
|
|
{if isset($OPC_FIELDS[$OPC_GLOBALS->object->delivery]) && sizeof($OPC_FIELDS[$OPC_GLOBALS->object->delivery]) > 1}
|
|
{if ($CONFIGS.OPC_SHOW_DELIVERY_VIRTUAL && $is_virtual_cart) or !$is_virtual_cart}
|
|
{if not $addresses_tab}
|
|
<h5 id="p_delivery_address" class="onepagecheckoutps_p_step p_address">{l s='Delivery address' mod='onepagecheckoutps'}</h5>
|
|
{/if}
|
|
<section id="delivery_address_container" class="{if $addresses_tab}page-product-box tab-pane active{/if}">
|
|
<div class="fields_container">
|
|
{foreach from=$OPC_FIELDS[$OPC_GLOBALS->object->delivery] item='fields' name='f_row_fields'}
|
|
<div class="row">
|
|
{foreach from=$fields item='field' name='f_fields'}
|
|
{include file="./controls.tpl" field=$field cant_fields=$smarty.foreach.f_fields.total}
|
|
{/foreach}
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
{if $CONFIGS.OPC_ENABLE_INVOICE_ADDRESS}
|
|
<div class="row">
|
|
<div class="form-group col-xs-12 col-12 container_help_invoice">
|
|
{if $CONFIGS.OPC_REQUIRED_INVOICE_ADDRESS}
|
|
<span>{l s='Remember to set your invoice address.' mod='onepagecheckoutps'}</span>
|
|
{else}
|
|
<span>{l s='Do you want to enter another address for billing?' mod='onepagecheckoutps'}</span>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
</section>
|
|
{/if}
|
|
{else}
|
|
<input type="hidden" id="delivery_id" value="{$id_address_delivery|intval}"/>
|
|
{/if}
|
|
|
|
<br/>
|
|
<h5 class="onepagecheckoutps_p_step onepagecheckoutps_p_step_one">{l s='Invoice address' mod='onepagecheckoutps'}</h5>
|
|
{if isset($OPC_FIELDS[$OPC_GLOBALS->object->invoice]) && sizeof($OPC_FIELDS[$OPC_GLOBALS->object->invoice]) > 1}
|
|
{if $CONFIGS.OPC_ENABLE_INVOICE_ADDRESS}
|
|
{if not $addresses_tab}
|
|
<h5 id="p_invoice_address" class="onepagecheckoutps_p_step p_address">{l s='Invoice address' mod='onepagecheckoutps'}</h5>
|
|
{/if}
|
|
<section id="invoice_address_container" class="{if $addresses_tab}page-product-box tab-pane{/if}" style="display: block !important;">
|
|
<div class="row {if $CONFIGS.OPC_REQUIRED_INVOICE_ADDRESS}hidden{/if}">
|
|
<div class="form-group col-xs-12 col-12">
|
|
<label for="checkbox_create_invoice_address">
|
|
<input type="checkbox" {if $is_need_invoice}checked="true"{/if} name="checkbox_create_invoice_address" id="checkbox_create_invoice_address" class="input_checkbox not_unifrom not_uniform"/>
|
|
{l s='I want to set another address for my invoice.' mod='onepagecheckoutps'}
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="fields_container">
|
|
{foreach from=$OPC_FIELDS[$OPC_GLOBALS->object->invoice] item='fields' name='f_row_fields'}
|
|
<div class="row">
|
|
{foreach from=$fields item='field' name='f_fields'}
|
|
{include file="./controls.tpl" field=$field cant_fields=$smarty.foreach.f_fields.total}
|
|
{/foreach}
|
|
</div>
|
|
{/foreach}
|
|
</div>
|
|
</section>
|
|
{/if}
|
|
{else}
|
|
<input type="hidden" id="invoice_id" value="{$id_address_invoice|intval}"/>
|
|
{/if}
|
|
</div>
|
|
|
|
<div class="row">
|
|
{include file='./custom_html/address.tpl'}
|
|
</div> |