{** * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License 3.0 (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: * https://opensource.org/licenses/AFL-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 * @copyright PrestaShop SA * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} {if $field.type == 'hidden'} {block name='form_field_item_hidden'} {/block} {else} {assign var="passwordShallBeVisible" value=false} {* default value, which we may change below *} {assign var="class" value="{if (true == $field.live)} live{/if}"} {if $field.type === 'password' && isset($parentTplName) && $parentTplName === 'account'} {assign var=show_create_account_checkbox value=$ps_config.PS_GUEST_CHECKOUT_ENABLED && $z_tc_config->create_account_checkbox && (!$customer.is_logged || $customer.is_guest)} {if $show_create_account_checkbox} {assign var="passwordShallBeVisible" value=(isset($opc_form_checkboxes['create-account']) && 'true' == $opc_form_checkboxes['create-account'])}
{/if} {/if} {capture name="form_group_classes"} form-group {$field.name|escape:'htmlall':'UTF-8'} {if isset($checkoutSection) && ('invoice' === $checkoutSection || 'delivery' === $checkoutSection) && in_array($field.name, $businessFieldsList)}business-field{/if} {if isset($checkoutSection) && ('invoice' === $checkoutSection || 'delivery' === $checkoutSection) && in_array($field.name, $privateFieldsList)}private-field{/if} {if isset($checkoutSection) && ('invoice' === $checkoutSection || 'delivery' === $checkoutSection) && in_array($field.name, $businessDisabledFieldsList)}business-disabled-field{/if} {$field.type|escape:'htmlall':'UTF-8'} {if (false == $field.visible) && !($field.type === 'password' && $passwordShallBeVisible)} hidden{/if} {if !empty($field.errors)} has-error{/if} {if $field.type === 'select' && empty($field.availableValues)} hidden{/if} {if $field.name==='address1' && $field.value|strlen>3 && !preg_match('/\d+/',$field.value)}missing-street-number{/if} {if $field.css_class} {$field.css_class|escape:'htmlall':'UTF-8'}{/if} {/capture}
{if $field.type === 'radio-buttons' || $field.type === 'checkbox' || $field.type === 'date' || $field.type === 'birthday'} {assign var="effectType" value=""} {else} {assign var="effectType" value="has-float-label"} {/if} {*if ($field.required && !in_array($field.type, ['radio-buttons', 'checkbox']))} {l s='*' mod='thecheckout'} {/if*}
{/if}