PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Confused by merge tags

  1. Hi,

    I am trying to create a custom layout for the notification e-mail. When I embed the price merge tag it does not appear as price in the notification. But as the text of the label.

    Posted 9 years ago on Tuesday November 20, 2012 | Permalink
  2. David Peralty

    We don't have a price field, but have you tried adding the value marker on the field to see if you get what you want?

    For example: {price:1:value}

    Posted 9 years ago on Tuesday November 20, 2012 | Permalink
  3. I tested it (see below) and no price output with the value marker.

    {Kies uw pakket:25} {Kies uw pakket:25:value}

    Posted 9 years ago on Tuesday November 20, 2012 | Permalink
  4. David Peralty

    Is it a Total field? Again, I need to know the field type to be able to help you with this. Here is our documentation on Merge Tags:

    http://www.gravityhelp.com/documentation/page/Merge_Tags

    Posted 9 years ago on Tuesday November 20, 2012 | Permalink
  5. Hi David,

    Just what I needed, now it works like a charm. Thanks!

    Posted 9 years ago on Tuesday November 20, 2012 | Permalink
  6. Hi David, I have a similar issue, were I like to add a price from a product field with a shipping field value:
    {canvas (price):13.2}+{shipping:44}

    Both fields do have comma separated price tags and if I add them, the shipping price is recognized as point separated price: It should be 20,00 € + 8,90 € = 28,90 €, but the case is, that GF adds 20,00 € + 89 € = 109 €! So I used the value part in shipping field, put into value entry 8.90 and changed the formular to
    {canvas (price):13.2}+{shipping:44:value}.

    But the result is as before 109 €!

    Is this a bug or am I do something wrong?

    Posted 9 years ago on Tuesday November 20, 2012 | Permalink
  7. David Peralty

    Check out this page as well. Near the bottom of the page should help you find the merge tag you need:

    http://www.gravityhelp.com/documentation/page/Merge_Tags

    Posted 9 years ago on Tuesday November 20, 2012 | Permalink
  8. I checked that before, yes and I found two types which could be the one I have to use: the shipping field was setup as shipping with radio buttons for two values. But that doesn’t work. Now I tried a radio button field instead and put into values as comma separated decimals and yes, now it works. Thanks.

    Posted 9 years ago on Tuesday November 20, 2012 | Permalink
  9. Am I correct that it is not possible to use calculations in the confirmation message?

    Posted 9 years ago on Wednesday November 21, 2012 | Permalink
  10. David Peralty

    That is correct. Feel free to leave an example use case and request it in Feature Requests.

    Posted 9 years ago on Wednesday November 21, 2012 | Permalink