{* * 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 *} {math assign='num_col' equation='12/a' a=$cant_fields}
{if $field->type_control eq $OPC_GLOBALS->type_control->textbox} name == 'address' && $CONFIGS.OPC_AUTOCOMPLETE_GOOGLE_ADDRESS}autocomplete="off"{/if} {if !$field->required}data-validation-optional="true"{/if} {if isset($field->error_message) && $field->error_message neq ''}data-validation-error-msg="{$field->error_message}"{/if} {if $OPC_GLOBALS->type->{$field->type} eq 'string'}data-validation-length="max{$field->size|intval}" maxlength="{$field->size|intval}"{/if} {*if $field->size neq 0}maxlength="{$field->size}"{/if*} /> {elseif $field->type_control eq $OPC_GLOBALS->type_control->select} {elseif $field->type_control eq $OPC_GLOBALS->type_control->checkbox} {elseif $field->type_control eq $OPC_GLOBALS->type_control->radio}
{foreach from=$field->options.data item='item' name='f_options'} {math assign='num_col_option' equation='12/a' a=$smarty.foreach.f_options.total}
{/foreach}
{elseif $field->type_control eq $OPC_GLOBALS->type_control->textarea} {/if}
{*if $CONFIGS.OPC_AUTO_ADDRESS_GEONAMES and $field->name == 'address1'}
{/if*}