Update of /var/cvs/contributions/natmm/templates/natmm/includes/shoppingcart
In directory
james.mmbase.org:/tmp/cvs-serv893/templates/natmm/includes/shoppingcart
Modified Files:
getbasket.jsp
Log Message:
NMCMS-614
See also:
http://cvs.mmbase.org/viewcvs/contributions/natmm/templates/natmm/includes/shoppingcart
See also: http://www.mmbase.org/jira/browse/NMCMS-614
Index: getbasket.jsp
===================================================================
RCS file:
/var/cvs/contributions/natmm/templates/natmm/includes/shoppingcart/getbasket.jsp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- getbasket.jsp 22 Sep 2008 14:25:51 -0000 1.4
+++ getbasket.jsp 10 Dec 2008 13:40:33 -0000 1.5
@@ -5,9 +5,9 @@
productsStr.append("<br><br><b>De bestelde producten zijn</b><br><br>"
+ "<table border=\"1\" cellspacing=\"0\"
cellpadding=\"3\"><tr><th>Produktnummer</th><th>Naam</th>");
if(memberId.equals("")) {
- productsStr.append("<th>Prijs</th>");
+ productsStr.append("<th>Prijs per stuk</th><th>Prijs</th>");
} else {
- productsStr.append("<th>Ledenprijs</th>");
+ productsStr.append("<th>Ledenprijs per stuk</th><th>Ledenprijs</th>");
}
productsStr.append("<th>Aantal</th></tr>");
@@ -24,13 +24,12 @@
%><mm:field name="titel" jspvar="titel" vartype="String" write="false"
><mm:field name="id" jspvar="id" vartype="String" write="false"><%
productsStr.append("<tr><td align=\"center\" valign=\"top\">" + id
- + "</td><td align=\"left\"
valign=\"top\">" + titel
- + "</td><td align=\"right\"
valign=\"top\">");
+ + "</td><td align=\"left\"
valign=\"top\">" + titel + "</td>");
if(price==-1) {
- productsStr.append("nog onbekend");
+ productsStr.append("<td></td><td align=\"right\"
valign=\"top\">nog onbekend");
} else {
- productsStr.append("€ " + nf.format(((double) price
)/100));
- totalPrice += price;
+ productsStr.append("<td>€ " + nf.format(((double) price
)/100) + "</td><td align=\"right\" valign=\"top\">€ " +
nf.format(((double) price )/100 * numberOfItems));
+ totalPrice += (price * numberOfItems);
}
%></mm:field
></mm:field><%
@@ -39,10 +38,10 @@
}
productsStr.append("<tr><td align=\"right\" valign=\"top\"
colspan=\"2\">Subtotaal: </td>"
- + "<td align=\"right\" valign=\"top\">€ " + nf.format(((double)
(totalPrice) )/100) + "</td><td></td></tr>"
+ + "<td align=\"right\" valign=\"top\"></td><td>€ " +
nf.format(((double) (totalPrice) )/100) + "</td><td></td></tr>"
+ "<tr><td align=\"right\" valign=\"top\" colspan=\"2\">Verzendkosten:
</td>"
- + "<td align=\"right\" valign=\"top\">€ " + nf.format(((double)
shippingCosts )/100) + "</td><td></td></tr>"
+ + "<td align=\"right\" valign=\"top\"></td><td>€ " +
nf.format(((double) shippingCosts )/100) + "</td><td></td></tr>"
+ "<tr><td align=\"right\" valign=\"top\" colspan=\"2\">Totaal: </td>"
- + "<td align=\"right\" valign=\"top\">€ " + nf.format(((double)
(shippingCosts + totalPrice) )/100) + "</td><td></td></tr>"
+ + "<td align=\"right\" valign=\"top\"></td><td>€ " +
nf.format(((double) (shippingCosts + totalPrice) )/100) + "</td><td></td></tr>"
+ "</table>");
%>
\ No newline at end of file
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs