Permalink
Browse files

Add SiteURL as a template var for the mailer

  • Loading branch information...
biilmann committed Nov 18, 2017
1 parent 76c5deb commit 046297a60983bfcdabec8083752f944f51dbae8f
Showing with 3 additions and 0 deletions.
  1. +3 −0 mailer/mailer.go
View
@@ -116,6 +116,7 @@ func (m *mailer) OrderConfirmationMail(transaction *models.Transaction) error {
m.Config.Mailer.Templates.OrderConfirmation,
defaultConfirmationTemplate,
map[string]interface{}{
"SiteURL": m.Config.SiteURL,
"Order": transaction.Order,
"Transaction": transaction,
},
@@ -141,6 +142,7 @@ func (m *mailer) OrderReceivedMail(transaction *models.Transaction) error {
m.Config.Mailer.Templates.OrderReceived,
defaultReceivedTemplate,
map[string]interface{}{
"SiteURL": m.Config.SiteURL,
"Order": transaction.Order,
"Transaction": transaction,
},
@@ -153,6 +155,7 @@ func (m *mailer) OrderConfirmationMailBody(transaction *models.Transaction, temp
}
return m.TemplateMailer.MailBody(templateURL, defaultReceivedTemplate, map[string]interface{}{
"SiteURL": m.Config.SiteURL,
"Order": transaction.Order,
"Transaction": transaction,
})

0 comments on commit 046297a

Please sign in to comment.