Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Names on shipping and billing address will now default to the main order names #435

Merged
merged 1 commit into from Feb 26, 2016

Conversation

markguinn
Copy link

No description provided.

$address = $this->Member()->{"Default${type}Address"}();
}

if (empty($address->Surname) && empty($address->FirstName)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this check/assign each field separately?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. If, for example they the shipping address had only the last name (which I've seen happen), we wouldn't want it to then inject the first name from the order because the customer probably did that for a reason. I think we only want it to inject if both fields are empty.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, fair enough.

markguinn pushed a commit that referenced this pull request Feb 26, 2016
Names on shipping and billing address will now default to the main order names
@markguinn markguinn merged commit 64a02d8 into silvershop:master Feb 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants