This discussion is archived
1 Reply Latest reply: Oct 30, 2012 3:15 AM by RMishra RSS

Simple checkout process

959025 Newbie
Currently Being Moderated
I need to know the basic flow of checkout process and the formhandlers invloved. If any one could help me with Sample code will be helpfull. I went through the docs but im stuck about how to start with.
  • 1. Re: Simple checkout process
    RMishra Journeyer
    Currently Being Moderated
    For example:
    1- see flow http://cleanjava.files.wordpress.com/2012/07/domain-model.png
    2-read Checkout flow
    3-see http://docs.oracle.com/cd/E23095_01/CRS.93/ATGCRSOverview/html/s0603checkoutprocess01.html
    4-In Cart page use CartModifierFormHandler.order.ShippingGroups[array of ShippingGroups] and for each ShippingGroup ShippingGroup.CommerceItemRelationships:
    items details:
    CommerceItemRelationships.quantity
    CommerceItemRelationships.commerceItem.auxiliaryData.catalogRef.displayName
    CommerceItemRelationships.commerceItem.catalogRefId
    CommerceItemRelationships.commerceItem.auxiliaryData.catalogRef.listPrice
    CommerceItemRelationships.commerceItem.priceInfo.rawTotalPrice
    CommerceItemRelationships.commerceItem.priceInfo.salePrice
    CommerceItemRelationships.commerceItem.priceInfo.amount
    CommerceItemRelationships.commerceItem.priceInfo.adjustments
    Total Details:
    ShoppingCart.current.priceInfo.amount
    ShoppingCart.current.priceInfo.shipping
    ShoppingCart.current.priceInfo.total
    ShoppingCart.current.priceInfo.adjustments
    button:
    CartModifierFormHandler.moveToPurchaseInfoByRelId
    CartModifierFormHandler.setOrderByRelationshipId
    CartModifierFormHandler.removeItemFromOrder
    5-In Billing page you will need:
    Profile.creditCards
    ShoppingCartModifier.selectedCreditCardName
    ShoppingCartModifier.creditCardPaymentGroups-array
    ShoppingCartModifier.creditCardPaymentGroups[param:index].billingAddress.firstName, middleName, lastName, address1, address2, city, state, postalCode, country, phoneNumber etc.
    ShoppingCartModifier.creditCardPaymentGroups[0].creditCardType, creditCardNumber, expirationMonth, expirationYear
    Button:
    ShoppingCartModifier.MoveToConfirmation
    6-payment page use ShoppingCartModifier.MoveToOrderCommit
    -RMishra

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points