Jump to content

table width in mails/order_conf.html


Frevab

Recommended Posts

I am trying to change the colomn widths in the order_conf emails but what ever width I use in the html file the actual email does not show the set width. I attache twee pdf file: one showing the html file when I open it with my browser showing the kolom width I want and the second pdf file shows the email being received as a customer which has a different column width.

How can this be?

It looks like to email ignores the widths set in the html file.

 

 

html.pdf

order_conf-email.pdf

Link to comment
Share on other sites

 

The width in order_conf.html template is set by the first table:

<table style="font-family: Verdana,sans-serif; font-size: 11px; color: #374953; width: 550px;">

Thanks for your reply. The total width of the table but how about the width for each column?

I have:

 

<<tr style="background-color: #94531f; color: #f4f3ef; text-align: center;"><th style="padding: 0.6em 0pt; width: 15%;">Referentie</th><th style="padding: 0.6em 0pt; width: 45%;">Product</th><th style="padding: 0.6em 0pt; width: 10%;">Prijs</th><th style="padding: 0.6em 0pt; width: 10%;">Aantal</th><th style="padding: 0.6em 0pt; width: 20%;">Bedrag</th></tr>

 

but as you can see the width of the last column is 20% and the two before that 10% each. When I view this layout buy opening the html-file it shows the width as stipulated but when I receive the email the module sends out (printed as a pdf file called "order_conf-email.pdf" to be able to show you) the width of the last colomn is much smaller than the previous 2. Even the 3rd and 4th column width looks different although in the html file they are both 10%.  I know that if the text on top of the column is to wide for the column the column width addapts to it, but in this case the text is small enough to fit in the 10% resp 20% width.

 

When I open the email in Outlook and look at the source it looks like this

 

<tr>

<td align="left">

<table style="width: 100%; font-family: Verdana,sans-serif; font-size: 11px; color: #535353;"><!-- Title -->

<tbody>

<tr style="background-color: #94531f; color: #f4f3ef; text-align: center;"><th style="padding: 0.6em 0pt; width: 15%;">Referentie</th><th style="padding: 0.6em 0pt; width: 45%;">Product</th><th style="padding: 0.6em 0pt; width: 10%;">Prijs</th><th style="padding: 0.6em 0pt; width: 10%;">Aantal</th><th style="padding: 0.6em 0pt; width: 20%;">Bedrag</th></tr>

<tr>

<td colspan="5"><tr style="background-color: #EBECEE;">

                                <td style="padding: 0.6em 0.4em;width: 15%;"></td>

                                <td style="padding: 0.6em 0.4em;width: 30%;"><strong>Treverk - Kleur : Beige, Tegelmaat : 30x120cm</strong></td>

                                <td style="padding: 0.6em 0.4em; width: 20%;">€  56,16</td>

                                <td style="padding: 0.6em 0.4em; width: 15%;">1</td>

                                <td style="padding: 0.6em 0.4em; width: 20%;">€  56,16</td>

                            </tr></td>

</tr>

 

The width is kept to 10%, 10% and 20% for the column header for the last 3 columns the width of the {items} is different (20%, 15% and 20% for the last 3 column).

How can this be changed. Does the module change this or Outlook?

Edited by Frevab (see edit history)
Link to comment
Share on other sites

Hi Frevab,

 

Looking at the two attachments, it looks like the Email template you show here is not the email template used as shown in the result:

 

email template has two brown blocks:

post-455771-0-17473800-1397194659_thumb.png

 

But result has not these blocks:

post-455771-0-42403600-1397194695_thumb.png

 

 

Can it be you edited the wrong file?

post-455771-0-11660300-1397194726_thumb.png

 

or should you edit file: mails/nl/order_conf.html instead of mails/nl/order_conf_text.html

 

My 2 cents,

pascal

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...