Sending Directions

Send mail with directions link to user
  1. Mail Template
  2. Access to variable

With Woosmap Javascript API you can send directions mail to your users from your store locator in order to help them going to your shops. Directions mails are customizable with some restrictions due to email client software.

Mail Template

To customize your mail you should provide a custom template.


<div style="color:red;">
    Click on <a href="{{ directions_url }}">this link</a>
     to open direction to {{ properties.store_name }}
Have a nice day

Access to variable

As you can see in the previous example, you are able to access some variables in your mail template.


<div>Les types de {{ properties.store_name }} sont :</div>
    {% for type in properties.types %}
        <li>{{ type }}</li>
    {% endfor %}

The template, the sender and the subject of your mails could be configured when the Project is created.

Was this article helpful?
Have more questions? Submit a request