| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
#1
|
|||||||
|
|||||||
![]() If a vendor removes all addresses from his address book, why does the following function return "Administrator" ??
PHP Code:
__________________
5.3.5.8 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Hi @amarquis,
Sorry for the late answer and hope it is still relevant to you. If you look at the implementation of the \XLite\Model\Profile::getName() method you will see its implementation as follows: Code:
In short words, X-Cart tries to pull either billing or shipping address, but if there are none and $useDefault is not passed or passed as true, it will either return 'Customer' or 'Admin' depending on the user type. If the $useDefault param is passed as 'false', it will return the empty string as you would expect. So, you should just call it like this PHP Code:
Tony Quote:
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|