View Single Post
  #2  
Old 09-28-2007, 12:56 PM
 
jillsybte jillsybte is offline
 

eXpert
  
Join Date: Jun 2006
Location: New York, USA
Posts: 389
 

Thumbs up Re: Proper variables to use in language entries

I did some digging and realized where I was going wrong. I had thought there were set variables for some config items, but there aren't. You have to define them in the template. So, for instance, to get my support email address to show up in my privacy statement, I had to do the following.

I had to edit x-cartdir/skin1/help/business.tpl. I changed the following line:

Quote:
{$lng.txt_privacy_statement}

to

Quote:
{$lng.txt_privacy_statement|substitute:"support":$ config.Company.support_department}

Then in the Language Editor for txt_privacy_statement, I placed the variable {{support}} wherever I want the email address to appear. Whatever you put in the quotes after substitute in the template, you have to put between double curly brackets in the language variable.

I answered my own question in case anyone else is ever looking for the same info. I hope it helps someone.

Jill
__________________
X-Cart Gold 4.1.8 (Live)
BCSE Shipping Estimator for FLC Mod
BCSE Shipping Methods per Product Mod
BCSE Customer Review Management Mod
BCSE Catalog Order Form Mod
X-Cart Gold 4.5.2 (Building/Testing)
USA
Reply With Quote