Payment Status Variable

I am creating an invoice template using the document editor in v4.5.2 and when I try to use the variable {{ p.status }} it just displays 'A'. I have tried changing the order status from 'Open' to 'Processed' to 'Complete' but it doesn't display these, it just shows 'A'.

I just want a line on the invoice to say something like "Status: [whatever the order status is]"

Am I doing something wrong, or is this the wrong variable to be using?

Many thanks!

CSC uses the language translations for each order status. In Language->Translation do a search for "change_order_status" to get an idea of where and how it is used.

Edit: Sorry. I was thinking email templates in my above response. The invoice itself should be something like {{o.status}} but that is just returning "Array".

Please use

{{ o.status.description }}

instead of

{{ p.status }} 

p - means payment method, not order data

Please use

{{ o.status }} 

instead of

{{ p.status }} 

p - means payment method, not order data

I also just get 'Array' when I used {{ o.status }}

I also just get 'Array' when I used {{ o.status }}

Sorry, correct answer is

{{ o.status.description }}

Sorry, correct answer is

{{ o.status.description }}

This works perfectly, thanks!

This works perfectly, thanks!

You are welcome!