Forum

Thread tagged as: Question, Shop

Adding variable to Shop admin email

I'm trying to add the customer's name to the subject of the email that the admin receives when an order is placed.

In the perch admin under Shop > Emails I've tried this for the subject line field but to no avail:

An order has been placed by {billing_first_name} {billing_last_name}
Stephen Turvey

Stephen Turvey 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

In your template, change:

<title><perch:shop id="subject" type="text" /></title>

to

<title>An order has been placed by <perch:shop id="billing_first_name" type="hidden" /> <perch:shop id="billing_last_name" type="hidden" /></title>