Friday, July 03, 2009

File Organization

The files in our shop will be organized like this :

Shopping Cart File Organization

The plaincart/library directory contain :

  • config.php : this is the main configuration file for our shop
  • category-functions.php :functions required for fetching the categories
  • product-functions.php : contain product related functions
  • cart-functions.php : shopping cart specific functions
  • checkout-functions.php : checkout processes are in here
  • common.php : common functions required for the shop and admin pages
  • database.php : contain the database abstraction functions

The plaincart/include contain :

  • header.php
    The shop common header.

  • top.php
    You can place your shop banner here.

  • footer.php
    Common footer, display the shop address, phone number and email. You can add more information here when needed.

  • shop.css
    Style sheet file for our shop

  • leftNav.php
    The left navigation you see on the shop

  • categoryList.php
    Show the top categories we have

  • productList.php
    Show the products in certain category

  • productDetail.php
    You know what this is for, right ?

  • miniCart.php
    Shown on the right portion of the shop pages, it shows the products in the shoping cart.

  • shippingAndPaymentInfo.php
    The form to enter shipping and payment info ( step 1 of checkout )

  • checkoutConfirmation.php
    Show the order items, shipping & payment info ( step 2 of checkout )

The plaincart/include/paypal directory contain :

  • paypal.inc.php
    The configuration file for the paypal payment module

  • ipn.php
    The script that process payment verification

  • payment.php
    Contain the form that submit the payment information from this website to paypal website

The plaincart/admin folder will contain all the admin files.You can see that admin folder also contain include and library folder. These will contain specific library files for the admin pages

All images required in our shop will be put in plaincart/images directory. The category and product images are put in the category and product sub-folder respectively.

No comments:


Free Blogspot Templates by Isnaini Dot Com and Bridal Dresses. Powered by Blogger