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.

How can I customize email template (tables)?

  1. Fika
    Member

    Hi,

    I am using the notifications emails to send an email to a client when they fill out the form. I am using the "{all_fields}" snippet to generate a table of all the fields they have filled out.

    It works fine but the formatting is not what I desire.

    Which file can I customize to edit the css to how this table is looking?

    I also want to remove the QTY column altogether as it does not apply in my case as I use product dropdowns to give different pricing. Where can I remove this qty column from the all fields table.

    Thanks

    Posted 12 years ago on Thursday April 19, 2012 | Permalink
  2. David Peralty

    It sounds like what you don't want to use is the all fields snippet. If you want to edit how things are set-up you'll have to put in each field and HTML around it to control how it is displayed. This will also take care of removing the QTY column.

    Posted 12 years ago on Thursday April 19, 2012 | Permalink
  3. Fika
    Member

    Hi Dave, can you provide a quick example for this?

    For example if I want to add one of my pricing fields I can add it separately by adding the snippet

    {Pricing_Field:45}

    Are you saying, put HTML around this?

    <div class="customize">
    {Pricing_Field:45}
    </div>

    ?

    Also how would this get rid of the qty column as that would still be shown?

    maybe I am misunderstanding exactly what you mean

    Thanks

    Posted 12 years ago on Thursday April 19, 2012 | Permalink
  4. David Peralty

    With HTML e-mails you can't usually pull an external stylesheet, so you'll want to do old HTML 4.0 inline styles. So you would want something like <div style='font-weight: bold;'>{Pricing_Field:45}</div> (bad example, but hopefully you get my meaning)

    The e-mail will only display the fields you add to the notification. So if you don't want the qty column, then you don't need to include it in your notification.

    Posted 12 years ago on Thursday April 19, 2012 | Permalink
  5. Fika
    Member

    I see what you mean, but maybe I need to clarify what I do need in the email.

    Right now I get a table which gives me columns in the order table as follows:

    Product | Qty | Unit Price | Price

    my pricing is calculated in the product dropdown as I scale for different quantities and pre-calculate that within the dropdown. So therefore the qty in this case is always 1 and redundant. Looking at it now the unit price is also redundant.

    I want to keep the table as is, but just remove those 2 columns from the template that is sent.

    Does that make sense?

    Posted 12 years ago on Thursday April 19, 2012 | Permalink
  6. David Peralty

    It does make sense, but what I'm trying to tell you is that there is no easy way to strip out things from the all fields call, it is set-up to pull all the fields.

    If you want just the product and price fields, you'll need to put them by themselves. Then check to see what the styled result looks like and customize using html/css if needed.

    Posted 12 years ago on Thursday April 19, 2012 | Permalink