Function Order_Document::has_header_logo() not working
-
When I have no image/logo set for my document, the function
Order_Document::has_header_logo()
($this->has_header_logo()
) in the invoice template gives a wrong result back.When I was debugging a saw that the value of
Order_Document::settings['header_logo']
wasArray ( [default] => )
.So when the function
Order_Document::has_header_logo()
is called it will check is the variable is not empty, but there is an array with an empty value stored in the variable.
At the moment, I use a workaround by checking the settings direly in my invoice template ($this->setting[‘header_logo’]).
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.