Copied to clipboard

Flag this post as spam?

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


  • Peter Rombouts 71 posts 265 karma points
    Dec 11, 2013 @ 21:08
    Peter Rombouts
    0

    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.

    Kind regards,
    Peter Rombouts

  • Anders Burla 2560 posts 8256 karma points
    Dec 12, 2013 @ 11:17
    Anders Burla
    100

    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

Please Sign in or register to post replies

Write your reply to:

Draft