X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   variables from general settings-company info. available? (https://forum.x-cart.com/showthread.php?t=3107)

dri 06-09-2003 07:44 AM

variables from general settings-company info. available?
 
I'd like to put the company info. (name, address, contact info.) on every page of the site. I figured out I could do this by reentering the company info. into the text boxes in admin/language and call the info from rectangle_bottom.tpl, but it seems to be it would be easier for the client to be able to change their contact info. in the easy-to-use company info. area of general settings.

Is there any way to access this info. in general settings/company info. and if so, how would I find out what the variable names would be ?

Thanks.

Caitlinn 06-09-2003 09:40 AM

I've just done something like this. To find the correct variable names, I went to General Settings, Company Options and viewed the source.

I looked at the name of the input boxes for company address etc. For example:

Code:

<input type=text size=30 name=location_address value="123 High Road">

Based on the info above, I simply used {$config.Company.location_address} and ta-da, it appears.

dri 06-09-2003 03:08 PM

:P Thanks, that worked GREAT!

Scrapbooker 03-15-2007 01:12 AM

Re: variables from general settings-company info. available?
 
Thanks Caitlinn, have edited and added to my /customer/top_menu.tpl with these "$config" items such as company_phone and location_address and now have all the details of our contacts visible on every page next to our logo.


All times are GMT -8. The time now is 01:49 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.