RobinBraves |
04-20-2006 05:34 AM |
Invoice text color
Hello... I know this question has come up before, but the solution the person was given was to add HTML to the text areas. I would like to successfully add the coding to the css.
I need to change all the text on the invoice to #FFCC66, but can't figure out where to put the code:
Code:
{* $Id: order_invoice.tpl,v 1.14.2.16 2005/11/17 08:41:18 max Exp $ *}
{if $customer ne ''}{assign var="_userinfo" value=$customer}{else}{assign var="_userinfo" value=$userinfo}{/if}
{config_load file="$skin_config"}
{if $is_nomail ne 'Y'}
{literal}
<STYLE type="text/css">
BODY {
MARGIN-TOP: 10px;
FONT-SIZE: 12px;
MARGIN-LEFT: 10px;
FONT-FAMILY: arial,helvetica,sans-serif
}
TD {
FONT-SIZE: 12px;
FONT-FAMILY: arial,helvetica,sans-serif
}
TH {
FONT-SIZE: 13px;
FONT-FAMILY: arial,helvetica,sans-serif
}
H1 {
FONT-SIZE: 20px
}
</STYLE>
{/literal}
{/if}
<TABLE cellSpacing="0" cellPadding="0" width="{if $is_nomail eq 'Y'}100%{else}600{/if}" border="0" bgColor="#000000" color="#000000">
<TR>
<TD>
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD valign="top">
[img]{$ImagesDir}/companyname_small.gif[/img]</TD>
<TD width="100%">
<TABLE cellSpacing="0" cellPadding="2" width="100%" border="0">
<TR>
<TD width="30"></TD>
<TD vAlign="top">
<FONT style="FONT-SIZE: 28px"><B style="text-transform: uppercase;">{$lng.lbl_invoice}[/b]</FONT>
{$lng.lbl_date}: {$order.date|date_format:$config.Appearance.datetime_format}
{$lng.lbl_order_id}: #{$order.orderid}
{$lng.lbl_order_status}: {include file="main/order_status.tpl" status=$order.status mode="static"}
{$lng.lbl_payment_method}:
{$order.payment_method}
{$lng.lbl_delivery}:
{$order.shipping|trademark|default:$lng.txt_not_available}
</TD>
<TD vAlign="bottom" align="right">
{$config.Company.company_name}
{$config.Company.location_address}, {$config.Company.location_city}
{$config.Company.location_zipcode}, {$config.Company.location_state_name}
{$config.Company.location_country_name}
{if $config.Company.company_phone}{$lng.lbl_phone_1_title}: {$config.Company.company_phone}
{/if}
{if $config.Company.company_phone_2}{$lng.lbl_phone_2_title}: {$config.Company.company_phone_2}
{/if}
{if $config.Company.company_fax}{$lng.lbl_fax}: {$config.Company.company_fax}
{/if}
{if $config.Company.orders_department}{$lng.lbl_email}: {$config.Company.orders_department}
{/if}
{if $order.applied_taxes}
{foreach from=$order.applied_taxes key=tax_name item=tax}
{$tax.regnumber}
{/foreach}
{/if}
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
<TD bgcolor="#000000">[img]{$ImagesDir}/spacer_black.gif[/img]</TD>
</TR>
<TR>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="45%" border="0">
{if $_userinfo.default_fields.company}
<TR>
<TD>{$lng.lbl_company}:</TD>
<TD>{$order.company}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.firstname}
<TR>
<TD noWrap>{$lng.lbl_first_name}:</TD>
<TD>{$order.firstname}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.lastname}
<TR>
<TD noWrap>{$lng.lbl_last_name}:</TD>
<TD>{$order.lastname}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.phone}
<TR>
<TD>{$lng.lbl_phone}:</TD>
<TD>{$order.phone}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.fax}
<TR>
<TD>{$lng.lbl_fax}:</TD>
<TD>{$order.fax}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.email}
<TR>
<TD>{$lng.lbl_email}:</TD>
<TD>{$order.email}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.url}
<TR>
<TD>{$lng.lbl_url}:</TD>
<TD>{$order.url}</TD>
</TR>
{/if}
{foreach from=$_userinfo.additional_fields item=v}
{if $v.section eq 'C' || $v.section eq 'P'}
<TR>
<TD>{$v.title}:</TD>
<TD>{$v.value}</TD>
</TR>
{/if}
{/foreach}
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
<TR>
<TD width="45%" height="25">{$lng.lbl_billing_address}</TD>
<TD width="10%"></TD>
<TD width="45%" height="25">{$lng.lbl_shipping_address}</TD>
</TR>
<TR>
<TD bgColor="#000000" height="2">[img]{$ImagesDir}/spacer_black.gif[/img]</TD>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</TD>
<TD bgColor="#000000" height="2">[img]{$ImagesDir}/spacer_black.gif[/img]</TD>
</TR>
<TR>
<TD colSpan="3">[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
<TD>
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
{if $_userinfo.default_fields.firstname}
<TR>
<TD>{$lng.lbl_first_name}: </TD>
<TD>{$order.b_firstname}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.lastname}
<TR>
<TD>{$lng.lbl_last_name}: </TD>
<TD>{$order.b_lastname}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.b_address}
<TR>
<TD>{$lng.lbl_address}: </TD>
<TD>{$order.b_address}
{$order.b_address_2}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.b_city}
<TR>
<TD>{$lng.lbl_city}: </TD>
<TD>{$order.b_city}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.b_county && $config.General.use_counties eq 'Y'}
<TR>
<TD>{$lng.lbl_county}: </TD>
<TD>{$order.b_countyname}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.b_state}
<TR>
<TD>{$lng.lbl_state}: </TD>
<TD>{$order.b_statename}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.b_country}
<TR>
<TD>{$lng.lbl_country}: </TD>
<TD>{$order.b_countryname}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.b_zipcode}
<TR>
<TD>{$lng.lbl_zip_code}: </TD>
<TD>{$order.b_zipcode}</TD>
</TR>
{/if}
{foreach from=$_userinfo.additional_fields item=v}
{if $v.section eq 'B'}
<TR>
<TD>{$v.title}:</TD>
<TD>{$v.value}</TD>
</TR>
{/if}
{/foreach}
</TABLE>
</TD>
<TD></TD>
<TD>
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
{if $_userinfo.default_fields.firstname}
<TR>
<TD>{$lng.lbl_first_name}: </TD>
<TD>{$order.s_firstname}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.lastname}
<TR>
<TD>{$lng.lbl_last_name}: </TD>
<TD>{$order.s_lastname}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.s_address}
<TR>
<TD>{$lng.lbl_address}: </TD>
<TD>{$order.s_address}
{$order.s_address_2}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.s_city}
<TR>
<TD>{$lng.lbl_city}: </TD>
<TD>{$order.s_city}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.s_county && $config.General.use_counties eq 'Y'}
<TR>
<TD>{$lng.lbl_county}: </TD>
<TD>{$order.s_countyname}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.s_state}
<TR>
<TD>{$lng.lbl_state}: </TD>
<TD>{$order.s_statename}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.s_country}
<TR>
<TD>{$lng.lbl_country}: </TD>
<TD>{$order.s_countryname}</TD>
</TR>
{/if}
{if $_userinfo.default_fields.s_zipcode}
<TR>
<TD>{$lng.lbl_zip_code}: </TD>
<TD>{$order.s_zipcode}</TD>
</TR>
{/if}
{foreach from=$_userinfo.additional_fields item=v}
{if $v.section eq 'S'}
<TR>
<TD>{$v.title}:</TD>
<TD>{$v.value}</TD>
</TR>
{/if}
{/foreach}
</TABLE>
</TD>
</TR>
{assign var="is_header" value=""}
{foreach from=$_userinfo.additional_fields item=v}
{if $v.section eq 'A'}
{if $is_header eq ''}
<TR>
<TD colspan="3"></TD>
</TR>
<TR>
<TD width="45%" height="25">{$lng.lbl_additional_information}</TD>
<TD colspan="2" width="55%"></TD>
</TR>
<TR>
<TD bgColor="#000000" height="2">[img]{$ImagesDir}/spacer_black.gif[/img]</TD>
<TD colspan="2" width="55%">[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
<TD colSpan="3">[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
<TD><TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
{assign var="is_header" value="E"}
{/if}
<TR valign="top">
<TD>{$v.title}</TD>
<TD>{$v.value}</TD>
</TR>
{/if}
{/foreach}
{if $is_header eq 'E'}
</TABLE></TD>
<TD colspan="2" width="55%"></TD>
</TR>
{/if}
{if $config.Email.show_cc_info eq "Y" and $show_order_details eq "Y"}
<TR>
<TD colspan="3"></TD>
</TR>
<TR>
<TD width="45%" height="25">{$lng.lbl_order_payment_details}</TD>
<TD colspan="2" width="55%"></TD>
</TR>
<TR>
<TD bgColor="#000000" height="2">[img]{$ImagesDir}/spacer_black.gif[/img]</TD>
<TD colspan="2">[img]{$ImagesDir}/spacer.gif[/img]</TD>
<TR>
<TD colSpan="3">[img]{$ImagesDir}/spacer.gif[/img]</TD>
</TR>
<TR>
<TD colspan="3">{$order.details|replace:"\n":"
"}</TD>
</TR>
{/if}
{if $order.netbanx_reference}
<TR>
<TD colspan="3">NetBanx Reference: {$order.netbanx_reference}</TD>
</TR>
{/if}
</TABLE>
{include file="mail/html/order_data.tpl"}
</TD>
</TR>
{if $active_modules.Anti_Fraud eq '' && $show_order_details eq "Y" && ($usertype eq 'A' || ($usertype eq 'P' && $active_modules.Simple_Mode))}
<TR>
<TD align="center">
{$lng.txt_warning_antifraud_disabled}
</TD>
</TR>
{/if}
<TR>
<TD align="center">
<FONT style="FONT-SIZE:12px">{$lng.txt_thank_you_for_purchase}</FONT></TD>
</TR>
</TABLE>
|