chrometweaks.org

Does anyone know how to make iPage websites full page?

Click Here To View All Answers...


Got a question, hope someone can answer... Does anyone know how to make iPage websites full page? Thanks in advance for any answer or 2. Another quick question... Hi, I am new to OSCommerce so apologies in advance if my question has a high "dumb factor"!.

The iPage site I am concerned with is up and running. I want to add the discount coupon functionality to it but would like the changes to be made in a test environment first. Can I clone the working iPage site and have the clone (my test area) coexist alongside the live site?.

What I have tried so far is to clone "store" (which has catalog beneath) as "test". I have a clone of the database too. I have replaced references to "store" with "test" in both configure.php files but when I goto Modules > Order Total, Discount Coupons is not visible. I have noticed that the module directory still shows a path to order total under "store" and not "test". Where is the module directory set?.

Is what I am trying to do possible?.

What else do I need to do?.

Thanks in advance..

A.B...

Comments (88)

Yes sir! although you might want to make sure and wait for someone else to confirm it as I am not sure. Better yet, why don't you call the iPage guys because they can give you an answer better...

Comment #1

Thanks for the reply Jack; the configure.php files are shown below..

User, password, database and iPage website entries are sanitized to protect the guilty:-.

After I cloned the file structure and database, apart from making the discount voucher changes, I did two things:.

1) changed username, password & database name (to match my new database) in these files..

2) replaced "store" with "test" in these files to reflect the new path as directories "store" and "test" share the same parent directory..

Includes/configure.php below.

________________________________________________________________________.

<?php.

/*.

$Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

// Define the webserver and path parameters.

// * DIR_FS_* = Filesystem directories (local/physical).

// * DIR_WS_* = Webserver directories (virtual/URL).

Define('HTTP_SERVER', 'http://mywebsite.com'); // eg,.

Http://localhost.

- should not be empty for productive servers.

// define('HTTPS_SERVER', 'https://mywebsite.sslpowered.com/'); // eg,.

Https://localhost.

- should not be empty for productive servers.

Define('HTTPS_SERVER', 'https://mywebsite.sslpowered.com'); // eg,.

Https://localhost.

- should not be empty for productive servers.

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

Define('HTTP_COOKIE_DOMAIN', 'mywebsite.com');.

// define('HTTPS_COOKIE_DOMAIN', 'secure.sslpowered.com');.

Define('HTTPS_COOKIE_DOMAIN', 'mywebsite.sslpowered.com');.

Define('HTTP_COOKIE_PATH', '/test/catalog/');.

Define('HTTPS_COOKIE_PATH', '/test/catalog/');.

Define('DIR_WS_HTTP_CATALOG', '/test/catalog/');.

Define('DIR_WS_HTTPS_CATALOG', '/test/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/');.

// define our database connection.

Define('DB_SERVER', 'MYSQLHOST'); // eg, localhost - should not be empty for productive servers.

Define('DB_SERVER_USERNAME', '********');.

Define('DB_SERVER_PASSWORD', '********');.

Define('DB_DATABASE', '********');.

Define('USE_PCONNECT', 'false'); // use persistent connections?.

Define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'.

?>.

________________________________________________________________________________.

_.

Admin/includes/configure.php below.

________________________________________________________________________________.

_.

<?php.

/*.

$Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2002 osCommerce.

Released under the GNU General Public License.

*/.

// define our webserver variables.

// FS = Filesystem (physical).

// WS = Webserver (virtual).

Define('HTTP_SERVER', 'https://mywebsite.sslpowered.com/'); // eg,.

Http://localhost.

Or -.

Https://localhost.

Define('HTTP_CATALOG_SERVER', 'http://mywebsite.com');.

Define('HTTPS_CATALOG_SERVER', 'https://mywebsite.sslpowered.com/');.

Define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module.

Define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT'/test/catalog/' ); // where your pages are located on the server..

Define('DIR_WS_ADMIN', '/test/catalog/admin/');.

Define('DIR_FS_ADMIN', $DOCUMENT_ROOT'/test/catalog/admin/');.

Define('DIR_WS_CATALOG', HTTP_SERVER.'/test/catalog/');.

Define('DIR_FS_CATALOG', $DOCUMENT_ROOT'/test/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/');.

// define our database connection.

Define('DB_SERVER', 'MYSQLHOST');.

Define('DB_SERVER_USERNAME', '********');.

Define('DB_SERVER_PASSWORD', '********');.

Define('DB_DATABASE', '********');.

Define('USE_PCONNECT', 'false');.

Define('STORE_SESSIONS', 'mysql');.

?>.

_______________________________________________________________.

Thanks,.

A.B...

Comment #2

Is the url for the test site.

Http://mywebsite.com/test/catalog.

?.

Jack..

Comment #3

Yes it is although I am obviously using "mywebsite" rather than the real one..

The live (and working store) can be represented as.

Http://mywebsite.com/store/catalog.

And my test iPage site can be represented as.

Http://mywebsite.com/test/catalog.

The stage I am at currently is the section "Install the Discount Coupon order total module" from kgt's discount coupon package. In his documentation, he states.

"... Log into your admin section and go to Modules > Order Total. Select the Discount Coupons module and click the Install button in the box on the right. Ensure the module is enabled..

The installation should now be complete. The module will automatically create the database tables needed, there is no SQL script you need to run, unless the script encountered an error creating the tables (this can happen if the user osCommerce connects with does not have CREATE TABLE permissions). See the common problems section if you need to manually run the create table statements...".

When I view Modules > Order Total, I do not see the Discount Coupons module but I do see that Module Directory is pointing to the live Order Total module and not the one in my test environment..

Thanks..

A.B...

Comment #4

Oh, so the shop side of the test shop is working. It is just the admin that needs help. In that case, these are incorrect.

Define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT'/test/catalog/' ); // where your pages are located on the server.

Define('DIR_WS_ADMIN', '/test/catalog/admin/');.

Define('DIR_FS_ADMIN', $DOCUMENT_ROOT'/test/catalog/admin/');.

Define('DIR_WS_CATALOG', HTTP_SERVER.'/test/catalog/');.

Define('DIR_FS_CATALOG', $DOCUMENT_ROOT'/test/catalog/');.

Try this instead.

Define('DIR_FS_DOCUMENT_ROOT', '/home/username/public_html/test/');.

Define('DIR_WS_ADMIN', '/admin/');.

Define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOTDIR_WS_ADMIN);.

Define('DIR_WS_CATALOG', '/');.

Define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOTDIR_WS_CATALOG);.

You need to change the first entry to the correct path..

Jack..

Comment #5

I've tried that but without success..

What is confusing me at the moment is how does it know which set of configure.php files to use? I have a set for "store" and a set for "test" and they are located in different places. Unless it knows where to find the correct files, any settings in them will not be read. Should there be something in the environment that tells it to go look in "store" or go look in "test"?.

Thanks,.

A.B...

Comment #6

The url tells it where to go. That's why I asked what the url was. If the url is.

Http://mywebsite.com/test/catalog.

, then the configure files are loaded from the test/catalog/includes and test/catalog/admin/includes directories..

Jack..

Comment #7

Hi Jack,.

I have had some success and have assessed myself a dumb factor of 8.5.

I was sent a link to the login page and have been using that all along. The link was pointing to the live environment so it is not really surprising I was having problems seeing the Discount Coupon module in the test environment (ok, a dumb factor of 8.8).

Thanks for your help and for being patient with me on my first outing on this forum..

I will put together and post a "how to" to help others in case they find themselves in a similar position. It will also help me should I forget!.

Thanks again..

(Still an) Absolute Beginner..

Comment #8

Hi, I am new to OSCommerce so apologies in advance if my question has a high "dumb factor"!.

The iPage site I am concerned with is up and running. I want to add the discount coupon functionality to it but would like the changes to be made in a test environment first. Can I clone the working iPage site and have the clone (my test area) coexist alongside the live site?.

What I have tried so far is to clone "store" (which has catalog beneath) as "test". I have a clone of the database too. I have replaced references to "store" with "test" in both configure.php files but when I goto Modules > Order Total, Discount Coupons is not visible. I have noticed that the module directory still shows a path to order total under "store" and not "test". Where is the module directory set?.

Is what I am trying to do possible?.

What else do I need to do?.

Thanks in advance..

A.B...

Comment #9

Yes, it is possible and quite common. The paths are set in the configure files. You've most likely made a mistake there. You can post your includes/configure.php file here, without the login details, and someone will take a look at it..

Jack..

Comment #10


This question was taken from a support group/message board and re-posted here so others can learn from it.