Xuân Posted April 29, 2015 Share Posted April 29, 2015 Hi everyone, I tried to add custom fields to one of my form following this tutorial : http://nemops.com/new-customer-address-fields-prestashop/ But once I finished the tuto it doesn't appears in the front office, only in the back... I suppose that stgh in the newer version ( 1.6.0.14 for me ) slightly changed compared to nemo's one since I'm not the only one to get this problem, seeing the comments. I tried to fix my Address.tpl, assuming that the error is here, but couldn't succeed. Ofc, I cleared my cache and forced recompilation. So if anyone has an idea of why this code doesn't work for the FO I'd be really happy ! {if $field_name eq 'my_custom_field'} <div id="vat_area"> <div id="my_custom_field"> <div class="form-group"> <label for="my-custom-field">{l s='My Custom Field'}</label> <input type="text" class="form-control validate" data-validate="{$address_validation.$field_name.validate}" id="my-custom-field" name="my_custom_field" value="{if isset($smarty.post.my_custom_field)}{$smarty.post.my_custom_field}{else}{if isset($address->my_custom_field)}{$address->my_custom_field|escape:'html':'UTF-8'}{/if}{/if}" /> </div> </div> </div> {/if} Thanks in advance and have a good day ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now