VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: brendonhatcher on May 06, 2012, 15:03:40 PM

Title: Order confirmation email template needs attention
Post by: brendonhatcher on May 06, 2012, 15:03:40 PM
Hi

Email templating is a complex issue due to the lack of common standards and the huge range of email browsers.
See http://www.campaignmonitor.com/css/ for details (I am not affiliated with Campaign Monitor).

The current email template has a style sheet at the <head>.
This doesn't work in GMail and Gmail for Android.

So, the email layout should use a table layout with inline styles for each element.

Finally, there is a broken table element causing the payment details columns to not line up correctly.
components/com_virtuemart/views/invoice/tmpl/invoice_items.php
line 175: <td align="right" class="pricePad" colspan="6"><?php echo $this->orderDetails['paymentName']  ?><td>
Change to: <td align="right" class="pricePad" colspan="6"><?php echo $this->orderDetails['paymentName']  ?></td>

Regards
Brendon
Title: Re: Order confirmation email template needs attention
Post by: 4est on June 28, 2012, 11:48:34 AM
I've been looking to fix that, thanks, it works!

I'm surprised nobody integrated your payment fix in the core.

I could also add that the product name column is way too small, while product SKU is way too big and I don't want it there anyway
Title: Re: Order confirmation email template needs attention
Post by: vigier on June 28, 2012, 22:11:43 PM
This thingy has already been fixed a few versions ago.