View Single Post
  #1  
Old 07-11-2007, 01:46 AM
 
Allwrite Allwrite is offline
 

Member
  
Join Date: Feb 2007
Location: The Netherlands
Posts: 23
 

Default How to use smarty tags in language variable

Hi everyone,

I am editing the file /mail/html/order_invoice.tpl because I want to include our bank details. So I created a custom language entry (eml_invoice_bank_transfer) that contains some basic HTML code. The problem I have is that on the last line I want to include a smarty tag, like so:

PHP Code:
<font color="#C00000"><b>Please mention the order id ({$order.orderid}) when effecting payment.</b></font><br /> 

So, in theory our customers will see the following text on their invoice/e-mail:

Please mention the order id (115) when effecting payment.

But this doesn't work as the
{$order.orderid} is not converted to the actual order number. The final text is just displayed as:

Please mention the order id ({$order.orderid}) when effecting payment.

Does anyone know how I can accomplish this? I'm new to X-Cart so I don't quite understand how it all works. If I include $order.orderid in order_invoice.tpl it works just fine. Thanks a lot in advance!
__________________
Dennis Gaasbeek

www.allwrite.eu (work in progress, not active yet)
X-Cart Gold v4.1.8
Reply With Quote