Laddawn.com : Functional Spec. - Write Cart Last Activity Date

Purpose:  We want to be able to purge shopping carts that have no activity for x number of days.  To accomplish this we need to record the last activity date into the shopping cart file.

 

Overview:

  • Add a field to SHOPPINGCART.USR.
    • LAST.ACTIVITY.DATE
    • Location: 60
    • Type: D
    • Length: 8
    • Conversion: D2/
    • Allow Amend: N
    • Create a routine to write today’s date to the new field added above.
      • Parameters
        • CONTACT.NBR
        • CART.NAME
        • OPERATOR
  • Open SHOPPINGCART.USR
  • Build Key as CONTACT.NBR*CART.NAME*OPERATOR
  • WRITEV DATE() TO SHOPPINGCART.USR, KEY
  • Call that routine upon success of the following routines:
    • SHOPPINGCARTITEM_DELETE
    • SHOPPINGCARTITEM_SAVE
    • SHOPPINGCART_SAVE