| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
variables from general settings-company info. available? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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. |
|||||||
#2
|
|||||||
|
|||||||
![]() 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:
Based on the info above, I simply used {$config.Company.location_address} and ta-da, it appears. |
|||||||
#3
|
|||||||
|
|||||||
![]() :P Thanks, that worked GREAT!
|
|||||||
#4
|
|||||||
|
|||||||
![]() 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.
__________________
Sean Doohan ![]() www.scrapbookingwonders.com.au Sydney, Australia x-cart: v4.0.19 cuteftp |
|||||||
|
|||
X-Cart forums © 2001-2020
|