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?
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.
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?
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
"SessionController.CurrentOrderId = orderId" - that is the bit I need, I think.
is working on a reply...