08 2024
This commit is contained in:
parent
3a81b8a0f5
commit
7ec90d7e18
1183 changed files with 47973 additions and 8742 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