In This Article:

    A supporter's most recent donation in dollars-and-cents

    In This Article:

      When you create a donation, you have the ability to use the most recent donation for calculations.  That's available via the "Add dynamic content" widget in the email blast editor.

      2017-07-12_1501.png

      Unfortunately, the resulting amount is not very attractive.  A donation of $25 appears simply as "25". If you'd prefer a most recent donation that has both dollars and cents (like "25.00"), then read on!

      Solution

      The solution is to add a SalsaScript script to the email blast that finds and formats the most recent donation amount.  SalsaScript is the native language for Salsa.  It runs on the server as the email blast is being prepared to send.  The best part is that your supporters will not see the script, but they will see the formatted amount.

      Installation

      Here are some steps that you can use to add the solution to your email blast.

      1. Edit the email blast.  Click here to learn more about creating and editing email blasts.
      2. Click on the "Content" tab in the email blast editor.

      2017-07-12_1510.png

      1. Click on the "Source" button in the What You See Is What You Get (WYSIWYG) editor.  If there's already content in the email blast, then it will appear as HTML . (basically really messy text).

      2017-07-12_1512.png

      1. Position the cursor in the top left corner of the HTML content and press enter to create an empty line.

      2017-07-12_1553.png

      1. Click here to see the page where the solution lives.
      2. Locate and click the "Raw" button.  A new window will appear that contains just the solution.
      3. Copy the contents of the window and close it.
      4. Return to the email blast editor.
      5. Paste the copied text into the newly inserted line in the HTML content.
      6. Save the email blast.
      7. Click on the "Text Content" tab and copy the HTML Content into the Text Content.
      8. Save the email blast.

      Positioning the amount

      Salsa will create a SalsaScript variable containing the dollars-and-cents amount of the most recent donation. The variable is named "amount". Please note that the "amount" variable is not a merge field.   It requires a special process to place "amount" where you want it to go.  Here are some steps that you can use.

      1. Click the "Content" tab for the email blast.

      2017-07-12_1510.png

      1. Click the "HTML Content" tab in the editor.  If there's already content, then you should see the content.
      2. Position the cursor where "amount" should appear and type in "pizza".  (It doesn't really matter what you type in as long as it stands out in the email blast.) Use "pizza" everywhere that you'd like the dollars-and-sense amount of the most recent donation to appear.  For example:

      2017-07-12_1534.png

      1. Click the "Source" button in the WYSIWYG editor menu. The contents will be converted to HTML.

      2017-07-12_1512.png

      1. Copy this text.  It's the instructions that Salsa needs to insert the "amount" variable.

      $<?= amount ?>

      1. Find all instances of "pizza" in the email blast and replace each with the copied text.

      2017-07-12_1537.png

      when you are done, the source will look something like this:

      2017-07-12_1539.png

      1. Save the email blast.
      2. Click on the Text Content tab and copy the HTML Content.
      3. Save the email blast.
      4. Test! Click here for an article that shows how to preview email blasts without sending any  test messages.

      Questions?

      If you have any questions, then please gather this information.

      • Your organization_KEY
      • Your chapter_KEY if you are in a chapter
      • The email_blast_KEY that you are viewing
      • A screenshot of the page, if possible.

      Send this information to support@salsalabs.com, and we'll be glad to help

      Was this article helpful?
      0 out of 0 found this helpful
      Have more questions? Submit a request

      Comments

      0 comments

      Please sign in to leave a comment.