Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

company name

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-29-2008, 06:44 AM
 
radtoyscentral radtoyscentral is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 73
 

Default company name

Can somebody please tell me which script calls up "config.company_name" from the database and uses it to create the "location" title for the page and for the location? I have created a mirror-site and have modified it to use the same database, yet operated as a completely seperate entity with seperate name and domain. Everything works fine and I am done with the exception of the fact that I cannot find the script that calls up config.company_name so that I can change it to config.company_name_2 so that it calls the store by the correct name.
http://www.radtoyscentral.com is the orginal store and is correct. If you go to the mirror store http://www.radtoyscentral.com/horsepowertest/home.php is the test mirror site. If you notice the title bar at the top of the browser, it still call up the other store's "company_name" into the title as well as in the "location" portion of the "dialog" section of the page.
I have been searching for two days now and cannot find which script calls that up from the database so I can change it to call up the "second" store name instead.
__________________
/RAD TOYS CENTRAL/
GOLD 4.1.10
Reply With Quote
  #2  
Old 01-29-2008, 08:10 AM
 
radtoyscentral radtoyscentral is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 73
 

Default Re: company name

Ok, I've come to find that the link in the LOCATION section is correct, it is merely the LABEL that is created for the link is wrong. The label shows the name of the original store, but links to the correct link for the mirror site. So I guess I just need to know where in the scripts I go to change the label it calls up and creates from the config.company_name.
__________________
/RAD TOYS CENTRAL/
GOLD 4.1.10
Reply With Quote
  #3  
Old 01-29-2008, 08:29 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: company name

It pulls the company name from the General Settings/Company Information area.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 01-29-2008, 11:51 AM
 
radtoyscentral radtoyscentral is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 73
 

Default Re: company name

I understand that. When you input your company name, it is saved in to the xcart database in the config table as company_name. (xcart.config.company_name). I have gone through and modified the database as well as the rest of my xcart store installation. Everything else looks fine. I just cannot figure out which script actually pulls the info out of the database xcart.config.company_name and uses it to create the TITLE and LOCATION for the page. I guess that all I am asking is....which template or .php script actually uses the COMPANY_NAME from the database to create the location name?
__________________
/RAD TOYS CENTRAL/
GOLD 4.1.10
Reply With Quote
  #5  
Old 01-29-2008, 12:00 PM
 
neroag neroag is offline
 

Senior Member
  
Join Date: May 2005
Location: UK
Posts: 171
 

Default Re: company name

is it the following that your looking for ?

Code:
$location[] = array($config["Company"]["company_name"], "home.php");

thats held in the auth.php
__________________
X-cart Gold - 4.0.18 - 4.1.9 - 4.1.10 - 4.3.0
Reply With Quote
  #6  
Old 01-29-2008, 12:59 PM
 
radtoyscentral radtoyscentral is offline
 

Advanced Member
  
Join Date: Oct 2005
Posts: 73
 

Default Re: company name

That was exactly what I needed. I just did the change and it worked great. I now have my two seperate stores running off the same database as two seperate entities. Once again, thanks for the help from both of you.
__________________
/RAD TOYS CENTRAL/
GOLD 4.1.10
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:11 AM.

   

 
X-Cart forums © 2001-2020