This help file is not a complete explanation of everything, it is just a quick primer to point you in the correct direction whilst your familiarizing yourself with this demo site and the cart extension, for more detailed documentation check out the help file supplied with the extension itself.

default.aspx

The default page shows a random product each time it is viewed by using the GetRandomNumber method of the WebXelCart.Shared class, the top 5 selling products are also shown on the home page, all of the logic for this feature can be found in the "web_MostPopularItems" query found within the database itself.


Products.aspx
This page shows all products in a particular category, you have the option of adding all the products in a single click on the “Add all products in this category” link or adding individual items using the “Add to cart” button, the “Add all products in this category” link takes you to BatchAdd.aspx, the “Add to cart” button takes you to AddFromDB.aspx.

Product_info.aspx
This page shows more details of an individual product.

AddFromDB.aspx
This page contains an AddFromDB control that expects a URL parameter called “ProdID” to contain the productID number of the product to add to the cart.

BatchAdd.aspx
This page contains an AddFromDB control that expects a URL parameter called “CatID” to contain the category number of the products to add to the cart, all items in the passed category will be added, this is to show you how you could place a link on your pages to add all items that belong to a kit/set.

ByColor.aspx
This page is used to show how options can be placed into a dropdown/listbox to facilitate the selection of color or sizes, the page select appropriate products using the HasColorChoice field, these dropdown/list boxes can also support DataBinding and work the same as asp:dropdownlist and asp:listbox.

LoadCart.aspx
This page shows how you can load the contents of an order from the database, this could be used in conjunction with the SaveOrder control to allow users to save orders one day then add to them the next before submitting them to the checkout process.

multiple.aspx
This page demonstrates how you can allow your users to add multiple products to the cart whilst specifying a quantity of each, this could be of use for account customers submitting stock orders and the like.

cart.aspx
This page is responsible for displaying the contents of the cart to the user.

getcustinfo.aspx
This page is used to obtain customer information such as name/email/address, return customers have the option to login saving them from filling in the form again, this page is commented in the code to explain what each part is doing.

Login.aspx
This page provides return customers the means to login and return to the getcustinfo form with the information pre-filled in.

summery.aspx
This page shows the user a summery of what they are about to order showing delivery address and carriage costs as well as cart contents, this page also saves the order to the database when the user click the “Pay Now” button.

finish.aspx

This page is the one your payment gateway provider such as WorldPay would post back to with the payment process status, if the returned status indicates that payment was successful this page would then update the order in the database if required and send the you and the customer a copy of an invoice.

It’s not possible to show this page working properly due to not know what payment gateway you will use, for this reason the GoMerchant.aspx page links directly to finish.aspx

If you have not chosen a payment gateway provider it’s worth noting that if you signup for a WorldPay account through WebXeL we can provide advice on setting up the WorldPay control panel and also provide a free add-on pack for the cart extension making the creation of the transfer page a breeze.


invoice_template.htm
This is the template that the emailed invoice is based on.

 

Design by WebXeL.com