Adding a Metafield to Your Template
Requires Pro Plan
Template HTML and Liquid code in the app's "templates" section can be edited. There are several templates, but the two most likely to be changed are Customer PDF and Email Templates.
When editing an HTML table you will want to make sure that you add a column in the header and also in the table body. The table must have the same number of columns in both.
Meta Field Addition Example
In this example, SKU and MSRP (metafields) are added.
The shortcode to display the SKU is {{line_item.sku}}
The code needed to display a metafield based on example. Depending on the namespace and key of the metafield some adjustments may be needed.
Adding Currency Value
The value of the MSRP field is a currency object and not a regular numeric or text field. This means that the "value" of the meta field will actually contain a JSON object. If you want to display a specific value of a JSON object, you will need to use the "from_json" liquid filter.
The example below would display the "amount" property of the currency object
If some of the quotes do not have the information, it is most likely because the quote was created before the meta field option was turned on in your settings***
