Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can I have /catalog AND /shop


nutman

Recommended Posts

What I've done is copied the /catalog directory and renamed it /shop. I have both online... I changed the /shop/includes/configure.php and /shop/admin/includes/configure.php files referencing "shop" instead of "catalog". The reason for doing this is because I'm redoing this company's website and I want to stay live with the old and work on the new in a live environment using the same database so the products remain in tact...

 

but... it's not working as easily as I thought...

 

I can get to the new /shop/admin area but the page is blank when I goto /shop... obviously in a browser...

 

Any suggestions?

 

Thanks in advance...

 

Ken

Link to comment
Share on other sites

create another database, and restore from the live store to the development store, separate databases.

also keep one copy locally and develop there, push up to the dev server for 'semi live testing' then when satisfied merge it with the live site.

Link to comment
Share on other sites

Ken,

 

It should work if the configure.php files were modified correctly. What do you mean by "blank"? The browser is one big white screen? There's an error message? The browser acts like it's loading but never displays anything?

 

ed

Link to comment
Share on other sites

Ken,

 

It should work if the configure.php files were modified correctly.  What do you mean by "blank"?  The browser is one big white screen?  There's an error message?  The browser acts like it's loading but never displays anything?

 

ed

 

Ed... there's just a blank white screen... it acts like it loads but doesn't... the /catalog still loads fine. I've altered the configure.php files on other sites before and just renamed the dirs... I've checked both files a number of times and they look right...

Link to comment
Share on other sites

Strange. I'd say post the top 15 or so lines from configure.php. I know you fixed it but something must be wrong.

 

Mibble's suggestion is a good idea. If your changes result in adding or changing columns in the database, you could accidentally break the live store.

 

ed

Link to comment
Share on other sites

Strange.  I'd say post the top 15 or so lines from configure.php.  I know you fixed it but something must be wrong.

 

Mibble's suggestion is a good idea.  If your changes result in adding or changing columns in the database, you could accidentally break the live store.

 

ed

 

Here are the only lines touched: /shop/includes/configure.php

 

define('HTTP_COOKIE_PATH', '/shop/');

define('DIR_WS_HTTP_CATALOG', '/shop/');

define('DIR_FS_CATALOG', '/usr/local/etc/httpd/vhosts/www.rim1.com/shop/');

define('DIR_FS_WORK', '/usr/local/etc/httpd/vhosts/www.rim1.com/shop/oscommerce_data/');

 

and

 

/shop/admin/includes/configure.php

define('DIR_FS_DOCUMENT_ROOT', '/usr/local/etc/httpd/vhosts/www.rim1.com/shop/');

define('DIR_WS_ADMIN', '/shop/admin/');

define('DIR_FS_ADMIN', '/usr/local/etc/httpd/vhosts/www.rim1.com/shop/admin/');

define('DIR_WS_CATALOG', '/shop/'); // absolute path required

define('DIR_FS_CATALOG', '/usr/local/etc/httpd/vhosts/www.rim1.com/shop/');

define('DIR_FS_WORK', '/usr/local/etc/httpd/vhosts/www.rim1.com/shop/oscommerce_data/');

Link to comment
Share on other sites

I'm assuming you've added page files to the oscommerce_data directory you have created?  Have you added them to filenames.php?

 

Vger

 

I haven't added anything... the only thing I've done so far is copy the /catalog dir, rename it /shop, upload so both are online and altered the 2 configure files in the new /shop...

Link to comment
Share on other sites

Ken,

 

Do you have some redirection going on at the domain or subdomain level? I get the white page when I go to www.rim1.com/shop. I get it at www.rim1.com/catalog. But I get a perfectly functioning osCommerce page when I go to www.rim1.com and click on Enter. Only, I get sent to www.rimsone.com/catalog.

 

ed

Link to comment
Share on other sites

What I've done is copied the /catalog directory and renamed it /shop.  I have both online... I changed the /shop/includes/configure.php and /shop/admin/includes/configure.php files referencing "shop" instead of "catalog".

 

The above is the only thing I needed to do. The issue was on this end. Thanks for all who posted...

 

KB

Link to comment
Share on other sites

Hey Mibble,

 

 

I do something very similar to this with a local "test" shop and then a upload to live shop. But what/how do you to a merge of the database? I do a file synic from ftp for the site files, but then normally do an overwrite of the database (my site isn't "live" yet in the since of having customers so I don't lose any info. but once is does start to have customers it could be a real problem.)

 

Thanks

RW

create another database, and restore from the live store to the development store, separate databases.

also keep one copy locally and develop there, push up to the dev server for 'semi live testing' then when satisfied merge it with the live site.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...