In the Pioneer Cycling store, we provided users with the ability to switch between basic and advanced checkout processes. By default, the English locale uses the advanced checkout process and the French and Japanese sections use the basic checkout. The moveToPurchaseInfoSuccessURL parameter in cart.jsp is set to determine which checkout process is used. Here is the JSP to use basic checkout:

<!-- CHECKOUT Order button: -->

<dsp:input bean="ShoppingCartModifier.moveToPurchaseInfoByRelId" type="submit"
           value="Checkout"/>

<dsp:input bean="ShoppingCartModifier.moveToPurchaseInfoByRelIdSuccessURL"
           type="hidden" value="basic/order_info.jsp"/>

<dsp:input bean="ShoppingCartModifier.moveToPurchaseInfoByRelIdErrorURL"
           type="hidden" value="cart.jsp"/>

The basic process is used if the moveToPurchaseInfoSuccessURL parameter is set to basic/order_info.jsp. Thus, if the above JSP is uncommented the basic checkout process is used. The following section creates a button for advanced checkout.

<dsp:input bean="ShoppingCartModifier.moveToPurchaseInfoByRelId"
     type="submit" value="   Checkout"/>

<%--
Use this snippet if you want regular http checkout:
<dsp:input bean="ShoppingCartModifier.moveToPurchaseInfoByRelIdSuccessURL"
     type="hidden" value="full/order_info.jsp"/>

--%>

<%--  Use this snippet if you want to use SSL checkout:
--%>
<dsp:droplet name="/atg/dynamo/droplet/ProtocolChange">
  <dsp:param name="inUrl" value="full/order_info.jsp"/>
  <dsp:oparam name="output">
    <dsp:input
         bean="ShoppingCartModifier.moveToPurchaseInfoByRelIdSuccessURL"
         paramvalue="secureUrl" type="hidden"/>
  </dsp:oparam>
</dsp:droplet>

<dsp:input bean="ShoppingCartModifier.moveToPurchaseInfoByRelIdErrorURL"
     type="hidden" value="cart.jsp"/>
 
loading table of contents...