About new order email notification

New Member
1 0 0

Hello! I'm working on including the new order's pickup location in the new order email notification.

I've included the following code in the new order notification template. 


{% if order.pickup_in_store? %}
  <h4>Pickup Location</h4>
  <p>{{ location.name }}</p>
{% endif %}


 It does go into the if case. However the {{ location.name }} is not showing anything. Is there any way to include the pickup location in the new order email? Thanks a lot.