Overview
Username:  
Password:
  > Home
> User Guide
> Reference
> Portal Object
v Development Guide
    o Overview
    > A Typical Page (C)
    > Data Handling
    > Applications
    > Working BEE


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> Development Guide >> Overview <=  =>      <  1  2  3  4  5  6  7  8  9  10  >  
Checkout An overview to BEE website development

The Checkout form is no more than a normal HTML form.  However, this time you need to do the whole form without BEE's assistance, as it is not required.

All you need to do is to create a form that submit to /sendorder.htm, like <FORM action=./sendorder.htm>.  The "sendorder.htm" application will pick up the shopping cart and anything on the checkout form, convert it to plan text format and send it as an email to the owner's designated email address (settable from Settings on the blue bar).

One restriction though, if you are using the POST method, you must submit to a real page.  For example, <FORM action=./sendorder.htm method=POST> will not work because sendorder.htm is a Virtual Page application.

There is a way to work around this:

<FORM action="{{PortalObjectName}%SiteURL}" method=POST>
<INPUT type=hidden name=submitredirectto value=/sendorder.htm>
...

Since the site URL is a physical page (the Virtual Page "mother"), the POST will work, and the Portal Object interprets the "submitredirectto" form parameter and redirect the form to the corresponding application.

The above workaround is required only for method=POST.  For method=GET (the default), there is no need of any workaround; the Virtual Page mechanism works beautifully with GET.

 

Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd