<% /* Purpose:This p ge displays item purchased and Entry for Shipping & Billing Address */ /* Developed by Ms. Smija P.Alex */ /* Date:20/03/2001*/ /* Last modified on :10/4/2002*/ /* Page Summary : This page display the status of the cart.Entry form for Shipping & Billing Address is provided.Validation is given to check for proper entry . */ %> <%@ page language="java" errorPage="ErrorPage.jsp" import="javax.servlet.*,java.util.*,java.text.DecimalFormat,com.massagestore.*"%>

<%! String location=null; %> <% String[] tmpItem; int cnt=0; float g_tot=0; int loop=0; if(session.isNew()) { response.sendRedirect("home.jsp"); } location=(String)session.getValue("LOC"); Hashtable tempCart=cart.getItems(); Enumeration enum=tempCart.keys(); if(session.getValue("Error") != null) { out.println("Error" +session.getValue("Error")); } %> Payment Form
Current Status:
<% //display items in cart enum=tempCart.keys(); String color = "FFFF99"; while(enum.hasMoreElements()) { loop++; Item tempItem = (Item)tempCart.get(enum.nextElement()); int qty=cart.getQtyOrdered(tempItem); String ItemImg=tempItem.getImageBig(); String CatName=tempItem.getCategory(); String SubcatName=tempItem.getSubCategory(); String ItemName=tempItem.getDisplayName(); String ItemSpec=tempItem.getSpecification(); String ItemType=tempItem.getType(); float DiscAmount=tempItem.getDiscountAmount(); float ItemPrice=tempItem.getSellingPrice(); float ItemFinalPrice=tempItem.getFinalPrice(); String avail=tempItem.getAvailability(); if (avail==null) avail=""; ItemName = ItemType + "-" + ItemName; %> value=<%=tempItem.getSkuNo()%>> <% if (color.equals("FFFF99")) color = "lightgrey"; else color = "FFFF99"; %> <% if(ItemImg!=null) { %> <% } else { %> <% } if (tempItem.getSizes() != null && tempItem.getSizes().length != 0) { String[] sizes = tempItem.getSizes(); %> <% } else { %> <% } if (tempItem.getColors() != null && tempItem.getColors().length != 0) { String[] colors = tempItem.getColors(); %> <% } else { %> <% } %> <% // to calculate total price of a perticular item float tot=(qty*ItemFinalPrice); //String stot = tot; //to calculate grand total of all items %> <% } %> <% Enumeration enum1=tempCart.keys(); if (!enum1.hasMoreElements()) { //if no items in cart out.print("
Cart Is Empty
"); location = "home.jsp"; } %>
Description Size Color Rate Quantity Total Discount Availability Total
&subcat_name=<%=SubcatName%>&cat_name=<%=CatName%>><%=tempItem.getDisplayName()%> <%=ItemName%>  na. na. <%=Utils.getFormattednumber(ItemPrice)%> size="5" value=<%=qty%> > <%=Utils.getFormattednumber(qty*DiscAmount)%> <%=avail%>  <%=Utils.getFormattednumber(tot)%>
Merchandise Total: <%=Utils.getFormattednumber(cart.getTotalValue())%>
 

Payment Information (Fields marked * are mandatory)

Billing Address:

First Name :
Last Name :
Address :
City :
Country :
State :
Zip :
Email :
Phone Number :

Shipping Address: Check here if same as Billing
First Name * :
Last Name * :
Address * :
City * :
Country * :
State* :
Zip* :
Email :
Phone Number :

Terms and conditions
By checking the I Agree checkbox below, I am attaching my electronic signature and agreeing to the Terms and conditions of massagestore.com; I understand that if I do not agree to these terms, I should close this window and not place my order.
I Agree :

 

 

<%@ include file="homefooter.jsp"%>