Order History Detail

Hi,

On the account history page (of the Commerce Server Starter Site), as well as, the last page of check out, my client would like to see the detail/items of the order. What is the best way to accomplish this. I am surprised on the Account History page that the order # is not a link to the detail which would have been nice feature.

Please Advise.



Answer this question

Order History Detail

  • Steve Wenck

    Xcel,

    You can retrieve the users orders using the GetPurchaseOrdersForUser method and then bind the list to a few web controls. The detail link can then call GetPurchaseOrder and display the specific data. It shouldn't be too difficult to add this functionality given the data retrieval methods are in place.

    Cheers,
    Colin



  • Wiz_MDK

    Our business model requires that the seller entities can modify products quite regularly, adding variant properties, removing options from existing variant properties, etc, as well as modifying basic product properties. We created a history table for all products and when a user checks out, the line item class has been extended to include the ID of the row in the product history table relating to that line item's productID. This way, in historical queries, we have a table with all of the purchased product data, even if the product has been modified or no longer exists. I think that commerce server should have included some sort of product traceability into its architecture considering that I don't know many e-commerce sites with a totally static catalog throughout time, but this solution seems to work.

    Just thought I'd throw out that solution in case you need more than just line item info and don't want to extend line item to look exactly like your product catalog tables :)

    --Dave



  • Hussain Saffar

    What do you mean by details of the item Keep in mind that when you are showing an Order, you cannot be sure that the product in the Order is still available on the site, so you cannot link to the product details from the catalog.

    All that you can show is the product information already stored in the Order (with the LineItem class). If you want to show any additional properties frrom this class on the final summary page and hte history pages, then that should be relatively easy to add to the page.

    Thanks,

    Nihit


  • Order History Detail