Copied to clipboard

Flag this post as spam?

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


  • Gordon Saxby 1459 posts 1880 karma points
    Apr 24, 2012 @ 16:59
    Gordon Saxby
    0

    Make an old existing order current

    How can I make an old Order the current one?

    If I use "TeaCommerce.GetOrder()" I get a new one - or the latest. If I use "TeaCommerce.GetOrder(75)" I get Order 75, but subsequent uses of "TeaCommerce.GetOrder()" gets the latest order (e.g. 90).

    Is it possible to make an old order "current" or do I need to call "TeaCommerce.GetOrder(75)" every time, to get Order number 75?

     

  • Anders Burla 2560 posts 8256 karma points
    Apr 24, 2012 @ 22:21
    Anders Burla
    0

    Hi Gordon

    We had a setup where we added a Guid to all orders and saved it as an order property. When you then need to load an "old" order for a customer. We looked for the guid using direct access to the DB. Found the order with the guid and extracted the order id. The used the SessionController.CurrentOrderId = orderId to set the current order to an old order. That should do it.

    Kind regards
    Anders

  • Gordon Saxby 1459 posts 1880 karma points
    Apr 24, 2012 @ 22:45
    Gordon Saxby
    0

    "SessionController.CurrentOrderId = orderId" - that is the bit I need, I think. 

Please Sign in or register to post replies

Write your reply to:

Draft