Jump to content

Assign an address alias for future reference


Recommended Posts

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
Link to comment
Share on other sites

  • 1 month later...

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

  • 3 years later...

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

×
×
  • Create New...