| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Proper variables to use in language entries | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Does anyone know how to enter certain company config variables into language entries? For instance, {{company}} in a language entry will display the company name entered into the Admin-General Settings-Company Options area.
I would like to display/link to my help/support email address in things like my privacy statement, which is one of the language entries, but I would like to use the variable for it. For my embedded static pages, I put: Quote:
into the HTML code for the page and that works. However, the same doesn't work when entered through a language entry. I've tried other things, such as {{support department}} and {{company.support_department}}, but they don't work. They just display them as they are written. I don't see anything in the manual showing which tags to use in the language entries for various company configuration options. Does anyone know where I can find this information if it exists? Thanks, 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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:
to Quote:
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|