When a customer opts to create an account, there is a field where they can input additional information relating to their order.
I would like this field to appear in the Guest Checkout also. I've made some changes to the code but I can't get the field to appear. This is what I have done so far:
In order-opc-new-account.tpl, I have added the code in blue around line 241
{if !$stateExist} <div class="required id_state form-group unvisible"> <label for="id_state">{l s='State'} <sup>*</sup></label> <select name="id_state" id="id_state" class="form-control"> <option value="">-</option> </select> </div> {/if} {if !$dniExist} <div class="required dni form-group"> <label for="dni">{l s='Identification number'} <sup>*</sup></label> <input type="text" class="text form-control validate" name="dni" id="dni" data-validate="isDniLite" value="{if isset($guestInformations) && isset($guestInformations.dni) && $guestInformations.dni}{$guestInformations.dni}{/if}" /> <span class="form_info">{l s='DNI / NIF / NIE'}</span> </div> {/if} <div class="form-group is_customer_param"> <label for="other">{l s='Additional information'}</label> <textarea class="form-control" name="other" id="other" cols="26" rows="7" value="{if isset($guestInformations) && isset($guestInformations.other) && $guestInformations.other}{$guestInformations.other}{/if}" /></textarea> </div> {if isset($one_phone_at_least) && $one_phone_at_least} <p class="inline-infos required is_customer_param">{l s='You must register at least one phone number.'}</p> {/if} <div class="form-group is_customer_param"> <label for="phone">{l s='Home phone'}</label> <input type="text" class="text form-control validate" name="phone" id="phone" data-validate="isPhoneNumber" value="{if isset($guestInformations) && isset($guestInformations.phone) && $guestInformations.phone}{$guestInformations.phone}{/if}" /> </div> <div class="{if isset($one_phone_at_least) && $one_phone_at_least}required {/if}form-group"> <label for="phone_mobile">{l s='Mobile phone'}{if isset($one_phone_at_least) && $one_phone_at_least} <sup>*
In authentication.tpl, I have added the following code in blue to the GUEST_CHECKOUT_ENABLE section around line 264:
<label for="postcode">{l s='Zip/Postal Code'} <sup>*</sup></label> <input type="text" class="form-control" name="postcode" id="postcode" value="{if isset($smarty.post.postcode)}{$smarty.post.postcode}{/if}" onblur="$('#postcode').val($('#postcode').val().toUpperCase());" /> </div> {/if} <p class="textarea form-group"> <label for="other">{l s='Additional information'}</label> <textarea class="form-control" name="other" id="other" cols="26" rows="7">{if isset($smarty.post.other)}{$smarty.post.other}{/if}</textarea> </p> {if $dniExist eq false} <div class="required form-group dni_invoice"> <label for="dni">{l s='Identification number'} <sup>*</sup></label> <input type="text" class="text form-control" name="dni_invoice" id="dni_invoice" value="{if isset($guestInformations) && $guestInformations.dni_invoice}{$guestInformations.dni_invoice}{/if}" /> <span class="form_info">{l s='DNI / NIF / NIE'}</span> </div>
What am I missing, what else do I need to do to get this to work? Can anyone help?
Thanks