This is a discussion on Re-Define STORE_NAME within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; I am trying to re-define my store name to something different than the value stored in the configuration table in ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I am trying to re-define my store name to something different than the value stored in the configuration table in the database. I know that I can just change the value in the DB, but for reasons that would time a while to explain here, I would like to keep the value in the DB and then re-define STORE_NAME within my script. Here is some test code that I tried in the content area of one of my pages... Code: define ('STORE_NAME', 'Hello World');
echo STORE_NAME;
Anyone have any thoughts on how I can get this to work? Thanks so much. |
| Sponsored Links | ||
| ||
| |
|
#2
| ||||
| ||||
| You have to ether change the database or use something other than "STORE_NAME" as your trying to overwrite a value that get re-loaded from the DB else where.... Try using defining "STORE_NAME_TEMP" then changing all instances of STORE_NAME to STORE_NAME_TEMP where needed. Good Luck
__________________ JPF - osCMax Fourm Moderator Try out our osCMax at: Live Catalog Demo Limited access Admin: Live Admin Demo Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped! |
|
#3
| |||
| |||
| Thanks jpf! I'm trying to avoid changing the instances of STORE_NAME. What I am trying to do is change the store name based on the domain. I have two domains pointed to the same install. I'd rather not create a new template because both stores are very similar except for the name (really that is the only difference). I wanted to add some simple code like this to the bottom of application_top, but as I mentioned, the define statement below won't redefine the name. Code: if ($domain == 'abc.com' ) {
define ('STORE_NAME', 'ABC Corp.');
} else {
define ('STORE_NAME', 'XYZ Corp.');
}
|
|
#4
| ||||
| ||||
| Then maybe a differnt approch.... Multiple "Mini-Stores" with 1 Admin http://www.oscommerce.com/community/contributions,1534 This you can setup several MINI stores (can have difffernt URL/looks) provided all exist on a single server. Each STORE can have the same or differnent products. In the SINGLE ADMIN interface it will tell you from which store each came from. If you have 2 or more domain and want to view them as differnt then this conribution is what your looking for. Note: each domain would have to be pointed to a differnt directory. (my host with my "cheap" plan will allow 3 domains to be pointed at any directory I want.... For me - ONE ADMIN and TWO sites.... - but currently only one has OSCMAX - the other is plain HTML static pages) or maybe Multi-Stores multiple shop system http://www.oscommerce.com/community/contributions,1730 (Have not looked into this one much) Note: both are not using BTS, so changes would have to be manually done for MAX. Good Luck!
__________________ JPF - osCMax Fourm Moderator Try out our osCMax at: Live Catalog Demo Limited access Admin: Live Admin Demo Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped! |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Define MainPage in Admin | daffodil | osCMax v2 Installation issues | 1 | 07-24-2005 10:21 AM |
| WYSIWYG DEFINE MAINPAGE | jkempton | osCMax v1.7 Installation | 2 | 06-16-2005 02:42 PM |
| Define Mainpage | Chippy | osCMax v1.7 Discussion | 4 | 03-15-2005 10:56 AM |
| How to use define mainpage? lost and need help | Anonymous | osCMax v1.7 Discussion | 1 | 07-02-2004 12:45 AM |
| define mainpage | jloyzaga | osCommerce 2.2 Modification Help | 1 | 01-19-2004 11:44 AM |