Support the development of TastyIgniter Learn more
Hello,
Can somebody advise why on customer copy when it’s printed doesn’t recognize commas on address.
Please see below photo attached how it does show,
In the docket code wrap the address in {{! !}} rather than {{ }}
Getting error : ParseError: syntax error, unexpected ‘!’, expecting ‘)’
##### {{ $location_address }} changed to ##### {{! $location_address !}}
Sorry should have been {!! !!} On my phone to hard to type
Now it shows html tags <br /> after printing.
So do a str_replace or whatever on the address to make it work how you want. The dockets are meant to be a starting point, not a one size fits all.
Do str_replace in docket or in php file?
In the docket. It’s laravel blade templates so do an internet search for how to work with that.
Thank you!
If somebody will need string please find below,
{!! str_replace('<br />', ' ', $location_address) !!}