Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kjetil Næss 12 posts 32 karma points
    Jan 10, 2012 @ 10:56
    Kjetil Næss
    0

    How to properly build an order.

    I'm generating an ordrer from C#.

    BAsic steps are to use AddOrderLine to ad an item.

    How do I change the order status from Cart to submitted ?
    When looking up the order through Umbraco I'm unable to change the orders status, probably because of some missing properties on the order (get a null exception from the database).

    Can you outline the correct steps for me please ?

    /Kjetil

  • Kjetil Næss 12 posts 32 karma points
    Jan 10, 2012 @ 13:00
    Kjetil Næss
    0

    I'm generating an ordrer from C#.

    BAsic steps are to use AddOrderLine to ad an item. Properties with values for name, address etc are added to the order

    How do I change the order status from Cart to submitted ? order.Save() ?

    When I do order.Save() I get an exception from the database about an order propertyfield being null (havent't figured out which yet).


    When looking up the order through Umbraco I'm unable to change the orders status, probably because of some missing properties on the order (get a null exception from the database).

    This particular problem is solved; mispelled a property :( But I still like to know how to move an order's state from Cart.

     

    Can you outline the correct steps for me please (in c# that is)?

    /Kjetil

     

  • Anders Burla 2560 posts 8256 karma points
    Jan 11, 2012 @ 15:25
    Anders Burla
    0

    Hi Kjetil

    Great you found the issue :)

    You would call the order.Finalize( CallbackInfo callbackInfo ) method. The callback info would normally contain the info from the payment gateway. The method is available in the next beta of Tea Commerce 1.4.2.0 BETA 6. But if you need the method now - I can make a special build for you my friend :)

    Kind regards
    Anders

  • Kjetil Næss 12 posts 32 karma points
    Jan 12, 2012 @ 07:19
    Kjetil Næss
    0

    please do!!

  • Anders Burla 2560 posts 8256 karma points
    Jan 12, 2012 @ 09:42
    Anders Burla
    0

    Hi Kjetil

    I have uploaded the BETA 6 build of Tea Commerce 1.4.2.0 - go test it and see if it fixes you question

    http://our.umbraco.org/projects/website-utilities/tea-commerce

    Kind regards
    Anders

  • Kjetil Næss 12 posts 32 karma points
    Jan 12, 2012 @ 12:14
    Kjetil Næss
    0

    yupp, that seems to do the trick. Thanks alot!

     

    Kjetil

  • Anders Burla 2560 posts 8256 karma points
    Jan 12, 2012 @ 12:18
    Anders Burla
    0

    Your welcole - if you found my answer helpful could you kindly mark my answers as the solution to your question - thanks

    Kind regards
    Anders

Please Sign in or register to post replies

Write your reply to:

Draft