| **WARNING** To run this demo the domain name must be "www.c-prompt-dev.com". The domain name you are using (www.cpromptguru.com) will not work fully or correctly! Click here to load this page from the correct domain |
This page includes several examples of how buy buttons (called BuyObjects or BuyButtons) can be used in your web pages. These objects are all coded in ASP logic (ASP examples are included in viewable html on these pages).
All BuyObjects can use any kind of html button, graphic image, or hyper link to place a item in the shopping basket.
Since the source code for the GUI is provided is it possible to create any kind of buying page imaginable. An example of a more complex buying page is the Past Purchases List (provided with the SendSafe system debug)
| If this demo page is running on a fully functional SendSafe system, you can add items with these buttons to a working Shopping Basket and complete the order to see how SendSafe operates. Do not use a real credit card number; instead use Visa 4111-1111-1111-1111 Exp 01/10 (or any other test credit card number). Use this link to go directly to the shopping cart: Goto Cart |
Minimalist BuyButton...
Here are Buy Buttons that display only a small amount of information.
These buttons are great for pages that contain 2 dimensional arrays of products. An example would be CDROMS or Images being sold.
Basic Buybuttons...
Here are few examples of how BuyButtons can display varying amounts of information about the item being sold and entry fields.
Things like Price, Description, Stock level, Quantity, Item Attributes (i.e. small, med, large etc.).
Dollar Amount Entry Buybuttons...
This is a BuyButton that allows the user to enter the price (dollar amount)... This BuyButton is useful for Invoice Entry or Internal admin pages which when coupled with QuickBuy are great ways to have
the customer support folks add costs OR items to an order.
You can use any item in the database and change it's price with this entry field. For this button to work the price for item in the database must be zero dollars.
The only exception is if your have Quantity Pricing enabled and the item you are using is part of the Quantitiy pricing table. In that case regardless the
price entered for this item, the quantity price will prevail.
BuyButtons and the ASP code that creates them...
set sbobj = new sendSafeBuyObjects
sbobj.buyPageBEGIN
okay = sbobj.addBuyButton( 1, "Quantity Price A", "", true, true, false, false, "BUY IT", false, "Times", 3, -1, "images/addtocart_blueoval.gif", 107, 25 )
set sbobj = new sendSafeBuyObjects
sbobj.buyPageBEGIN
okay = sbobj.addBuyButton( 2, "Quantity Price A", "", true, true, true, false, "GET SOME", false, "Times", 2, 1957, "images/addtocart.graysteal.gif", 123, 28 )
set sbobj = new sendSafeBuyObjects
sbobj.buyPageBEGIN
okay = sbobj.addBuyButton( 3, "Quantity Price A", "", true, true, true, false, "FREEBE", false, "Arial", 2, 0, "", 0, 0 )
set sbobj = new sendSafeBuyObjects
sbobj.buyPageBEGIN
okay = sbobj.addBuyButton( 4, "Quantity Price A", "The very biggest,The next biggest size,A medium size,the very smallest", true, true, true, false, "I WANT THIS", false, "Arial", 1, -1, "images/SendSafe.BlueGlass.SmallBuyItem.gif", 97, 28 )
set sbobj = new sendSafeBuyObjects
sbobj.buyPageBEGIN
okay = sbobj.addBuyButton( 1, "Quantity Price A", "size 1,size 2,size 3,size 4,size 5,size 6,size 7", true, true, true, true, "I WANT THIS", false, "Arial", 2, -1, "images/SendSafe.BlueGlass.SmallBuyItem.gif", 97, 28 )
This BuyButton is created using the internal_addVerySimpleBuyButton() method
This object is great for display pages using 2 dimensional arrays of products.
set sbobj = new sendSafeBuyObjects
sbobj.internal_addVerySimpleBuyButton_STARTFORM
okay = sbobj.internal_addVerySimpleBuyButton( 2, "", "Small, medium,large", "Arial", 1, "BuyME", -1, "images/SendSafe.BlueGlass.SmallBuyItem.gif", 97, 28 )
sbobj.internal_addVerySimpleBuyButton_ENDFORM
Build your own Buybuttons...
This ASP code below can be used to create buybuttons with maximum customization possibilities. This code is example of the bare minimum which is needed. Far more features and control are possible. At the end of this code sample is a running button which uses this ASP code.
Dim nextStepURL
if ( Application("securityRequireLogon") ) then
set clogon = new CustomerLogonManager
clogon.setConditionalLogonBox = false
clogon.setdisplayOkayStatus = false
clogon.setSuppressLogonBox = true
if ( clogon.checkLogon() OR ( Session("_ByPassLoginScreen") = true ) OR isZDILogonAvailable() ) then
nextStepURL = Application("urlfor_ADDBASKET")
else
nextStepURL = thisSSLURLPath & "/" & Application("urlfor_LOGON")
end if
else
nextStepURL = Application("urlfor_ADDBASKET")
end if
nextStepURL = appendURLToken( nextStepURL & "?burl=" & thispageURL )
Response.Write( "<form ACTION=" & nextStepURL & " METHOD=POST NAME=""MYFORM"">" + vbCrlf )
Response.Write( "<p>Qty <INPUT TYPE=TEXT NAME=QUANTITY SIZE=2 value=1> SendSafe Software " + vbcrlf )
Response.Write( "<input type=""submit"" value=""ADD TO BASKET"" id=""submit2"" name=""submit2"">
" + vbCrlf )
Response.Write( "<INPUT TYPE=hidden NAME=FULLNAME value=""SendSafe software (via ASP code)"">" + vbcrlf )
Response.Write( "<INPUT TYPE=hidden name=""ATTRIBUTE"" value=""none"">" + vbCrLf )
Response.Write( "<INPUT TYPE=hidden Name=PRICE VALUE=""10.00"">" + vbCrlf )
Response.Write( "<INPUT TYPE=hidden Name=FORMACTION VALUE=ADDTOBASKET>" + vbCrlf )
Response.Write( "<INPUT TYPE=hidden name=""PRODUCTCODE"" value=""1000"">" + vbCrLf )
Response.Write( "<INPUT TYPE=hidden name=""QTYPRICELIST"" value=""Quantity Price A"">" + vbCrLf )
Response.Write( "<INPUT TYPE=hidden name=""ORDERFLAGS"" value="""">" + vbCrLf )
Response.Write( "<INPUT TYPE=hidden name=""COMMENT"" value="""">" + vbCrLf )
Response.Write( "</form>" + vbCrlf )
Experiment with Buybuttons...
This example lets you enter your own values for each of the form elements.
The SendSafe system supports multiple item entries per submission. If you enter comma delimited matching pairs of ItemCodes, Attributes, and quantities then the system will accept these "lists" as a single combined entry. For a example see the form below:
Buybuttons can add FreeFormParams to Extended database tables...
This example lets you enters several free-form parameters.
SendSafe I-Commerce System © Copyright 2001 KJB Software Development Inc. d/b/a C Prompt. All rights reserved.