Laddawn.com : Save Checkout Screen Data to DB

Objective:  To allow testing of the order creation process to get the database updated with the correct information. So, if someone was to run through the checkout process and hit create order the order is created.

 

Overview:

 

Update the ShoppingCart entity with all the necessary properties.

  • BundleCollection
    • Date – The bundle’s ship date
    • WhsCode – The Warehouse the bundle will be shipping from
    • ShipVia – The code for the carrier used to ship the bundle
    • BundleItems
      • PartNumber – Laddawn’s Part number for the item in the bundle.
      • Qty – The quantity of this item that will ship in this bundle.
  • CommentCommentCollection
    • CommentNumber – BUNDLE.PKGCOMM.NBR – The code signifying what the comment is.
    • Input1 – BUNDLE.PKG.INPUT1 – The first replaceable element on the comment.
    • Input2 – BUNDLE.PKG.INPUT2 – The second replaceable element on a commnet.
  • FreightAcct – BUNDLE.FREIGHT.ACCT  – The account number the customer wants charged when they are doing third party or collect shipments with UPS or FedEx.
  • FreightAddr1 – BUNDLE.FREIGHT.ADDR1 – The name company name of the party paying for freight.
  • FreightAddr2 – BUNDLE.FREIGHT.ADDR2 – The first line of address for the party paying for freight
  • FreightAddr3 – BUNDLE.FREIGHT.ADDR3 – The second line of address for the party paying for freight.
  • FreightCity – BUNDLE.FREIGHT.CITY – The city portion of the freight payer address.
  • FreightState – BUNDLE.FREIGHT.STATE – The state portion of the freight payer address.
  • FreighZip – BUNDLE.FREIGHT.ZIP – The Zip Code portion of the freight payer address.
  • CustPONumber – DS.PONBR – The Ship to customer’s PO number.
  • PONumber – PO.NBR – The Billto Customer’s PO number
  • PaymentType – CHARGE.TYPE– Bill Account or Pay By Credit Card
  • CCCompanyName – CC.CO.NAME – Credit Card’s Company Name
  • CCName – CC.NAME – Individual’s Name on the Credit Card.
  • CCardNbr – CC.NBR – The Credit card account number.
  • CCardType – CC.TYPE– Visa, MasterCard, Discover, etc.
  • CCSecCode – CC.SEC.CODE – The security code on the back of the card.
  • CCExpMonth – CC.EXP.MONTH – The month portion of the credit card’s expiration date.
  • CCExpYear – CC.EXP.YEAR – The year portion of the expiration date.
  • CCEmailReceipt – The email address where the user wants a receipt to be sent.
  • LabelType (Standard, My Brandit, My Customers Brandit, & ThirdParty)
  • LabelCustPart – LABEL.DSPART – Boolean indicating this should be printed on Labels or not.
  • LabelBilltoPart – LABEL.CUSTPART – Boolean indicating this should be printed on Labels or not.
  • LabelLaddPart – LABEL.LADDPART – Boolean indicating this should be printed on Labels or not.
  • LabelBilltoPO – LABEL.MYPO – Boolean indicating if the billto customer’s PO number should be printed on the labels.
  • LabelCustPO – LABEL.DSPO – Boolean indicating if the ship to customer’s PO number should be printed on the labels.
  • LabelThirdParty1 – THIRDPARTY1 – The first field on the third party label. Where the customer can specify what they want for the Name & address on the labels.
  • LabelThirdParty2 – THIRDPARTY2 - The second field on the label much like the field above.
  • LabelThirdParty3 – THIRDPARTY3 - The third field, notice the similar naming convention.
  • LabelThirdParty4 – THIRDPARTY4 - If you can’t figure out what this field is given the previous 3 let me know.

 

Checkout 2 – Bundling -  Update the model’s CheckoutCart properties from the form_data meaning loop through the bundles in the model, nested loop for each bundle item, separate nested loop for the comments, then call ShoppingCartService.Create

 

Checkout 3 – Payment -  Update the model’s CheckoutCart properties from the form_data, meaning  and call ShoppingCartService.Create

 

Checkout 4 – Labeling – Update the model’s CheckoutCart properties from the form_data, and call ShoppingCartService.Create