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)
-   -   company name (https://forum.x-cart.com/showthread.php?t=37130)

radtoyscentral 01-29-2008 06:44 AM

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.

radtoyscentral 01-29-2008 08:10 AM

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.

balinor 01-29-2008 08:29 AM

Re: company name
 
It pulls the company name from the General Settings/Company Information area.

radtoyscentral 01-29-2008 11:51 AM

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?

neroag 01-29-2008 12:00 PM

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

radtoyscentral 01-29-2008 12:59 PM

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.


All times are GMT -8. The time now is 11:58 PM.

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