PHP-eSeller

Other Shop / Cart Displays

Other Shop / Cart Displays ....

As well as the general purpose shopping cart which use the pat template system described on the shopping cart page, there are a number of other displays. These use a more 'conventional' method of displaying lists of 'add to cart' and 'buy now' buttons which may be more suitable for your site. They are constructed by include files, and css which can be easily modified.

Some displays show the items as lists, while others display category and subcategories.

Cart examples

This provides 'Add to cart' buttons and 'View cart' buttons enabling a purchaser to add items to a cart before purchase. Physical goods and digital goods can be added to a cart at the same time and purchased at the same time.

The following examples are located in the /cart/ folder :

Shopping Cart examples (add to cart and view cart buttons)
Basic list - displays all products on the page as a paged list.   Basic list example
Sample 01 - similar to the Basic List example above, but with better styling.   List example 01
Basic cart - displays all the products as a cart with the items listed in categories and subcategories.   Basic cart example
Sample 01 is a two column cart example.   Cart example 01
Sample 02 is a three column cart example.   Cart example 02
Sample 03 is a three column cart example.   Cart example 03
Sample 04 is a three column cart example.   Cart example 04
Sample 05 is a three column cart example.   Cart example 05

Using http links

You can add items to the cart and remove items from the cart using http links rather than buttons.

To add an item use the following in an http link :

viewcart.php?action=add&item_number=prod_a&from=/eseller/cart/list.php

To remove an item use the following in an http link :

viewcart.php?action=remove&item_number=prod_a&from=/eseller/cart/list.php

where item_number is the name that you have given the product when it was created and from is the url of the page the link is placed on which is used by the viewcart.php page to know where to return to.

Another method is :

viewcart.php?action=add&id=1&from=/eseller/cart/list.php

To remove an item use the following in an http link :

viewcart.php?action=remove&id=1&from=/eseller/cart/list.php

where id is the record id of the item you are adding and from is the url of the page the link is placed on which is used by the viewcart.php page to know where to return to.

Store examples

The store front enables the purchase of single items. So clicking on a 'Buy now' button immediately takes you to the PayPal checkout where you buy that single item.

This system would be used where you only have a few items to sell and you do not expect purchasers to buy more than one item at a time.

The following examples are located in the /store/ folder :

Store examples (Buy now buttons)
Basic list - displays all products on the page as a paged list.   Basic list example
Sample 01 - similar to the Basic List example above, but with better styling.   List example 01
Basic store - displays all the products as a store with the items listed in categories and subcategories.   Basic store example
Sample 01 is a two column store example.   Store example 01
Sample 02 is a three column store example.   Store example 02
Sample 03 is a three column store example.   Store example 03
Sample 04 is a three column store example.   Store example 04
Sample 05 is a three column store example.   Store example 05

To use the store front you need place two include files onto a php page :

<?php include_once ("includes/nav.php"); ?> This is the left hand side navigation that will display the categories.

<?php include_once ("includes/content.php"); ?> This is the main content which normally sits to the right of the navigation links.

Using include files

Use this method when you want to integrate your items into existing pages, or wish to display specific item, or all items in a given category/subcategory.

To display all items, place the following include file into you web page at the required location. The web page must have an extension .php of course.

include_once ("includes/items.php");

An example can be seen in the file 'list.php' which is located in the cart folder.

NOTE : you must also put session_start(); at the top of the page.

As a starting point, it may be better to modify the existing list.php file in the cart folder rather than trying to start from scratch.

To display a specific product use :

http://yourservername/eseller/store/list.php?item_number=xxx

where xxx is the item number from the database

To display all items in a defined category use :

http://yourservername/eseller/store/list.php?maincat_id=xxx

where xxx is the main category id number.

To display all items in a defined category / subcategory use :

http://yourservername/eseller/store/list.php?maincat_id=yyy&subcat_id=zzz

where yyy is the main category id number and zzz is the subcategory id number.

Paging

Paging is defined within the files 'cart/includes/content.php' and 'cart/includes/items.php', 'store/includes/content.php' and store/includes/items.php

You may turn paging on/off and set the paging size by altering the configuration settings located at the top of these files.

Placing your include files onto a page

For those who are not familiar with adding include files to your web page, here is a brief description.

  • First start with a page you have created which matches your layout.
  • Change the file extension to .php The base file name can be anything you want.
  • At the point where you want the display to appear enter :
    <?php include_once("includefilename.php"); ?>
  • Copy your file into the /eseller/store/ folder.

Files which use PHP-eSeller include files need to be placed into the correct folder because it will using other include files from the application.


Find out more

Pricing : PHP-eSeller costs $55 U.S. Dollars, and yes we sell the product using our own application. Click here to go to the purchase page for further details.

Demo : To view an on-line demo illustrating the admin pages and store front, click here.
The demo is live and you may purchase items to see how the system works. Items are $0.01 or $0.02 in value.   

Enquiries : If you have any questions about the product, go to the contacts page by clicking here.

Showcase : To see how customers have used the application, go to the user sites page by clicking here