Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

HTML mails and CSS

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-14-2006, 06:36 AM
 
noms noms is offline
 

Member
  
Join Date: Aug 2005
Posts: 20
 

Default 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?
__________________
X Cart Gold 4.0.18
X Cart Gold 4.1.9
AOM
Special Offers
Reply With Quote
  #2  
Old 12-18-2006, 04:51 AM
 
noms noms is offline
 

Member
  
Join Date: Aug 2005
Posts: 20
 

Default 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...
__________________
X Cart Gold 4.0.18
X Cart Gold 4.1.9
AOM
Special Offers
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020