PHP
  Home arrow PHP arrow Page 9 - Building an E-Commerce Site Part 3: Catalogs and Shopping Carts
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Building an E-Commerce Site Part 3: Catalogs and Shopping Carts
By: Ying Zhang
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 47
    2000-06-08


    Table of Contents:
  • Building an E-Commerce Site Part 3: Catalogs and Shopping Carts
  • Assumptions and Requirements
  • Overview of The Process
  • MyMarket Shopping Experience
  • The Product Catalog
  • The Shopping Cart
  • Payment Processing
  • Step 1: Database Changes
  • Step 2: Extracting the New Scripts
  • Step 3: General Script Changes from Tutorial 2
  • Step 4: New Shopping Scripts
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Building an E-Commerce Site Part 3: Catalogs and Shopping Carts - Step 2: Extracting the New Scripts
    ( Page 9 of 12 )

    Okay, we've got our user table, let's make screens for the user to log in and log out. Download the mymarket3.tar.gz file and extract it into your web root directory. Note that this replaces the files from the first tutorial.

    IMPORTANT NOTE: If you have made modifications to the files from the first tutorial, please make a backup copy and store it somewhere else. The files in mymarket3.tar.gz will overwrite any changes you made to the files from the first tutorial.

    If you have made modifications to the files from the first tutorial, please make a backup copy and store it somewhere else. The files in will overwrite any changes you made to the files from the first tutorial.

    We do the same drill from the first and second tutorial. Download the mymarket3.tar.gz file and extract it into your web root directory. For example, if your web root is in

    /home/httpd/html

    type


    $ cd /home/httpd/html $ tar -zxf /tmp/mymarket3.tar.gz

    Assuming that you've downloaded mymarket3.tar.gz into /tmp. Now, open up the file application.php and change the $CFG->wwwroot and $CFG->dirroot paths to match your server configuration.

    Directory Structure

    You should already be familiar with the contents of the mymarket directory, looking carefully, you will see a new directory called shopping.


    drwxrws--- 3 apache web 1024 Jun 1 08:46 admin/
    drwxrws--- 2 apache web 1024 Jun 1 02:05 images/
    drwxrws--- 2 apache web 1024 Jun 1 09:18 lib/
    drwxrws--- 2 apache web 1024 Jun 1 09:18 shopping
    drwxrws--- 3 apache web 1024 Jun 1 11:20 templates/
    drwxrws--- 3 apache web 1024 Jun 1 11:20 users/
    -rw-rw---- 1 apache web 2074 Jun 1 14:58 application.php
    -rw-rw---- 1 apache web 1488 Jun 1 12:21 index.php
    -rw-rw---- 1 apache web 2427 Jun 1 14:51 login.php
    -rw-rw---- 1 apache web 1040 Jun 1 11:19 logout.php

    The shopping directory contains all the scripts that have to do with displaying the product catalog, viewing product details, the shopping cart, and purchasing. That is where most of the new scripts reside. We will now go over the script changes.



     
     
    >>> More PHP Articles          >>> More By Ying Zhang
     

       

    PHP ARTICLES

    - Using Directory Iterators to Build Loader Ap...
    - Using the spl_autoload() Functions to Build ...
    - Working Out of the Object Context to Build L...
    - Using the _autoload() Magic Function to Buil...
    - The Destruct Magic Function in PHP 5
    - The Autoload Magic Function in PHP 5
    - Developing a Recursive Loading Class for Loa...
    - The Sleep and Wakeup Magic Functions in PHP 5
    - Using the Clone Magic Function in PHP 5
    - Including Files Recursively with Loader Appl...
    - The Call Magic Function in PHP 5
    - Designing a Captcha System with PHP and MySQL
    - Using Static Methods to Build Loader Apps in...
    - The Isset and Unset Magic Functions in PHP 5
    - Advanced PHP Form Input Validation to Check ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT