I want to edit my email template of order confirmation from the backend and use the given variable from the variables column. But it shows the value of every order attribute null in the backend. The record present in the variable column is of the most recent order, and I have some records of my custom attribute column named “order_comments” in the “s_order_attributes” table. I want to use the “{$attributes.order_comments}” variable but since it’s showing it’s value null I cannot see any data in it.
Below I have attached images.
The image of the backend email template.
Image of the database custom attribute field.