Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is it possible to change/view layout offline?


osmium

Recommended Posts

hey all

 

I'm very new to OcCommerce (about a week :D ) and am wondering.

Is it possible to view your site without internet access? I wont have internet access for the next week or so but would like to keep working on the layout of my site

 

I'm not sure how the PHP and that sort of thing works, but with my old site I have a copy of all the files on my computer and I can load and edit them offline, can I do the same with my OsCommerce site?

 

I mainly want to edit the stylesheet.CCS and as I am new I need to see the changes one step at a time so I can learn what each part does.

 

thanks all

Link to comment
Share on other sites

  • 4 weeks later...

This appears to be a little too late for you, but maybe someone else can benefit from it.

 

Yes, it is very easy to edit and test your osCommerce site offline. On Windows I use a free program called EasyPHP that lets me run Apache and MySQL locally on my desktop. After I'm finished testing locally, I upload the site using ftp, update my database with PhpMyAdmin, and then edit two remote files ({catalog}/includes/configure.php and {catalog}/admin/includes/configure.php) to match my remote database settings.

Link to comment
Share on other sites

thanks, kind of gave up on this post but in the process of looking for something totally different I came across an answer which brings me back here, but as I see its already been answered. but heres another suggestion from vger

 

"To work with osCommerce offline (on your 'puter) you really need to install a local web server. I recommend an all-in-one package called XAMPP (http://apachefriends.org/en). It's not the best (Xitami is better) but XAMPP is an all-in-one and easy install whereas Xitami isn't.

 

If you also want to test the mail and 'posting' functions of your osCommerce site on your computer then you'll also have to install a local mail server like PostCast - but I wouldn't advise this to begin with as there are major security implications to having a local mail server on your computer.

 

That should be enough to go on with!"

Link to comment
Share on other sites

It sounds like XAMPP and EasyPHP are very similar. EasyPHP doesn't have a mail server either.

 

I haven't used PostCast. It sounds like it could be useful however, what type of security problems are associated with it, and how can they be overcome?

Link to comment
Share on other sites

  • 3 weeks later...
This appears to be a little too late for you, but maybe someone else can benefit from it.

 

Yes, it is very easy to edit and test your osCommerce site offline. On Windows I use a free program called EasyPHP that lets me run Apache and MySQL locally on my desktop. After I'm finished testing locally, I upload the site using ftp, update my database with PhpMyAdmin, and then edit two remote files ({catalog}/includes/configure.php and {catalog}/admin/includes/configure.php) to match my remote database settings.

 

Bigredman74, can you tell me exactly what you have to change in your configure.php files?

 

Thanks in advance

Link to comment
Share on other sites

Here is what I use:

 

In the file catalog/includes/configure.php

// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://127.0.0.1'); // 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', '127.0.0.1');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '/');
 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:/www/'); // can be changed in httpd.conf
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

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

 

And in the file catalog/admin/includes/configure.php

// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://127.0.0.1'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://127.0.0.1');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', 'c:/www/'); // where the pages are located on the server // can be changed in httpd.conf
 define('DIR_WS_ADMIN', '/admin/'); // absolute path required
 define('DIR_FS_ADMIN', 'c:/www/admin/'); // absolute pate required // can be changed in httpd.conf
 define('DIR_WS_CATALOG', '/'); // absolute path required
 define('DIR_FS_CATALOG', 'c:/www/'); // absolute path required // can be changed in httpd.conf
 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', '127.0.0.1'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'admin');
 define('DB_SERVER_PASSWORD', 'password');
 define('DB_DATABASE', 'localdb');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

I hope this helps. If not, let me know.

Link to comment
Share on other sites

Here is what I use:

 

In the file catalog/includes/configure.php

// * DIR_WS_* = Webserver directories (virtual/URL)
?define('HTTP_SERVER', 'http://127.0.0.1'); // 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', '127.0.0.1');
?define('HTTPS_COOKIE_DOMAIN', '');
?define('HTTP_COOKIE_PATH', '/');
?define('HTTPS_COOKIE_PATH', '');
?define('DIR_WS_HTTP_CATALOG', '/');
?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:/www/'); // can be changed in httpd.conf
?define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
?define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

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

 

And in the file catalog/admin/includes/configure.php

// * DIR_WS_* = Webserver directories (virtual/URL)
?define('HTTP_SERVER', 'http://127.0.0.1'); // eg, http://localhost - should not be empty for productive servers
?define('HTTP_CATALOG_SERVER', 'http://127.0.0.1');
?define('HTTPS_CATALOG_SERVER', '');
?define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
?define('DIR_FS_DOCUMENT_ROOT', 'c:/www/'); // where the pages are located on the server // can be changed in httpd.conf
?define('DIR_WS_ADMIN', '/admin/'); // absolute path required
?define('DIR_FS_ADMIN', 'c:/www/admin/'); // absolute pate required // can be changed in httpd.conf
?define('DIR_WS_CATALOG', '/'); // absolute path required
?define('DIR_FS_CATALOG', 'c:/www/'); // absolute path required // can be changed in httpd.conf
?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', '127.0.0.1'); // eg, localhost - should not be empty for productive servers
?define('DB_SERVER_USERNAME', 'admin');
?define('DB_SERVER_PASSWORD', 'password');
?define('DB_DATABASE', 'localdb');
?define('USE_PCONNECT', 'false'); // use persisstent connections?
?define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

I hope this helps. If not, let me know.

 

 

excelent, thanks, I;m gonna give whis a go

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...