In cooperation with Spokane Community College

Basic eCommerce Workshop

By: Erik Schubach with Spokane Community College & the SCC Computer Club
session 1 | session 2 | links

Workshop Session 2

In this session of the basic eCommerce workshop we will be creating the actual website. Follow the steps below and remember, if you have any questions, contact me.

The first step is to download the template archive toppup-template.zip and extract the contents of the .zip file to your desktop.

Note: If you need the bug-fix patch, download toppup-patch.zip, extract to your desktop and transfer to your website via GoDaddy's FTP client.
    Locate the file config.php and edit the following lines...
  • $db_ip = "192.168.1.0"; replace 192.168.1.0 with your database host name from godaddy between the quotes
  • $db_name = ""; replace with database name between the quotes
  • $db_user = ""; replace with database username between the quotes
  • $db_pass = ""; replace with your database password between the quotes
  • $admin_user = ""; replace with a username to access website controls between the quotes
  • $admin_pass = ""; replace with a password to access website controls between the quotes
  • $website = ""; replace with your domain name between the quotes
  • $webname = ""; replace with a decriptive name of your website between the quotes
  • $webtagline = ""; replace with a slogan for your website between the quotes
  • $webkeywords = ""; replace with search engine keywords for your site separated by commas between the quotes
  • $paypalID = ""; replace with your PayPal user id between the quotes (your email address)
  • $contactemail = ""; replace with the contact email address you wish to have displayed on the website
  • $contactaddr1 = ""; replace with the contact street address you wish to have displayed on the website
  • $contactaddr2 = ""; street address 2nd line
  • $contactcity = ""; replace with the contact city you wish to have displayed on the website
  • $contactstate = ""; replace with the contact state you wish to have displayed on the website
  • $contactzip = ""; replace with the contact zipcode you wish to have displayed on the website
  • $contactphone = ""; replace with the contact phone number you wish to have displayed on the website
    Now we will need to upload the files to your domain...
  • Log in to your godaddy account at http://www.godaddy.com.
  • Select "My Hosting Aaccount".
  • Click the "open" link next to your domain name.
  • Click "Content" on the menu bar and select "FTP client".
  • You will see two directory windows, the left is your local machine, the right is your website.
  • On left side (Local System) navigate to the Toppup-Template directory on your desktop.
  • Select everything in that directory.
  • Click double arrows between local and remote system.
Now we will create the database structure for your website... In your web browser navigate to http://www.yourdomain.com/create-db.php where yourdomain.com is replaced by your actual domain name. RUN ONLY ONCE or you will wind up with multiple duplicate entries in your database.

Go back to remote system in ftp client in godaddy and delete the file named create-db.php to ensure it cannot be run on your site again.

Your website is now operational. Navigate to your homepage and view the template.

When you are ready to modify the content and add products navigate to http://www.yourdomain.com/admin.php (This is where you will go anytime you need to modify anything on your website). Use the admin_user and admin_pass you created in the config.php file to login.

What you see is the text from the front page, you can make any desired changes and click update. You can use the controls at the top to edit or add products, product categories and external links on your website. When you have a logo that you would like to show on the website, replace the logo image with a file called logo.gif using the GoDaddy ftp client.

You now have a fully functional e-commerce website (albiet very basic). This should give you some insight as to the steps neccisary to create and maintain a website. You will be able to communicate with your web consultant or clients with a basic knowledge required to complete your project.


Copyright © 2012 Erik Schubach