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)
-   -   HTML mails and CSS (https://forum.x-cart.com/showthread.php?t=27359)

noms 12-14-2006 06:36 AM

HTML mails and CSS
 
Hi,
Does anyone know if there are problems when applying CSS into HTML mails templates?

I try to use the default: {config_load file="$skin_config"} ... but I've found no way to apply the defined styles
(i.e <TD class="ProductTitle"> has no effect)

The only solution I've seen is order_invoice.tpl using a {literal} <STYLE type="text/css"> ....

What's the use of the {config_load file="$skin_config"} then?
Any idea?

noms 12-18-2006 04:51 AM

Re: HTML mails and CSS
 
Hi,
I haven't found the solution to the {config_load file="$skin_config"} issue ...
But I've found a work around that might help whoever runs into the same issue: Styles can also be defined in html_message_template.tpl.
You can use something like this:

<head>
{literal}
<STYLE type="text/css">
<!--
BODY,DIV,TH,TD {FONT-FAMILY: Verdana, Arial, Helvetica, Sans-serif; font-size:12px;}
-->
</STYLE>
{/literal}
</head>

And they will be used by all the HTML mails...


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

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