Jump to content

mkb-112

Recommended Posts

Hi there, 

 

I use PS 1.5.

I have been trying to change the address font size for the delivery slip. I tried to alter the appropriate code in /public_html/pdf/delivery-slip.tpl to a 14pt font, but it does not work:

 

<!-- ADDRESSES -->
<table style="width: 100%">
<tr>
<td style="width: 20%"></td>
<td style="width: 80%">
{if !empty($invoice_address)}
<table style="width: 100%">
<tr>
<td style="width: 50%">
<span style="font-weight: bold; font-size: 14pt; color: #9E9F9E">{l s='Delivery Address' pdf='true'}</span><br />
{$delivery_address}
</td>
<td style="width: 50%">
<span style="font-weight: bold; font-size: 14pt; color: #9E9F9E">{l s='Billing Address' pdf='true'}</span><br />
{$invoice_address}
</td>
</tr>
</table>
{else}
<table style="width: 100%">
<tr>
<td style="width: 50%">
<span style="font-weight: bold; font-size: 14pt; color: #9E9F9E">{l s='Billing & Delivery Address' pdf='true'}</span><br />
{$delivery_address}
</td>
<td style="width: 50%">
 
</td>
 
 
So what did I miss and what can I do? Please help.
 
thnx in advance,
Arjan.
 
 
Edited by mkb-112 (see edit history)
Link to comment
Share on other sites

Ok, solved it myself:

Changed the specific table style under addresses by adding font weight: bold and font-size: 16pt to override the standard 9pt size used for the entire document.

 

<!-- ADDRESSES -->
<table style="width: 100%; font-weight: bold; font-size: 16pt"">
<tr>
<td style="width: 20%"></td>
<td style="width: 80%">
{if !empty($invoice_address)}
<table style="width: 100%">
<tr>
<td style="width: 50%>
<span style="font-weight: bold; font-size: 11pt; color: #9E9F9E">{l s='Delivery Address' pdf='true'}</span><br />
{$delivery_address}
</td>
<td style="width: 50%">
<span style="font-weight: bold; font-size: 11pt; color: #9E9F9E">{l s='Billing Address' pdf='true'}</span><br />
{$invoice_address}
</td>
</tr>
</table>
{else}
<table style="width: 100%,font-weight: bold; font-size: 16pt">
<tr>
<td style="width: 50%">
<span style="font-weight: bold; font-size: 11pt; color: #9E9F9E">{l s='Billing & Delivery Address' pdf='true'}</span><br />
{$delivery_address}
</td>
<td style="width: 50%">
 
</td>
Edited by mkb-112 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...