{"id":3940,"date":"2015-09-22T21:55:51","date_gmt":"2015-09-22T21:55:51","guid":{"rendered":"https:\/\/139.59.23.56\/predictive3\/?p=3940"},"modified":"2016-04-05T22:36:43","modified_gmt":"2016-04-05T22:36:43","slug":"currency-merge-fields","status":"publish","type":"post","link":"https:\/\/help.predictiveresponse.com\/?p=3940","title":{"rendered":"Currency Merge Fields"},"content":{"rendered":"<p>To help ensure that your currency field displays as desired in your campaign email, follow these steps:<\/p>\n<ol>\n<li>Create a custom formula text field.<\/li>\n<li><strong>Use this formula below &#8211;\u00a0replace yourFieldNameHere with the actual currency field you want to use.<\/strong><\/li>\n<li>Go to the\u00a0Predictive Admin tab &gt; Merge Fields page and add the new field to your list of merged fields. Click Save.<\/li>\n<li>Go back to your email campaign and click the Synchronize button.<\/li>\n<li>The new field will now be available as a merge field in the email editor.<\/li>\n<li>Add the field to your email (make sure to prepend it with a &#8220;$&#8221;) and send a test to confirm it displays as desired.<\/li>\n<\/ol>\n<pre>IF(\r\n yourFieldNameHere&gt;= 1000000,\r\n TEXT(FLOOR(yourFieldNameHere \/ 1000000)) &amp; \",\",\r\n \"\") &amp;\r\n IF(\r\n yourFieldNameHere &gt;= 1000,\r\n RIGHT(TEXT(FLOOR(yourFieldNameHere \/ 1000)), 3) &amp; \",\",\r\n \"\") &amp;\r\n RIGHT(TEXT(FLOOR(yourFieldNameHere)), 3) &amp; \".\" &amp;\r\n IF(\r\n MOD(yourFieldNameHere, 1) * 100 &lt; 10,\r\n \"0\" &amp; TEXT(ROUND(MOD(yourFieldNameHere , 1), 2) * 100),\r\n TEXT(MIN(ROUND(MOD(yourFieldNameHere , 1), 2) * 100, 99))\r\n )<\/pre>\n<h6 style=\"text-align: right;\">Last update 09\/2015<\/h6>\n","protected":false},"excerpt":{"rendered":"<p>To help ensure that your currency field displays as desired in your campaign email, follow these steps: Create a custom formula text field. Use this formula below &#8211;\u00a0replace yourFieldNameHere with the actual currency field you want to use. Go to the\u00a0Predictive Admin tab &gt; Merge Fields page and add the new field to your list [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=\/wp\/v2\/posts\/3940"}],"collection":[{"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3940"}],"version-history":[{"count":7,"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=\/wp\/v2\/posts\/3940\/revisions"}],"predecessor-version":[{"id":4197,"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=\/wp\/v2\/posts\/3940\/revisions\/4197"}],"wp:attachment":[{"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.predictiveresponse.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}