osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Re-Define STORE_NAME

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 07-19-2005, 05:24 AM
New Member
 
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jpepper
Default Re-Define STORE_NAME

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;
...but it doesn't work. It still echoes the value that is in the DB, not my re-defined value.

Anyone have any thoughts on how I can get this to work?

Thanks so much.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 07-20-2005, 07:13 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default RE: Re-Define STORE_NAME

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 07-21-2005, 02:36 PM
New Member
 
Join Date: Nov 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jpepper
Default

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.');
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 07-22-2005, 11:37 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 1,808
Thanks: 5
Thanked 105 Times in 91 Posts
Rep Power: 12
jpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to alljpf is a name known to all
Default

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


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


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax