<%@ language="javascript" %> Shopping Cart

<% var GrandTotal = 0; function WriteItemTable() { var NumberItemsOrdered = GetNumberItemsOrdered(); var Index = 0; var Index1 = 0; var Index2 = 0; var FieldNum = 1; var SubTotal = 0; var Code = ""; var URL = ""; var Name = ""; var Size = ""; var Price = ""; var Quantity = ""; var ItemDetails = ""; Response.Write(""); Response.Write(""); //Response.Write("**********************************************************
"); //Response.Write("NumberItemsOrdered = " + NumberItemsOrdered + "
"); //Response.Write("Session.Contents(1) = " + Session.Contents(1) + "
"); //Response.Write("**********************************************************
"); if (NumberItemsOrdered > 0) { Response.Write(""); Response.Write(""); Response.Write(""); Response.Write(""); Response.Write(""); Response.Write(""); Response.Write(""); for (Index = 1; Index <= Session.Contents.Count; Index++) { ItemDetails = String(Session.Contents(Index)); if (ItemDetails.indexOf(".asp") > -1) { //******************************************************************************************************************** //* Example data //* //* SmallTrees.asp&Acacia implexa&3.50&Tube&ST001&10 //******************************************************************************************************************** Index1 = 0; Index2 = ItemDetails.indexOf("&"); URL = ItemDetails.substring(Index1, Index2); //Response.Write("**********************************************************
"); //Response.Write("ItemDetails = " + ItemDetails + "
"); //Response.Write("Index1 = " + Index1 + "
"); //Response.Write("Index2 = " + Index2 + "
"); //Response.Write("URL = " + URL + "
"); //Response.Write("**********************************************************
"); Index1 = Index2 + 1; Index2 = ItemDetails.indexOf("&", Index1); Name = ItemDetails.substring(Index1, Index2); //Response.Write("**********************************************************
"); //Response.Write("ItemDetails = " + ItemDetails + "
"); //Response.Write("Index1 = " + Index1 + "
"); //Response.Write("Index2 = " + Index2 + "
"); //Response.Write("Name = " + Name + "
"); //Response.Write("**********************************************************
"); Index1 = Index2 + 1; Index2 = ItemDetails.indexOf("&", Index1); Price = ItemDetails.substring(Index1, Index2); //Response.Write("**********************************************************
"); //Response.Write("ItemDetails = " + ItemDetails + "
"); //Response.Write("Index1 = " + Index1 + "
"); //Response.Write("Index2 = " + Index2 + "
"); //Response.Write("Price = " + Price + "
"); //Response.Write("**********************************************************
"); Index1 = Index2 + 1; Index2 = ItemDetails.indexOf("&", Index1); Size = ItemDetails.substring(Index1, Index2); //Response.Write("**********************************************************
"); //Response.Write("ItemDetails = " + ItemDetails + "
"); //Response.Write("Index1 = " + Index1 + "
"); //Response.Write("Index2 = " + Index2 + "
"); //Response.Write("Size = " + Size + "
"); //Response.Write("**********************************************************
"); Index1 = Index2 + 1; Index2 = ItemDetails.indexOf("&", Index1); Code = ItemDetails.substring(Index1, Index2); //Response.Write("**********************************************************
"); //Response.Write("ItemDetails = " + ItemDetails + "
"); //Response.Write("Index1 = " + Index1 + "
"); //Response.Write("Index2 = " + Index2 + "
"); //Response.Write("Code = " + Code + "
"); //Response.Write("**********************************************************
"); Index1 = Index2 + 1; Index2 = ItemDetails.length; Quantity = ItemDetails.substring(Index1, Index2); //Response.Write("**********************************************************
"); //Response.Write("ItemDetails = " + ItemDetails + "
"); //Response.Write("Index1 = " + Index1 + "
"); //Response.Write("Index2 = " + Index2 + "
"); //Response.Write("Quantity = " + Quantity + "
"); //Response.Write("**********************************************************
"); if (Quantity > 0) { SubTotal = Quantity * Number(Price); GrandTotal += SubTotal; //Response.Write("**********************************************************
"); //Response.Write("ItemDetails = " + ItemDetails + "
"); //Response.Write("Index1 = " + Index1 + "
"); //Response.Write("Index2 = " + Index2 + "
"); //Response.Write("Quantity = " + Quantity + "
"); //Response.Write("FieldNum = " + FieldNum + "
"); //Response.Write("**********************************************************
"); Response.Write("\n"); Response.Write("\n"); Response.Write("\n"); Response.Write("\n"); Response.Write("\n"); Response.Write("\n"); FieldNum++; } } } Response.Write("\n"); } else { Response.Write("\n"); } Response.Write("
Your shopping cart contains the following items so far:
LINKITEM CODEITEM NAMESIZEPRICEQUANTITYSUBTOTAL
" + "review:" + "\n"); Response.Write("
GRAND TOTAL (excluding postage)
EMPTY
\n"); } %>

Greg's Indigenous Plants & Landscapes

Environmentally friendly landscapes.

" The exotic vegetation that replaces indigenous plant communities in urbanising regions, disassociates us from the rhythms and diversity of the native landscape
and a sense of the place; and we are the poorer because of it."

Michael Hough, Professor of Landscape Architecture, York University, Canada

dot

 
In This Site
 

<% WriteItemTable(); %>

 

 

Contact Details
Given names  ">
Last Name  ">
Email Address  ">
Address  ">
">
City  ">
State 
Post Code  ">
Phone  ">
Mobile  ">
Delivery Details
Given Names  ">
Surname  ">
Email Address  ">
Address  ">
  ">
City  ">
State 
Post Code  ">
Phone  ">
Mobile  ">
 
Additional instructions:

 

Pay via Paypal...

Pay via Paymate...

Pay via direct bank deposit...

Pay via cheque or money order...

50) Response.Write(" disabled=\"disabled\"")%>>Pay cash on pick up...

PLEASE NOTE: Postage calculation seems to be accurate but I may have to adjust the amount up or down by a small amount ($1 - $2) for a short time. The Paypal and Paymate payment options will therefore remain disabled until I am totally confident that the calculation algorithm is right and until I have done a bit more testing on them as well...

<% if (GrandTotal > 50) { Response.Write("

ALSO PLEASE NOTE: The cash on pick up option is not available for orders with a total over $50.00


"); } else { Response.Write("

 

"); } %>

 

>  

 
In This Section
 

dot

dot

Footer information such as street addresses, email addresses, phone numbers, disclaimers, etc. goes here.