bb22dk Posted December 20, 2013 Share Posted December 20, 2013 Hi I to remove Assign an address alias for future reference. Its required field in prestashop I tried to remove it without luck. 'where can I find it and remove it?Best regard Link to comment Share on other sites More sharing options...
tdr170 Posted December 20, 2013 Share Posted December 20, 2013 Not sure why you need to remove this as this allows customers to have multiple address ie Delivery, Billing and so on. Link to comment Share on other sites More sharing options...
vekia Posted December 20, 2013 Share Posted December 20, 2013 instead of removing it, just hide it with prefilled value like "myAddress" style="display:none;" value="myAddress" Link to comment Share on other sites More sharing options...
bb22dk Posted December 20, 2013 Author Share Posted December 20, 2013 Thank you all for your answer. If I hide it so it will not be required field any more? Where to hide it? The field make confusing to customers because there are other field for other adresses. Best regard Link to comment Share on other sites More sharing options...
vekia Posted December 20, 2013 Share Posted December 20, 2013 address.tpl file located in your theme directory, there is a code like: <p class="required text" id="adress_alias"> <label for="alias">{l s='Please assign an address title for future reference.'} <sup>*</sup></label> <input type="text" id="alias" name="alias" value="{if isset($smarty.post.alias)}{$smarty.post.alias}{else if isset($address->alias)}{$address->alias|escape:'html'}{elseif !$select_address}{l s='My address'}{/if}" /> </p> instead of simple <p class="required text" id="adress_alias"> use <p class="required text" id="adress_alias" style="display:none!important;"> instead of value="{if isset($smarty.post.alias)}{$smarty.post.alias}{else if isset($address->alias)}{$address->alias|escape:'html'}{elseif !$select_address}{l s='My address'}{/if}" use value="{l s='My address'}" 1 Link to comment Share on other sites More sharing options...
bb22dk Posted December 20, 2013 Author Share Posted December 20, 2013 Thank you very much I will try it Best regard Link to comment Share on other sites More sharing options...
DARKF3D3 Posted February 3, 2014 Share Posted February 3, 2014 Hi vekia, I'm also interested reguarding the "alias" field, because i think it's useless and make more difficult to make order for customer not so confident with online shopping. Your method see to be good, pratically the field is hidden but has a value set on it. My question is: setting always the same value for the "alias" could create a problem for multiple address, or there's no problem if a customer has 10 adress with the same name? Link to comment Share on other sites More sharing options...
guixr Posted October 16, 2017 Share Posted October 16, 2017 Hi vekia, I'm also interested reguarding the "alias" field, because i think it's useless and make more difficult to make order for customer not so confident with online shopping. Your method see to be good, pratically the field is hidden but has a value set on it. My question is: setting always the same value for the "alias" could create a problem for multiple address, or there's no problem if a customer has 10 adress with the same name? Bump.. I have the same concern that DARKF3D has and my assumption is that it will just keep overwriting the saved "myAddress" profile causing you to basically never be able to have a different billing and shipping address. Because when you change one, you will automatically be changing the other since the alias is the same. Would love to find a way to make it not require an alias to begin with instead of giving it a dummy value. Link to comment Share on other sites More sharing options...
Recommended Posts