{* * 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 * @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])}
{l s='Your data' mod='onepagecheckoutps'} {if !$customer.is_logged} {/if}
{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 '')}
{l s='Login using your social networks' mod='onepagecheckoutps'}
{foreach from=$opc_social_networks key='name' item='network'} {if $network->client_id neq ''} {/if} {/foreach}
{/if} {$hook_create_account_top nofilter}
{foreach from=$OPC_FIELDS[$OPC_GLOBALS->object->customer] item='fields' name='f_row_fields'}
{foreach from=$fields item='field' name='f_fields'} {include file="./controls.tpl" field=$field cant_fields=$smarty.foreach.f_fields.total} {/foreach}
{/foreach} {if $CONFIGS.OPC_ENABLE_PRIVACY_POLICY && !$customer.is_logged && !$customer.is_guest}

{/if}
{/if} {$hook_create_account_form nofilter} {* {if $addresses_tab} *}
{l s='Delivery address' mod='onepagecheckoutps'}
{* *} {* {/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}
{l s='Delivery address' mod='onepagecheckoutps'}
{/if}
{foreach from=$OPC_FIELDS[$OPC_GLOBALS->object->delivery] item='fields' name='f_row_fields'}
{foreach from=$fields item='field' name='f_fields'} {include file="./controls.tpl" field=$field cant_fields=$smarty.foreach.f_fields.total} {/foreach}
{/foreach}
{if $CONFIGS.OPC_ENABLE_INVOICE_ADDRESS}
{if $CONFIGS.OPC_REQUIRED_INVOICE_ADDRESS} {l s='Remember to set your invoice address.' mod='onepagecheckoutps'} {else} {l s='Do you want to enter another address for billing?' mod='onepagecheckoutps'} {/if}
{/if}
{/if} {else} {/if}
{l s='Invoice address' mod='onepagecheckoutps'}
{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}
{l s='Invoice address' mod='onepagecheckoutps'}
{/if}
{foreach from=$OPC_FIELDS[$OPC_GLOBALS->object->invoice] item='fields' name='f_row_fields'}
{foreach from=$fields item='field' name='f_fields'} {include file="./controls.tpl" field=$field cant_fields=$smarty.foreach.f_fields.total} {/foreach}
{/foreach}
{/if} {else} {/if}
{include file='./custom_html/address.tpl'}