Skip to content

avoid empty string in adress names to avoid conflict with delivery pl… #76

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Orders/Order/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ public function get_formatted_address() {
}

private function get_first_name() {
return ! empty( $this->sf_address['firstName'] ) ? $this->sf_address['firstName'] : '';
return ! empty( $this->sf_address['firstName'] ) ? $this->sf_address['firstName'] : '_';
}

private function get_last_name() {
return ! empty( $this->sf_address['lastName'] ) ? $this->sf_address['lastName'] : '';
return ! empty( $this->sf_address['lastName'] ) ? $this->sf_address['lastName'] : '_';
}

private function get_company() {
Expand Down