X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Invoice Email Styling (https://forum.x-cart.com/showthread.php?t=75716)

simetria 10-12-2017 11:27 AM

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.

qualiteam 10-16-2017 09:39 PM

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?

simetria 10-20-2017 07:40 AM

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

simetria 10-20-2017 08:30 AM

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


All times are GMT -8. The time now is 05:14 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.