DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
Shopping Cart  
DwZone Forum Index -> Shopping Cart

Moderators: AdministratorsModerators 
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Dynamic' from the View dropdown and hit 'Set Options' to save your changes.
New Topic Search for
 View     Per page     Messages Since 
Messages 31 to 40 of 197 (Total: 93) First |  Prev |  Next |  Last  
 Subject Author Date  
   showing 2 decimals  
View this persons public profile  Michel Post   12:12 4 Nov 2010  
   Re: showing 2 decimals  
View this persons public profile  Gianluigi   12:52 4 Nov 2010  
   Re: showing 2 decimals  
View this persons public profile  Michel Post   8:12 5 Nov 2010  
   Re: showing 2 decimals  
View this persons public profile  Gianluigi   11:26 5 Nov 2010  
    Re: showing 2 decimals  
View this persons public profile  Michel Post   11:51 5 Nov 2010  
 
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="dwzCart/dwzCartClass.asp"-->
<%
'**********************
' DwZone Shopping Cart
' Insert Cart Instance
' Version 1.3.1
'**********************
set objCart = new dwzCart
objCart.CartName = "convital"
objCart.CreateCart()
'Insert Cart End Code
%>
<!--#include file="Connections/convital.asp" -->
<!-- #include file="includes/wdg/WDG.asp" -->
<%
'**********************
' DwZone Shopping Cart
' Send Order Mail
' Version 1.3.1
'**********************
objCart.MailSend = "1"
objCart.MailParameters = "3@__@localhost@__@25@__@@__@ @__@ @__@0@__@@_start_@cStr(Request.Form(@_''_@contactpersoon@_''_@))@_end_@@__@@_start_@cStr(Request.Form(@_''_@email@_''_@))@_end_@@__@@_start_@cStr(Request.Form(@_''_@contactpersoon@_''_@))@_end_@@__@@_start_@cStr(Request.Form(@_''_@email@_''_@))@_end_@@__@@_start_@cStr(Request.Form(@_''_@contactpersoon@_''_@))@_end_@@__@[email protected]@__@ @__@@_start_@cStr(Request.Form(@_''_@email@_''_@))@_end_@@__@ @__@0@__@1@__@0@__@Convital online bestelling@__@us-ascii;20127;US-ASCII"
objCart.MailBodyHeader = "Beste ,<dwzPerc=cStr(Request.Form(dwzVirgcontactpersoondwzVirg))dwzPerc>,dwzErredwzCrLfdwzErredwzCrLfBedankt voor je bestelling bij convital.nldwzErredwzCrLfdwzErredwzCrLfU heeft bij ons de volgende producten besteld : "
objCart.MailBodyFooter = "Dit is een automatisch aangemaakte order bevestiging. Indien u vragen of opmerkingen heeft,dwzErredwzCrLfgebruik dan ons online contactformulier"
objCart.MailCartColumns = "Quantity;Aantal;2;Y;0;|ProductName;productnaam;1;N;0;|UnitPrice;prijs per stuk;3;Y;2;|TotalPrice;totaal;4;Y;2;"
objCart.MailColumnsSetup = "Arial, Helvetica, sans-serif@__@Arial, Helvetica, sans-serif@__@#000000@__@#000000@__@@__@@__@0@__@0@__@#FFFFFF@__@#FFFFFF@__@@__@E@__@1@__@2"
objCart.MailDetailOrder = "0@__@Order amount@__@0@__@Order discount@__@0@__@Order net@__@0@__@Shipping@__@0@__@undefined@__@0@__@@__@0@__@@__@0@__@@__@0@__@Taxable amount@__@0@__@Tax amount@__@1@__@Totale order bedrag"
'Send Order Mail End Code
%>
<%
'**********************
' DwZone Shopping Cart
' Insert DataBase Order
' Version 1.3.1
'**********************
if request.Form("dwzCartInsertOrder") = "form1" then
objCart.RedirectUrl = "orderoke.asp"
objCart.CartConnectionString = MM_convital_STRING
objCart.OrderTable = "orders"
objCart.OrderColumnKey = "oid"
objCart.OrderFieldsStr = "adres|value|bedrijfsnaam|value|besteldatum|value|contactpersoon|value|email|value|opmerking|value|postcode|value|telefoonnummer|value|woonplaats|value"
objCart.OrderColumnsStr = "adres|Text|bedrijfsnaam|Text|orderdatum|Text|contactpersoon|Text|emailadres|Text|opmerking|Text|postcode|Text|telefoonnummer|Text|woonplaats|Text"
objCart.OrderDetailsTable = "orders"
objCart.OrderDetailsColumnKey = "oid"
objCart.OrderDetailsFieldsStr = "IdProduct|value|Quantity|value|ProductName|value|UnitPrice|value|TotalPrice|value"
objCart.OrderDetailsColumnsStr = "productid|Text|productaantal|Text|productnaam|Text|prijspst|Text|prijstotaal|Text"
objCart.KillCartAfterInsertOrder = "1"
objCart.InsertOrder()
end if
'Insert Order End Code
%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:wdg="http://ns.adobe.com/addt">
<head>

<!-- metatags website convital -->

<META NAME="description">
<META NAME="keywords">
<META NAME="robot">
<META NAME="copyright" CONTENT="Copyright © . Alle Rechten Voorbehouden.">
<META NAME="author">

<!-- einde metatags website convital -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Convital Uithoorn | Kassa</title>
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" />
<script src="spry/SpryValidationTextField.js" type="text/javascript"></script>
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<link href="spry/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="includes/common/js/sigslot_core.js"></script>
<script src="includes/common/js/base.js" type="text/javascript"></script>
<script src="includes/common/js/utility.js" type="text/javascript"></script>
<script type="text/javascript" src="includes/wdg/classes/MXWidgets.js"></script>
<script type="text/javascript" src="includes/wdg/classes/MXWidgets.js.asp"></script>
<script type="text/javascript" src="includes/wdg/classes/SmartDate.js"></script>
<link href="includes/skins/mxkollection3.css" rel="stylesheet" type="text/css" media="all" />
</head>

<body onload="MM_preloadImages('menuknoppen/01_start_over.png','menuknoppen/02_visie_over.png','menuknoppen/03_producten_over.png','menuknoppen/04_maandaanbieding_over.png','menuknoppen/05_winkelwagen_over.png','menuknoppen/06_informatie_over.png','menuknoppen/07_contact_over.png')">

<div id="outerwrapper">

<div id="header"><div class="randomimage"><!--#include file="kop.asp"--></div></div>

<div id="middenlijn">MIDDENLIJN</div>

<div id="contentcontainer">


<div class="contennavi">
<table width="236" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30"> </td>
</tr>
<tr>
<td height="30"><a href="default.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('startpagina','','menuknoppen/01_start_over.png',1)"><img src="menuknoppen/01_start_up.png" alt="start pagina" name="startpagina" width="236" height="30" border="0" id="startpagina" /></a></td>
</tr>
<tr>
<td height="30"><a href="visie.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','menuknoppen/02_visie_over.png',1)"><img src="menuknoppen/02_visie_up.png" alt="Visie en werkwijze" name="Image3" width="236" height="30" border="0" id="Image3" /></a></td>
</tr>
<tr>
<td height="30"><a href="producten.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('producten','','menuknoppen/03_producten_over.png',1)"><img src="menuknoppen/03_producten_up.png" alt="producten" name="producten" width="236" height="30" border="0" id="producten" /></a></td>
</tr>
<tr>
<td height="30"><a href="maandaanbieding.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('maandaanbieding','','menuknoppen/04_maandaanbieding_over.png',1)"><img src="menuknoppen/04_maandaanbieding_up.png" alt="Convital maandaanbieding" name="maandaanbieding" width="236" height="30" border="0" id="maandaanbieding" /></a></td>
</tr>
<tr>
<td height="30"><a href="winkelwagen.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('winkelwagen','','menuknoppen/05_winkelwagen_over.png',1)"><img src="menuknoppen/05_winkelwagen_up.png" alt="winkelwagen" name="winkelwagen" width="236" height="30" border="0" id="winkelwagen" /></a></td>
</tr>
<tr>
<td height="30"><a href="informatie.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('informatie','','menuknoppen/06_informatie_over.png',1)"><img src="menuknoppen/06_informatie_up.png" alt="informatie" name="informatie" width="236" height="30" border="0" id="informatie" /></a></td>
</tr>
<tr>
<td height="30"><a href="contact.asp" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','menuknoppen/07_contact_over.png',1)"><img src="menuknoppen/07_contact_up.png" alt="contact met convital" name="contact" width="236" height="30" border="0" id="contact" /></a></td>
</tr>
</table>
</div>

<div id="clinkscontainer">

<div id="contentlinks"> <span class="pagtitel">Bestelling afronden</span>
<p>U kunt uw bestelling afronden door onderstaand uw gegevens in te voeren. Wij nemen dan contact met u op wanneer wij de bestelde producten bij u langs komen brengen.</p>
<p>U dit het formulier zo volledig mogelijk in te vullen. Voor eventuele vragen of opmerkingen verzoeken wij u ons <a href="contact.asp">contactformulier</a> te gebruiken.</p>
<p class="pagtitel">Uw bestelling :</p>
<form id="form1" name="form1" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="28%" height="25">bedrijfsnaam</td>
<td width="72%" height="25"><label>
<input name="bedrijfsnaam" type="text" id="bedrijfsnaam" size="35" />
</label></td>
</tr>
<tr>
<td height="25">contact persoon</td>
<td height="25"><span id="sprytextfield1">
<label>
<input name="contactpersoon" type="text" id="contactpersoon" size="35" />
</label>
<span class="textfieldRequiredMsg">Een waarde is verplicht.</span></span></td>
</tr>
<tr>
<td height="25">adres</td>
<td height="25"><span id="sprytextfield2">
<label>
<input name="adres" type="text" id="adres" size="35" />
</label>
<span class="textfieldRequiredMsg">Een waarde is verplicht.</span></span></td>
</tr>
<tr>
<td height="25">postcode</td>
<td height="25"><span id="sprytextfield3">
<label>
<input name="postcode" type="text" id="postcode" size="35" />
</label>
<span class="textfieldRequiredMsg">Een waarde is verplicht.</span></span></td>
</tr>
<tr>
<td height="25">woonplaats</td>
<td height="25"><span id="sprytextfield4">
<label>
<input name="woonplaats" type="text" id="woonplaats" size="35" />
</label>
<span class="textfieldRequiredMsg">Een waarde is verplicht.</span></span></td>
</tr>
<tr>
<td height="25">telefoonnummer</td>
<td height="25"><span id="sprytextfield5">
<label>
<input name="telefoonnummer" type="text" id="telefoonnummer" size="35" />
</label>
<span class="textfieldRequiredMsg">Een waarde is verplicht.</span></span></td>
</tr>
<tr>
<td height="25">e-mail adres</td>
<td height="25"><span id="sprytextfield6">
<label>
<input name="email" type="text" id="email" size="35" />
</label>
<span class="textfieldRequiredMsg">Een waarde is verplicht.</span><span class="textfieldInvalidFormatMsg">Ongeldige notatie.</span></span></td>
</tr>
<tr>
<td height="25">opmerking</td>
<td height="25"><label>
<textarea name="opmerking" id="opmerking" cols="45" rows="5"></textarea>
</label></td>
</tr>
<tr>
<td height="25">bestel datum</td>
<td height="25"><label>
<input name="besteldatum" id="besteldatum" value="" size="10" wdg:subtype="SmartDate" wdg:mask="<%= KT_screen_date_format %>" wdg:restricttomask="no" wdg:defaultnow="yes" wdg:spinner="no" wdg:type="widget" />
</label></td>
</tr>
</table>
<p class="pagtitel">Door u bestelde producten :</p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40%" height="25"><strong>productnaam</strong></td>
<td width="20%" height="25"><strong>aantal</strong></td>
<td width="20%" height="25"><strong>prijs per stuk</strong></td>
<td width="20%" height="25"><strong>totaal</strong></td>
</tr>
<%
'*****************************
' DwZone Shopping Cart
' Cart Repeat Region
' Before Selection Instance
'*****************************
for dwzCart_i = 0 to objCart.cartItems()-1
'End Repeat region
%>
<tr bgcolor="<%
'**************************
' DwZone Shopping Cart
' Alternate row color
' Version 1.3.1
'**************************
firstColor = "#FFFFFF"
secondColor = "#e0e1f0"
if dwz_RowColor_0 <> firstColor then
dwz_RowColor_0 = firstColor
else
dwz_RowColor_0 = secondColor
end if
response.write(dwz_RowColor_0)
'End Alternate row color
%>">
<td width="40%" height="25"><%=(objCart.GetColumnValue(dwzCart_i,"ProductName"))%></td>
<td width="20%" height="25"><%=(objCart.GetColumnValue(dwzCart_i,"Quantity"))%></td>
<td width="20%" height="25">€ <%=(objCart.GetColumnValue(dwzCart_i,"UnitPrice"))%></td>
<td width="20%" height="25">€<%=(objCart.GetColumnValue(dwzCart_i,"TotalPrice"))%></td>
</tr>
<%
'*****************************
' DwZone Shopping Cart
' Cart Repeat Region
' After Selection Instance
'*****************************
next
'End Repeat region
%>
</table>
<p> </p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40%"><strong>Totaal bedrag bestelling excl. BTW</strong></td>
<td width="60%">€ <%=(objCart.GrandTotal)%></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
<p>
<label>
<input type="image" name="imageField" id="imageField" src="siteillustraties/bestellingafronden.png" />
</label>
</p>
<input type="hidden" name="dwzCartInsertOrder" value="form1" />
<input type="hidden" name="dwzCartInsertOrder" value="form1" />
</form>
<p> </p>
</div>
<div class="contentcontact">contact form</div>

</div>
</div>
</div>
<script type="text/javascript">
<!--
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6", "email");
//-->
</script>
</body>
</html>
<%
'**********************
' DwZone Shopping Cart
' Kill Cart Instance
'**********************
set objCart = nothing
%>


XML FILE :

<?xml version="1.0" encoding="utf-8" ?>
<root>
<Cart name="convital">
<Config>
<Column name="SaveCartInCookie" value="0"/>
<Column name="ExpireCookieDay" value="-1"/>
<Column name="LCID" value="1043"/>
<Column name="orderIdSessionName" value="convitalorder"/>
</Config>
<CartColumns>
<Column name="IdProduct" formula="" formulalevel="-1" sum="false" />
<Column name="Quantity" formula="" formulalevel="-1" sum="false" />
<Column name="ProductName" formula="" formulalevel="-1" sum="false" />
<Column name="UnitPrice" formula="" formulalevel="-1" sum="false" />
<Column name="Discount" formula="" formulalevel="-1" sum="false" />
<Column name="ShippingCost" formula="" formulalevel="-1" sum="false" />
<Column name="UnitWeight" formula="" formulalevel="-1" sum="false" />
<Column name="VATperc" formula="" formulalevel="-1" sum="false" />
<Column name="ItemDiscount" formula="round([UnitPrice] * [Discount] / 100,2)" formulalevel="0" sum="false" />
<Column name="TotalDiscount" formula="[Quantity] * [ItemDiscount]" formulalevel="2" sum="false" />
<Column name="TotalPrice" formula="round([Quantity] * [UnitPrice],2)" formulalevel="-1" sum="false" />
<Column name="TotalWeight" formula="[Quantity] * [UnitWeight]" formulalevel="0" sum="false" />
<Column name="OutOfStock" formula="" formulalevel="-1" sum="false" />
</CartColumns>
</Cart>
</root>


 
Reply to this current thread  View this persons public profile  Send Private Message
   Re: showing 2 decimals  
View this persons public profile  Gianluigi   12:05 5 Nov 2010  
   Re: showing 2 decimals  
View this persons public profile  Michel Post   2:21 24 Nov 2010  
   Re: showing 2 decimals  
View this persons public profile  Gianluigi   10:47 24 Nov 2010  
   W3C Markup validation  
View this persons public profile  [email protected]   4:21 14 Dec 2009  
   Re:W3C Markup validation  
View this persons public profile  gianluigi   10:33 14 Dec 2009  
Last Visit: Sunday 29 Dec, 2024 1:54 am First |  Prev |  Next |  Last  
 Login
Username:  Password:    
Read Message Read Message   Unread message Unread message
Read message [popular] Read message [popular]   Unread message [popular] Unread message [popular]
Read message [locked] Read message [locked]   Unread message [locked] Unread message [locked]
All times are GMT-1

Jump to: