TC.AddOrUpdateOrderProperty() not updating but creating new order
Hi all,
I'm having some troubles with the next method:
TC.AddOrUpdateOrderProperty()
I'm trying to update a finalized order (because of some link with accounting software), but TC keeps adding a new cart item, instead of updating my order.
Is there another way to save a custom property to an existing order, that is finalized?
The property I'm trying to add does not exist upon this point; I don't have the information prior to finalizing.
EDIT: I've tried to hook into the Finalizing event, Finalized event, but all seem to create a new CART instead of editing my order.
TC only works with the current order - AKA the cart. So when you want to add or change the finalized order you should use the .NET API to do this. You can just have order.Properties.AddOrUpdate()
TC.AddOrUpdateOrderProperty() not updating but creating new order
Hi all,
I'm having some troubles with the next method:
I'm trying to update a finalized order (because of some link with accounting software), but TC keeps adding a new cart item, instead of updating my order.
Is there another way to save a custom property to an existing order, that is finalized?
The property I'm trying to add does not exist upon this point; I don't have the information prior to finalizing.
EDIT: I've tried to hook into the Finalizing event, Finalized event, but all seem to create a new CART instead of editing my order.
Kind regards,
Peter Rombouts
TC only works with the current order - AKA the cart. So when you want to add or change the finalized order you should use the .NET API to do this. You can just have order.Properties.AddOrUpdate()
Kind regards
Anders
is working on a reply...