| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Invoice Email Styling | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Invoice Email Styling
How can I include custom styling to the invoice email sent after a purchase is made? I have styled and modified the invoice confirmation and the "Print Invoice" pages, but for some reason the email does not retain any of the stylings.
The main mods were made in the skin/common/files/mail/html/order-invoice.tpl file, and of course a css file. I am on X-Cart 4.6.1 Thank you all.
__________________
Thanks. |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Invoice Email Styling
Not all e-mail clients render CSS styles correctly.
You may try to add your custom styles into the order_invoice.tpl template as a "<STYLE>...</STYLE>" block. Do the custom styles take effect in this case?
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||
|
|||||||
Re: Invoice Email Styling
Hi Alex, I have tested adding the styles in the page, and it did not change the email styles. It keeps the new styles in the order confirmation page and the print invoice page, but not the actual email. See link to screenshots:
CONFIRMATION PAGE: http://simetriastudio.com/C/TST/confirmation-page.jpg PRINT INVOICE PAGE: http://simetriastudio.com/C/TST/print-invoice-page.jpg EMAIL RECEIVED: http://simetriastudio.com/C/TST/email-received.jpg In addition to the styles, the product thumbnails did not carry over to the email either. I have tested this on Yahoo mail, OSX Mail, and Gmail. They all render the email exactly the same as in the screenshot. Do I need to add anything to the <style>...</style> in the tpl file to let it know its css – similar to js code in the tpl file needs the {literal} tags? Serge
__________________
Thanks. |
|||||||
#4
|
|||||||
|
|||||||
Re: Invoice Email Styling
Alex, I modified the style tags to be – <style type="text/css"> {literal} .... css styles in here .... {/literal} </style> – and this worked!! the email kept and took the styles.
BUT, I am still having issues with the thumbnails not coming into the email. Any idea why? Thanks, Sergio
__________________
Thanks. |
|||||||
|
|||
X-Cart forums © 2001-2020
|