Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Ok: Can I trial the site on my computer b4 upload


jewelryAU

Recommended Posts

Because the site is 99.9% dynamic you will need to install IIS or Apache on your computer, then you will need to get the PHP Parse and a copy of SQL Server to install the database.

 

 

On my opinion the best thing to do is do it live on the server but just in a SUB FOLDER that people don?t know about

at the end of the day the code will be good

Link to comment
Share on other sites

Download an all-in-one package like XAMPP (http://www.apachefriends.org/en), and install it on your computer. It's a fully automated install and has all you want e.g. Apache Web Server, PHP, MySQL, Pear, phpMyAdmin etc.

 

Once you've done that, go to http://locvalhost/phpmyadmin and use the Create Database feature, just supply a name and click 'Go' - all done.

 

Download and unzip the osCommerce 2.2 MS2 zip file from the downloads section at www.oscommerce.com, take the 'catalog' folder and copy it into your XAMPP htdocs folder.

 

Then go to http://localhost/catalog/install and install the site locally.

 

Once you've done that go to admin/includes/classes/upload.php and on line 31 change this:

 

$this=null;

 

to this:

 

unset($this);

 

Now you're good to go.

 

Vger

Link to comment
Share on other sites

Ok:  Can I trial the site on my computer b4 uploading?  I would like to build a site and preview it on my computer b4 uploading.  Can this be done and if so how?

Yes

Install server software like apache on pc

Install php software onto your pc

Install mysql software on to pc

then install Oscommerce and away you go then from your newly installed oscomerce catalog

Copy your catalog/includes/configure.php and put this copy into catalog/includes/local folder.

Copy your catalog/admin/includes/configure.php and put this copy into catalog/admin/includes/local folder.

 

Now inside both these configure.php files inside the local folders set them both up as localhost and not domain.

( example.)

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

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

 

Once you have done this start the server and type in localhost/catalog and away you go :thumbsup:

( WARNING )

I think I know what Im talking about.

BACK UP BACK UP BACK UP BACK UP

Link to comment
Share on other sites

I thought I was clever and got Slackware 10.1 to get a local server running...via a cross-over cable from my XP machine to the Linux box. Well I did get up to the part where I upload my site to the /var/www/htdocs directory and even though PHP and MySQL was running - did not work so good...because I did not have a cool tool like PHPMyadmin! Only html-type websites displayed in my browser. It was my first try. Anyhow XAMPP is so easy and thanks to Vger I got everything running smoothly on my PC by reading almost all the XAMPP posts...

 

But EasyPopulate has some kind of error when I click on it in the admin area it shows: Fatal error: Cannot redeclare tep_get_tax_class_title() (previously declared in C:\xampp\htdocs\xampp\catalog\admin\includes\functions\general.php:1088) in C:\xampp\htdocs\xampp\catalog\admin\easypopulate_functions.php on line 34

 

Any ideas what the cause is? Hope I didn't miss something - I was suppose to change?

 

When I am done configuring my shop locally - I know I have to upload everything to my hosting company, but what do I choose for the database? In phpmyadmin when I go to export, do I choose: SQL, CSV data, CSV for Excel or LaTeX? Except for this and the files I need to change back like line 31 (upload.php) is there anything else I must remember?

 

Thanks for all your help!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...