08 2024
This commit is contained in:
parent
04d677d37a
commit
bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions
|
|
@ -237,11 +237,33 @@ class UserAccount extends Model
|
|||
}
|
||||
|
||||
public function getPhoneNumber(){
|
||||
if($this->phone && $this->phone !== ""){
|
||||
return ($this->pre_phone ? $this->pre_phone->phone : '')." ".$this->phone;
|
||||
}
|
||||
if($this->mobil && $this->mobil !== ""){
|
||||
return ($this->pre_mobil ? $this->pre_mobil->phone : '')." ".$this->mobil;
|
||||
}
|
||||
if($this->phone && $this->phone !== ""){
|
||||
return ($this->pre_phone ? $this->pre_phone->phone : '')." ".$this->phone;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function getPhoneFull(){
|
||||
if($this->phone && $this->phone !== ""){
|
||||
return ($this->pre_phone ? $this->pre_phone->phone : '')." ".$this->phone;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public function getMobilFull(){
|
||||
if($this->mobil && $this->mobil !== ""){
|
||||
return ($this->pre_mobil ? $this->pre_mobil->phone : '')." ".$this->mobil;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
public function getShippingPhoneFull(){
|
||||
if($this->shipping_phone && $this->shipping_phone !== ""){
|
||||
return ($this->shipping_pre_phone ? $this->shipping_pre_phone->phone : '')." ".$this->shipping_phone;
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue