Jump to content
bb22dk

Assign an address alias for future reference

Recommended Posts

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

Share this post


Link to post
Share on other sites

Not sure why you need to remove this as this allows customers to have multiple address ie Delivery, Billing and so on.

Share this post


Link to post
Share on other sites

instead of removing it, just hide it with prefilled value like "myAddress"

 

style="display:none;" value="myAddress"

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

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'}"
  • Like 1

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More