Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Work offline with OsCommerce


Encrier

Recommended Posts

Hello,

 

I am very new to working with OsCommerce and I like to work offline with it.

I have installed;

Apache

Mysql

PHPmyAdmin

OsCommerce

 

I like to open this openingscreen offline "/catalog/admin/index.php"

Can any one help me out?

 

Thank you in advance and have a nice day

Link to comment
Share on other sites

Hello,

 

I am very new to working with OsCommerce and I like to work offline with it.

I have installed;

Apache

Mysql

PHPmyAdmin

OsCommerce

 

I like to open this openingscreen offline "/catalog/admin/index.php"

Can any one help me out?

 

Thank you in advance and have a nice day

Assuming you have a Windows XP or 2000 with Xampp installed you should have (with a default install) a directory c:/program files/xampp/htdocs

Create a new (sub)directory under htdocs like 'myshop' and copy the files from your online shop to there preserving the directory structure.

You will get something like: c:/program files/xampp/htdocs/myshop/catalog/admin/

Next step is to adjust your two configure.php's (in admin/includes and catalog/includes) to the new setup.

For the catalog side ie. with a directory named '0900' instead of 'myshop':

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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://localhost'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '/0900/');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/0900/');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '/0900/');
 define('DIR_WS_HTTPS_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', 'C:/Program Files/xampp/htdocs/0900/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'root');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', '0900');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

and the admin configure.php:

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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://localhost'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://localhost');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', 'C:/Program Files/xampp/htdocs/0900/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/0900/admin/'); // absolute path required
 define('DIR_FS_ADMIN', 'C:/Program Files/xampp/htdocs/0900/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', '/0900/'); // absolute path required
 define('DIR_FS_CATALOG', 'C:/Program Files/xampp/htdocs/0900/'); // absolute path required
 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', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'root');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', '0900');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

Make a backup from your online shop and restore that into a newly created local database (in the example above that database is called 0900 so change that to your choice).

To access the shop on your local machine you type the URL:

http://localhost/0900/admin/index.php for the admin configuration and http://localhost/0900/index.php for the catalog side (I didn't use a catalog subdirectory in the example).

 

That's pretty much it. It might even be better to just do a new osCommerce installation on your local machine. Copy the osCommerce installation files to a new subdirectory under c:/program files/xampp/htdocs/ and, depending on the directory name you choose, type in your browser:

http://localhost/myshopdir/install or http://localhost/myshopdir/install/index.php

Make sure you have created a new database before you start as you will need the database name of course.

 

HTH

Link to comment
Share on other sites

Hallo Howard,

 

Las zojuist "Friet met mayonaise" Holland/Belgie.

 

I followed your instructions, but no results so far.

Then I checked the "encrier" directory and I think my shop is not complete.

Where can I donwload the complete version of osCommerce, as on the OSC site I only can find the update "25"

 

Thank you en bedankt

Link to comment
Share on other sites

Hallo Howard,

 

Las zojuist "Friet met mayonaise" Holland/Belgie.

 

I followed your instructions, but no results so far.

Then I checked the "encrier" directory and I think my shop is not complete.

Where can I donwload the complete version of osCommerce, as on the OSC site I only can find the update "25"

 

Thank you en bedankt

The package here is complete !

Link to comment
Share on other sites

Thank you Howard,

 

but the download says; osCommerce 2.2 Milestone 2 Update 051113

I downloaded it and I get a File 25, that's all. It can't unzip

 

Can you help me out?

Thank you in advance,

Paul

Link to comment
Share on other sites

Thank you Howard,

 

but the download says; osCommerce 2.2 Milestone 2 Update 051113

I downloaded it and I get a File 25, that's all. It can't unzip

 

Can you help me out?

Thank you in advance,

Paul

Hi Paul,

 

The linked file is called oscommerce-2.2ms2-051113.zip and that is the one you should get. If you use the browsers Save As/Save Link As option it seems that IE6 handles this fine but Firefox saves the file as go,25.htm which however contains the correct file. Rename it and it should be fine also.

 

Howard

Link to comment
Share on other sites

Hi Paul,

 

The linked file is called oscommerce-2.2ms2-051113.zip and that is the one you should get. If you use the browsers Save As/Save Link As option it seems that IE6 handles this fine but Firefox saves the file as go,25.htm which however contains the correct file. Rename it and it should be fine also.

 

Howard

 

 

Thanks again Howard,

 

I started with donloading with Firefox download manager, then I just DAP, but it works perfect with IE.

 

Have a nice day,

Paul

Link to comment
Share on other sites

Hello Howard,

 

I downloaded osCommerce succesfull and installed it here as encrier;

 

c:/Program Files/xampp/htdocs/encrier/install/index.php

 

But when I type;

 

http://localhost/encrierdir/install/index.php

or

http://localhost/encrierdir/install/index

or even

http://localhost/Program Files/xampp/htdocs/encrier/install/index.php

 

nothing happens.

 

What am I doing wrong?

 

Paul

Link to comment
Share on other sites

Hello Howard,

 

I downloaded osCommerce succesfull and installed it here as encrier;

 

c:/Program Files/xampp/htdocs/encrier/install/index.php

 

But when I type;

 

http://localhost/encrierdir/install/index.php

or

http://localhost/encrierdir/install/index

or even

http://localhost/Program Files/xampp/htdocs/encrier/install/index.php

 

nothing happens.

 

What am I doing wrong?

 

Paul

Paul,

 

Did you copy the part of the zip file under the directory catalog to your xampp htdocs directory ?

When you look inside the zip file you should find a structure like

\catalog

\extras

The \extras directory you can leave as is but the whole \catalog directory you have to copy, with all subdirectories, to ie. c:/Program Files/xampp/htdocs/encrier/ so you should get

c:/Program Files/xampp/htdocs/encrier/admin

c:/Program Files/xampp/htdocs/encrier/download

c:/Program Files/xampp/htdocs/encrier/images

c:/Program Files/xampp/htdocs/encrier/includes

c:/Program Files/xampp/htdocs/encrier/install

c:/Program Files/xampp/htdocs/encrier/pub

c:/Program Files/xampp/htdocs/encrier/.... (a whole bunch of seperate files)

c:/Program Files/xampp/htdocs/encrier/....

 

From here you should fire up your browser and type http://localhost/encrier/install which should lead you through the install process. If that doesn't work something is wrong with your Xampp installation or you just haven't the Apache server running with mysql and php.

 

 

On a side note:

In fact you do not even have to do the install to get osCommerce running. If you are able to edit both the configure.php's to your local installation it will be fine also (you can do one full install and create as many other projects afterwards the simple way by just copying the configure.php's to the new project directories and edit them to comply with the new project directory and database).

Link to comment
Share on other sites

Hi Howard,

thank you again for your reply.

I am partly succesfull in it, except from the following message,

 

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

 

I have the feeling that this is the final step of the installation process.

 

Thank you in advance,

Paul

Link to comment
Share on other sites

FATAL ERROR: register_globals is disabled in php.ini, please enable it!

 

I have the feeling that this is the final step of the installation process.

It is. Do a little search and you will find the answer/solutions quickly if you have not already !

Link to comment
Share on other sites

Find your php.ini file (somewhere in windows I believe, but you can easily do a search with the explorer on your PC), have a look through & set register globals to on. Terra

My code for combining PayPal IPN with ** QTPro 4.25 ** osC Affiliate ** CCGV(trad)

and how to solve the invoice already paid error

General info: Allow customer to delete order comment ** FTP Programs & Text Editors ** Amending order email **

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...