Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving catalog to root


pikoro

Recommended Posts

I am new to osCommerce but already loving it with passion.

I will probably bugger you in the beginning with lots of questions, please bear with me.

Maybe some of them are already answered in the forums, please be assured that before posting I do search, it's only that I am still unable to find the answer.

If you simply direct me to a post, that is fine for me.

So here is the question:

Before I load all the products, I would like to move (or copy first) the contents of the catalog folder to root, just to make it easy for search engines and users who would like to bookmark the site.

Will I need to make changes in the scripts because the calls will not be the same?

If so, which ones should I edit and how?

Thanks in advance,

 

pikoro

Link to comment
Share on other sites

You need to edit the two configure files to use the new path.

 

To find previous threads on a subject, go to google and type in

site:www.oscommerce.com/forums "earch string"

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

You need to edit the two configure files to use the new path.

 

To find previous threads on a subject, go to google and type in

 

Jack

 

Thanks for quick reply.

Please, your answer brings up two new questions:

1) Which are the two configure files? Path, please.

2) Why can't I use just the forums search function, does Google have an advantage over it?

Thanks in advance,

 

pikoro

Link to comment
Share on other sites

admin/includes/configure.php and includes/configure.php.

 

The search function in the forum doesn't work very well. You will get much better results using google.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

admin/includes/configure.php and includes/configure.php.

 

The search function in the forum doesn't work very well. You will get much better results using google.

 

Jack

 

Thanks again for swift reply.

We are making good progress.

I have already looked into those files but don't understand how to modify them.

Please let me know which lines I should edit and how.

Please, I need something very dummy like "this code" should be changed to "that code".

Thanks for the guidance.

 

pikoro

Link to comment
Share on other sites

I am new to osCommerce but already loving it with passion.

I will probably bugger you in the beginning with lots of questions,

 

 

hey, you can ask me questions. you can even bug me with question. but please don't bugger me with them.

 

rj

Link to comment
Share on other sites

Post your configure file here, without the login details, and someone will go over the needed changes.

 

Jack

 

I really appreciate your help.

Your map contribution looks great and I am planning to use it, I have a Google key.

Here is admin/includes/configure.php

 

define('HTTP_SERVER', ''); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', '');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

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

define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

define('DIR_WS_CATALOG', '/catalog/');

define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

 

and here is catalog/includes/configure.php

 

define('HTTP_SERVER', 'http://www.haiswigs.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'haiswigs.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.haiswigs.com');

define('HTTPS_COOKIE_DOMAIN', 'haiswigs.com');

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

define('HTTPS_COOKIE_PATH', '/catalog/');

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

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

Thanks in advance.

Link to comment
Share on other sites

The first three entries need to be set to https://yourdomain.com.

 

Jack

 

Jack,

 

You are talking about the file admin/includes/configure/php, right?

The first 3 lines modified like so:

 

define('HTTP_SERVER', 'http://mydomain.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

define('HTTP_CATALOG_SERVER', 'http://mydomain.com');

define('HTTPS_CATALOG_SERVER', 'https://mydomain.com');

 

Also, one more question on this, the 4th. line, shouldn't it be set to true?

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

 

Please correct or confirm.

Thanks a bunch.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...