Hi HubSpot Team,
I’m customizing a quote template (based on the Modern theme), and I’m having issues displaying billing and shipping address info.
Here’s the code I’m using:
```html
<p><strong>Bill To:</strong> {{ template_data.quote.billing_address }}</p>
<p><strong>Ship To:</strong> {{ template_data.quote.shipping_address }}</p>
Hi @VPawar5,
Thanks for reaching out to the Community!
I would like to invite some members of our community who may offer valuable insights.— hey @GiantFocal, @CarolinaDeMares, @SteveHTM - Could you share your advice with @VPawar5?
Thanks for taking a look!
Diana
@VPawar5 - I always find it useful to try and debug this kind of token reference by temporarily displaying the available data using pprint. As in:
{{template_data.quote | pprint}}
This gives you confidence that the data you want is actually available under the chosen name.
Steve
Hi @VPawar5,
As @SteveHTM mentioned, I am usually trying identifying the issue by temporarily displaying the available data using:
<pre>{{ template_data|pprint }}</pre>
Then you can copy and paste the output into a text editor or elsewhere to check whether the value you need is present.
Tip:
Additionally, if your quote template extends layout/base.html, you can directly access the value using {{ QUOTE }} instead of {{ template_data.quote }}, since these values are already assigned to variables in the base layout (please refer to the attached screenshot).
Regards,
Kosala