Capitalize fields in invoice
-
Hello, I am having trouble capitalizing billing fields on the invoice.
For instance, the customer typed all in uppercase:
MARY LAPERA
WASHINGTON STREET
NEW YORKBut I want it to display in the invoice like this:
Mary Lapera
Washington Street
New YorkI’ve tried two things:
<span style="text-transform: capitalize;"><?php $this->billing_address(); ?></span>
and also tried:
<span style="text-transform: capitalize;"><?php ucwords(strtolower($this->billing_address())); ?></span>
None work.
How can I achieve this?
Thank you!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Capitalize fields in invoice’ is closed to new replies.