Jump to content

Error with validator


Recommended Posts

Good day we have some error, makes one module. How fixe

Error with this
 

<div class="field form_group">
                            <label class="field_name">{if $ocpc_field.required}<sup class="ocpc_required">*</sup>{/if}{l s=$ocpc_field.label mod='oneclickproductcheckout'}:</label>
                            <input class="text" type="{if $ocpc_field.name == 'password'}password{else}text{/if}" name="{$ocpc_field.name|escape:'htmlall':'UTF-8'}" value="{$auto_complete_fields[$ocpc_field.name]|escape:'quotes':'UTF-8'}" id="ocpc_{$ocpc_field.name|escape:'htmlall':'UTF-8'}">
                        
                        </div>
                        
                    {/foreach}
                    
                    <input type="hidden" value="{$product_obj->id}" name="id_product" id="id_product">
                    
                    <div class="submit">
                        <button type="button" class="submitOneClickCheckout">
                            {$OCPC_SUBMIT_TEXT.$id_default_lang|escape:'quotes':'UTF-8'}
                        </button>
                    </div>

Validator send error

Warning: The first occurrence of ID id_product was here.

<input type="hidden" value="5994" name="id_product" id="id_product">

IF delete id=id_product module not work

Error 2

Duplicate ID ocpc_email.

From line 12, column 158132; to line 12, column 158201

:</label> <input class="text" type="text" name="email" value="" id="ocpc_email"></div>

Warning: The first occurrence of ID ocpc_email was here.

From line 12, column 62518; to line 12, column 62587

:</label> <input class="text" type="text" name="email" value="" id="ocpc_email"></div>

Error: Duplicate ID ocpc_phone.

From line 12, column 158314; to line 12, column 158383

:</label> <input class="text" type="text" name="phone" value="" id="ocpc_phone"></div>

its with code

 

 <input class="text" type="{if $ocpc_field.name == 'password'}password{else}text{/if}" name="{$ocpc_field.name|escape:'htmlall':'UTF-8'}" value="{$auto_complete_fields[$ocpc_field.name]|escape:'quotes':'UTF-8'}" id="ocpc_{$ocpc_field.name|escape:'htmlall':'UTF-8'}">
                        

How fixed this??

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...