The Edit Line Item Page
The page displays a line items from the basket and provides the ability to edit or enter shipping addresses. The items can be edited or deleted. This page is opened by clicking on a Edit / Delete link for an item displayed in the shopping cart.
This page has two modes: Mutli-shipping-address AND single-shipping-address (both modes are displayed below).
The best way to get a feel for how this page and the entire SendSafe system works is to play with a working system. Feel free to place orders into the SendSafe system running on the C Prompt web site. You can place items in the shopping basket starting with either of the pages listed below. The buysample page is a page which contains various pre-configurations of the BuyButtons available. Since the source code is provided you can create any kind of buying page possible.
Remember not to use a real credit card number. This is a fully functioning system. Use one of these test credit card numbers to complete your orders (no charges will complete / all orders will be declined).
Configuration notes:
(1)You can select whether the
user is allowed to change the product-item on this page (selecting a
different item to purchase). This function can be very useful. It can be set to
operate differently for different pages. An SQL Clause is passed via
the subroutine SetProductListModeSQL(). This SQL clause controls which
products will be displayed in the drop down list. If the SQL clause is empty
then a dropdown list is not displayed and the user will not be allowed to
select a different product type. You should not use this function with an
SQL clause that selects a large number of items because it may make opening
the dropdown list slow or in some extrem cases it may cause the browser to
generate an error. To set the SQL clause modified the sub routine call
SetProductListModeSQL() in the asp file that contains the EditBasketLine basket
logic (typically: SendSafe.EditBasketLine.asp or Store.EditBasketLine.asp).
' This is demo code to show how to control what is displayed for the product name.
' This is demo code to show how to set ProductList mode.
' This mode will create a drop down list of products to pick from instead of a non-editable text item name.
' If this variable is empty THEN we are not in ProductList mode
SetProductListModeSQL "Select * from Items"
(2) You can also select the database column that is displayed for "item name" on this form. The database column defaults to FullName. To set the database column modify the subroutine call in the asp file that contains the EditBasketLine basket logic (typically: SendSafe.EditBasketLine.asp or Store.EditBasketLine.asp). Set the parameter to the subroutine to the name of a database column (from the items table) that you want to display.
' This is demo code to show how to control what is displayed for the product name.
' This is demo code to show how to control what is displayed for the product name.
' This OPTIONAL variable holds Items table column name which will be used to display
' the "Item Name" in the entry form
' If this variable is empty THEN the name will be the FullName
'SetItemDisplayField "NickName"
Below is an example of how Edit Line Item looks in single-shipping-address mode:
(Actual file: SendSafe.EditBasketLine.asp)