Email and PDF template variables
Overview
EasyQuote fills its email and PDF templates with the variables below. Use them in your own templates under Marketing → Communications → Email Templates, as {{var name}}. Which template each email uses, and when it's sent, is on Emails; how to edit one is on Customize email templates.
Every template also gets Magento's standard email variables: store (with store.frontend_name), store_email, store_phone, store_hours, logo_url, logo_alt, logo_width, logo_height and, in HTML templates, template_styles.
Email variables
Quote emails
Used by every email about a quote: New Quote, Quote Approved, New Proposal, the expiration reminders, the expired emails, the follow-up, Proposal Accepted and Proposal Declined (admin) and Approval Request.
| Variable | Value | Notes |
|---|---|---|
quote | The quote object | Call getters, for example {{var quote.getIncrementId()}} or {{var quote.getStatusComment()}} |
quoteId | Entity ID | Use it in the items layout directive below |
customerName | First and last name | |
customerEmail | Customer email | |
comments | Quote comments visible to the customer | |
createdAt | Creation date, formatted | |
expiryDate | Expiry date, formatted | Empty when the quote has none |
proposalExpiryDate | Proposal expiry date, formatted | |
daysToProposalExpiration | Days left until the proposal expires | |
isShippingConfigured | Whether the quote has shipping configured | Wrap address blocks in {{if isShippingConfigured}} |
billingAddress, shippingAddress | Formatted addresses (HTML) | Print with {{var billingAddress|html}} |
shippingMethod | Shipping method | |
quoteUrl | Link to the quote | Customer emails: the quote link with its link hash. Admin emails: the storefront quote page by ID. Guest quotes: empty. |
isGuest | Whether it's a guest quote | |
checkoutLink | Quick Checkout link | Empty when Enable Quick Checkout is off |
The Approval Request email adds two more:
| Variable | Value |
|---|---|
customerLabel | "Name (email)", or the email alone when the quote has no name |
requestedBy | Name of the admin user who asked for approval |
The quote items table comes from a layout directive, not a variable. Since 1.7.4, when Show Product Images in Quotes is on, the totals rows in this table span three columns, so the totals line up under the Total column:
{{layout handle="easyquote_quote_email_items" quote_id=$quoteId area="frontend"}}
Request emails
Used by the Quote Request emails to the admin and to the customer.
| Variable | Value |
|---|---|
request | The request object, for example {{var request.getIncrementId()}} |
requestId, incrementId | Entity ID and request number |
quoteId | ID of the linked quote, if any |
customerName, customerEmail, customerCompany, customerPhone | Customer data from the request |
message | The customer's message |
products | The requested products, as HTML |
createdAt | Creation date, formatted |
customField1_name to customField3_name | Label of each custom field for the request's store view |
customField1_value to customField3_value | What the customer entered |
The request items table: {{layout handle="easyquote_request_email_items" request_id=$requestId area="frontend"}}.
Reply message email
Used by the reply an admin sends from a request.
| Variable | Value |
|---|---|
message | The reply text |
author | Who wrote it |
createdAt | Date of the reply, formatted |
attachment | Download links of the attached files, a list of HTML strings |
requestId, requestIncrementId | The request |
quoteId | The linked quote, only when the customer can see it |
customerName | First and last name |
PDF variables
The quote PDF is rendered from two email templates, EasyQuote: Quote PDF Body Template and EasyQuote: Quote PDF Footer Template, chosen in PDF Body Template and PDF Footer Template of the Export To PDF settings.
| Variable | Value | Notes |
|---|---|---|
quote, quoteId | The quote and its entity ID | |
quoteStatus | Status label | |
customerName, customerEmail | Customer | |
comments | Quote comments | |
createdAt, expiryDate | Dates, formatted | |
isShippingConfigured, billingAddress, shippingAddress, shippingMethod | As in quote emails | |
pdf_logo_url | File path of the logo set for sales PDFs | Empty when no logo is set or the file is missing. The default body template then falls back to the email logo (logo_url, logo_width, logo_height) |
documentTitle | Document Title from the PDF settings, per store view |
The PDF templates don't get quoteUrl, checkoutLink or proposalExpiryDate. The item table in the PDF comes from the layout handle easyquote_pdf_items (in view/base/layout). EasyQuote adds a "Page N of M" line after your footer template, so don't add page numbers yourself. Since 1.7.4 the logo in the default body template is shown at most 190 × 50 pt (set in the PDF stylesheet on the image inside .company-logo), so a high-resolution logo stays sharp. A custom body template keeps this limit only if its logo sits inside an element with the class company-logo.
What's next
- Customize email templates: create your own template and choose it in the settings.
- Quote PDF: what the PDF shows and how to turn it on.