A great addition to your AutoResponderMax emails is to allow customers to share products on Facebook right from the email. Setting this up might be a little tricky if you are not familiar with HTML or the Liquid Templating Language, but step-by-step instructions are provided below.

Note that these instructions assume you’re using the latest version of the default email template in AutoResponderMax. You can reset your template to the default template if you need to, but you will need to reincorporate any customizations you previously made to the template after you reset to the default template.

  1. Log in to the AutoResponderMax dashboard and select the app you’d like to add a Facebook Share link to.
  2. If the app is currently activated, then Deactivate it by clicking on the “Deactivate!” button. You’re just doing this so that while you’re editing the email template AutoResponderMax won’t send that app’s emails. This way, you can send a test email before making your changes live.
  3. Click on “Customize your email” and copy and paste the email template code into a text file on your local computer. It’s important that you use a program like Notepad on Windows or TextEdit on Mac (if TextEdit then click Format -> Make Plain Text before pasting) instead of a word processor such as Microsoft Word. You don’t want to have a word processor try to add formatting to the code. This step is needed so you have a backup copy of the email template code in case you want to put the email template back to how it was.
  4. If you’ll be sharing a product, then you’ll need to build the link to share in the template code.
    • If editing the Surveys app email template, then after the code (which isn’t part of the default Surveys app template):
      {% for order_detail in order_details %}

      paste this code:

      {% capture product_url %}/ProductDetails.asp?ProductCode={{order_detail.productcode | escape_url}}{% endcapture %}
      {% capture product_url %}{{store.host_name | create_url_with_tagging:product_url,tracking_tag}}{% endcapture %}
      {% capture product_facebook_share_link %}http://www.facebook.com/sharer.php?u={{product_url | escape_url }}&t={{order_detail.productname | strip_html | escape_url }}{% endcapture %}
    • If editing the Product Reviews – PowerReviews(R) Express app email template, then after the code
      {% for order_detail in order_details %}

      paste this code:

      {% capture product_url %}/ProductDetails.asp?ProductCode={{order_detail.productcode | escape_url}}{% endcapture %}
      {% capture product_url %}{{store.host_name | create_url_with_tagging:product_url,tracking_tag}}{% endcapture %}
      {% capture product_facebook_share_link %}http://www.facebook.com/sharer.php?u={{product_url | escape_url }}&t={{order_detail.productname | strip_html | escape_url }}{% endcapture %}
    • If editing the Abandoned Cart Recovery app email template, then after the code
      {% capture product_url %}{{store.host_name | create_url_with_tagging:product_url,tracking_tag}}{% endcapture %}

      paste this code:

      {% capture product_facebook_share_link %}http://www.facebook.com/sharer.php?u={{product_url | escape_url }}&t={{item.productname | strip_html | escape_url }}{% endcapture %}
    • If editing the Product Reviews – Volusion(R) app email template, then after the code
      {% for order_detail in order_details %}

      paste this code:

      {% capture product_url %}/ProductDetails.asp?ProductCode={{order_detail.productcode | escape_url}}{% endcapture %}
      {% capture product_url %}{{store.host_name | create_url_with_tagging:product_url,tracking_tag}}{% endcapture %}
      {% capture product_facebook_share_link %}http://www.facebook.com/sharer.php?u={{product_url | escape_url }}&t={{order_detail.productname | strip_html | escape_url }}{% endcapture %}
    • If editing the Cross-Sell app email template, then after the code
      {% for order_detail in order_details limit:1 %}
      {% capture product_url %}/ProductDetails.asp?ProductCode={{order_detail.productcode | escape_url}}{% endcapture %}
      {% capture product_url %}{{store.host_name | create_url_with_tagging:product_url,tracking_tag}}{% endcapture %}

      paste this code:

      {% capture product_facebook_share_link %}http://www.facebook.com/sharer.php?u={{product_url | escape_url }}&t={{order_detail.productname | strip_html | escape_url }}{% endcapture %}

      AND after the code

      {% for suggestion in suggestions %}
      {% capture product_url %}/ProductDetails.asp?ProductCode={{suggestion.productcode | escape_url}}{% endcapture %}
      {% capture product_url %}{{store.host_name | create_url_with_tagging:product_url,tracking_tag}}{% endcapture %}

      paste this code:

      {% capture product_facebook_share_link %}http://www.facebook.com/sharer.php?u={{product_url | escape_url }}&t={{suggestion.productname | strip_html | escape_url }}{% endcapture %}
    • If editing the Customer Follow-up app email template, then after the code (which isn’t part of the default Surveys app template):
      {% for order_detail in order_details %}

      paste this code:

      {% capture product_url %}/ProductDetails.asp?ProductCode={{order_detail.productcode | escape_url}}{% endcapture %}
      {% capture product_url %}{{store.host_name | create_url_with_tagging:product_url,tracking_tag}}{% endcapture %}
      {% capture product_facebook_share_link %}http://www.facebook.com/sharer.php?u={{product_url | escape_url }}&t={{order_detail.productname | strip_html | escape_url }}{% endcapture %}
  5. Next you’ll add the Facebook Share link to your email template. These examples use a text link, but if you’d like an image displayed as a link then you can modify the code to fit your needs.
    • If adding a product link, then add this code to your email template:
      <a href="{{ product_facebook_share_link | escape }}">Share on Facebook</a>
    • If adding a link to your home page, then add this code to your email template:
      <a href="http://www.facebook.com/sharer.php?u={{ store.host_name | prepend:'http://' | append:'/' | escape_url | escape }}&amp;t={{ store.name | escape_url | escape }}">Share on Facebook</a>
  6. Once you’ve made all the changes you want to your email template and clicked the “Save Settings” button, click on the “Send Test Email” button and send yourself a test email.
  7. Once your test email looks good, click on the “Activate!” button to turn the app back on. You’ll be asked if you want to “Run Now” which you can do if you wish. Otherwise, the app will run at its normally scheduled time.