Jump to content

Require 'Alias' field when entering first address / adding one while in check-out process. (PS 1.7)


Apury
 Share

Recommended Posts

Hello there! 

I've already taken a look into FormField.php and CustomerAddressFormatter.php and couldn't quite figure it out. 

What I'm trying to achieve is:

  • To display the 'alias' field while a customer adds his first (or an following) address via checkout. As of now that field is only visible if editing an address in the 'your account' page.
  • Make the 'alias' field required. 

Given that the difference in fields between adding an address outside of the 'your account' page and the one in the account-page equals 10 vs. 11, I figured there must be two different .php files and that the adjustment must be relatively quick and simple. However, after spending 7 hours on it so far, I figured I'll ask for help.

Share this post


Link to post
Share on other sites

After some further search I found the address-form.tpl to contain the relevant section. I now got the alias to show in the desired spot. What I'm now struggling with is making it be required. I suspect CustomerAddressFormatter.php to be the relevant file.

Share this post


Link to post
Share on other sites

  • 2 years later...

Hi,

Where and what exactly did you enter in the address-form.tpl?

I would like to have the alias field visible in the checkout, but I cannot find what kind of code and on where it should be set.

Thanks already,

Kiona

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

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